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(new BufferedReader(new InputStreamReader(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 (make sure classes are public):

Problem A - public class A { ... }
Problem B - public class B { ... }
. . .
General What are the time/memory limits?

Time: 10s per problem, except for F which is set at 60s.

Memory: No explicit limit (system memory limit)
General We can get the language reference online? What sites are allowed?

http://docs.oracle.com/javase/6/docs/api/

http://en.cppreference.com/w/
http://www.sgi.com/tech/stl/
General Compiler versions?

gcc 4.4.5
java 1.6.0_24
A - Nice Licence Plates Why is there a compile error? It compiles fine locally.

call of overloaded ‘abs(int)’ is ambiguous
G - Garbage Collection What is the position of the dump?

If the pick up points are given as distances from the dump, where can dump be?
A - Nice Licence Plates I'm getting compiler errors from the judge, but don't get any compiler errors on my workstation.

call of overloaded ‘abs(long long int)’ is ambiguous
G - Garbage Collection Is the first line of the sample input supposed to be 3? There are evidently 3 test cases, and 3 values in the sample output.

Yes, it's a typo, sorry.
G - Garbage Collection Why does the sample output have three numbers?

Yes, it's a typo, sorry.
General Why am I getting a compiler error (C++)?

Again, our gcc version is 4.4.5, it may or may not be the same as yours.

I suggest compiling with -W -Wall
G - Garbage Collection The sample input gives 2 test cases but 3 outputs. Is this a typo?

Yes, I fixed it online, sorry about that.
G - Garbage Collection The condition "is full" means that you've just gotten full at a pick up point, and not that you check if you're full or not at the next pick up point right?

Yes.
D - Ripple Effect Can the connection connect to outside the 2D?

No.
B - Bouncing Bowling Ball What does "12 cm wide pin" mean?

Sorry about this one, you should go with the diagram.

Let's say that the pin is an infinitely tall cylinder with base of diameter 12cm. Or some other such math hand wavy thingy.
H - Sequential Thinking For the Kth digit, is it Kth digit from the left part of S? e.g. S[0] == 1, S[1] == 2?

String is indexed from 1. So "1st character" actually means... "1st character".

I thought that samples should have clarified that.
G - Garbage Collection What happens if we are at the last pickup point and got full by loading the garbage there.
Then we have to go back to the dump by both, rule 1 and rule 3.
Does that count as finishing the run or do we have to go back to the last pickup point once more to notice that we are actually done?

Rule 3 applies - I'll update the statement to reflect this.
General Is incorrect output the same response as wrong answer?

Yes.
B - Bouncing Bowling Ball If the centre of the ball passes within *exactly* (6 + 10) cm of the centre of the pin (i.e. at exactly the sum of their radii), does that count as a collision? Or do we say the ball 'just missed'?

That would count as a collision. But I don't think there are such cases in input.
B - Bouncing Bowling Ball What are the bounds on the release angle X?

10<=X<=80, I had that in there at some point and managed to remove it. Go me. Will update the statement.
B - Bouncing Bowling Ball Can X be negative ?

No, omitted the bounds for no good reason.
B - Bouncing Bowling Ball Bounds on X and T?

10 <= X <= 80
16.0 <= T <= 18.0

Updating the statement.
General We accidentally submitted our solution to C as A. Will we be penalized? (seeing as we already solved A)

No. But we would generally remove the submission in this kind of situation - if we are aware of it.
General In that case, our first A submission was also an accident. We submitted the A from the trial contest. Do we have to be penalized for that also?

I will remove it when I verify that it was the solution to the practice problem.
General What are the compile flags for compiling C and C++?

-lm -O2
G - Garbage Collection Can garbage truck load a portion of garbage until it is full and come back for the rest?

No. It will not do partial pick ups. All or nothing.
C - Caesar Cipher Are all the elements of A unique or can A have repeated elements.
For eg: can A be pppQ ?

Elements of A are unique.
Will update the problem statement.
F - Amazing Maze Is there a magic ladder located at (M,N) that appears when you have all treasure chests? Or do we have to exit the maze going South or East.

I admit it was unclear - statement updated.

Although you may also wonder how you got to the starting point.
E - Evaluating Logic Expressions Is it possible to encounter an "unknown" (i.e. not defined in the input) operator in the expression that we must evaluate?

No. All operators are defined.
General What is the memory limits for Java (during run time)?

Memory is large enough.

Sorry if it sounded bad but it is at least 1.5GB.
C - Caesar Cipher Did the input data change in the middle of the contest?

No.


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