View Clarifications


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


ProblemClarification
General I/O?

Please use standard in and standard out!

Input --
Java: Scanner in = new Scanner(System.in);
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:

Problem A - public class A { ... }
Problem B - public class B { ... }
. . .
B - Perfect Pth Powers Are there any negative numbers in the input?

In the real contest this question would be answered with "read the problem statement".

Because this is a practice and one of the aspects of the problem solving is understanding the problem statement, I will point out that "32 bit int" is in range [-2^31,2^31-1]. The fact that there are no negative numbers in the input should not mislead you (this is in general).

Always be careful with this. And, even when you know the range, be careful with special cases (min, max, 0, 1, -1).


University of Calgary Programming Contest Control Centre v1.6
Copyright (c) 2005-2007 by Sonny Chan