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 { ... }
. . .
G - Vampires! What if there are two vampires and, say, vampire 1 is "not suffering from embarrassment" and vampire 2 is?

That is not clear from the statement - in this case you would print only vampire 2 line.
General ubc1 is Daniel
ubc5 is Angus

F - Pro-Test Voting In the last line of the paragraph describing input, is the verb "round" shorthand for "round up if decimal part >= 0.5 and down otherwise"?

I have never been fond of ambiguous rounding - I would assume "Yes" but gcc uses half-even rounding, so you may try that one if the first one fails.

I guess my answer is I don't know, until I try it.

[EDIT] So I did try it and it does not seem to matter - I tried all kinds of rounding getting same (wrong) answers while the bug was somewhere else.
D - Photo Shoot What is the maximum n for problem D?

Read the problem statement (or, if you are lazy - 100)
General test: I'm perry

I am not perry. Test failed?

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