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;
Python: line = raw_input()

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 { ... }
. . .
General Compilers?

gcc 4.4.7
javac 1.6.0_37
Python 2.6.6
ghc 7.0.4
E - Cannonball Pyramids How do 2 and 5 cannonballs form pyramids of stack levels 1 with a triangular base?

Please read the problem statement.
F - Lenses Are the answers to F correct?
I am getting 328.01 and 2624.15 for the sample inputs

The problem statement is correct.
General Does the output all need to be printed at the end or can it be outputted after each input?

Output can be printed at any time. Just don't output anything that's not the answer!
F - Lenses I am getting run-time error on F. Can you check why?

Sorry, may be a glitch in the test file. Resolving the issue now.
F - Lenses what should 2.125 rounded to?
2.13 or 2.12?

There are no such cases.

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