View Clarifications

[ Contest Page | Scoreboard | Submissions | Clarifications | Help | Log In ]

General I/O?

Please use standard in and standard out!

Input --
Java: Scanner in = new Scanner(new BufferedReader(new InputStreamReader(;
C: scanf("%d %d", &integer1, &integer2);
C++: int x; cin >> x;

Output --
Java: System.out.println("asdf");
C: printf("%d %d", integer1, integer2);
C++: int x = 5; cout << x << endl;
General Java class names?

Please use the following class names (make sure classes are public):

Problem A - public class A { ... }
Problem B - public class B { ... }
. . .
A - Beehives Are the input graphs connected?

If it does not say they are then you may assume they are not.
I do not know if it is the case or not, your code should handle any graph.
F - Sentry Robots Are robots considered obstacles?

Sorry about delayed response - It is not clear from the statement but I would go with "NO" because of the sentence "there are some obstacles that the robot cannot see through...". I assume robots can see through other robots or something (not explicitly stated)
General What are the time limits? =)

In seconds (per input file)

A 40
B 5
C 15
D 10
E 22
F 10
G 10
H 20
I 15
J 30

(changed A, H and J time limits - that caused one solution to pass - my J, heh)
H - Shares Why is my solution timing out?

I do not know. Even after doubling the time limit, UBC0 and Calgary3 solutions were timing out.

My Java solution with HashMap and BigInteger ran in time.

Ultra Cool Programming Contest Control Centre v1.8
Copyright (c) 2005-2010 by Sonny Chan