|
Sample Input (test.in)
for Part 2:
50, 50, "School", "School 1"
80, 80, "School", "School 2"
20, 50, "University", "University
3"
40, 30, "Hospital", "Hospital 4"
70, 20, "Restaurant", "Restaurant
5"
60, 40, "Hospital", "Hospital 6"
80, 40, "University", "University
7"
90, 60, "School", "School 8"
10, 70, "Restaurant", "Restaurant
9"
30, 90, "Restaurant", "Restaurant
10"
Sample Run for Part 2:
For C/C++ programs:
% findloc test.in 50
50
% "School 1": 50,
50
% findloc test.in 30
50
% NIL
% findloc test.in 10
70
% "Restaurant 9": 10,
70
For Java programs:
% java findloc test.in 50 50
% "School 1": 50, 50
% java findloc test.in 30 50
% NIL
% java findloc test.in 10 70
% "Restaurant 9": 10,
70
|