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;
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
General Are we reading the input from a file?

See clarification above - standard in/out
General What are the compiler flags used for C?

-lm -O2
C - The Shortest Path Compiling our program with the flags specified:
gcc -o qc -O2 -lm qc.c
Results in no errors, or warnings printed on the lab machine, but is resulting in a compile error using the submissions system.

Try adding -W -Wall and see if that helps. I know that the server is a bit behind the lab machines. Or use g++, sometimes that magically fixes issues,
F - Coffee Beans Should the sample output for this question read:
198.10
198.10
because after calculating the second test case that is the answer that my code is outputting

Are you sure you buy positive amounts only?
C - The Shortest Path How are we supposed to do input and output for submissions? We are getting a Runtime Error. Is it possibly because we've submitted a file Path.java instead of C.java for problem C? Also, we are outputting after each input, rather than taking all input first and then outputting everything at the same time.

I will look into it, but the advice in the top clarification is to use C.java. Your class must be public, otherwise it should work.
E - Aggregating Points Why is my solution failing?

Looks like the judge did not like one particular file, although the output seemingly matched. Removed Mac line endings and rejudged all E submissions. Apologies.
H - Dad to the Rescue! What does the question mean with 'simple polygon'?

It does not intersect itself and edges are touching only at endpoints.
D - Student Clubs Runtime error? Is this some sort of python version problem? (Or am I bad)

Seems like a common complaint, will look into it (I don't know much about it, though)
D - Student Clubs NVM I'M JUST BAD

There still may be a problem, don't give up on being good.
A - Cannonball Pyramids Is there any way to get more clarification on a submission that is rejected due to "Run-Time Error"?

Usually not, but I am looking into Python submissions, will notify if something other than your code is at fault.
D - Student Clubs How much error checking is necessary?
i.e. do we have to check for int sizes, incorrect formatting of input (not including bounds checking), etc?

The input should be as described, we have our own verifiers. Of course, we are human (or, are we?)
B - Lenses Our output is wrong in every case, what pi should we be using to find our output? How many decimals do we use?

Read the problem statement.
General We have had several Run Time errors on our java submissions: is this because we are not checking the bounds on the inputs? 3 separate submissions of 3 different programs have had this issue. We cannot find any edge cases that are within the limits that cause errors. Problem J is simple inputs and we are not able to submit properly.

Why not use scanner? The way you are parsing everything, I would make sure that strings are trimmed. I will look into it, anyway.
I - Election Campaign We think the data for problem I does not satisfy constraints. In our last 2 submissions, the only change was adding 'assert(st[k] < en[k]);'. It is given in the constraints that l_i < r_i, so this shouldn't change anything, but it changed the verdict from Incorrect Output to Runtime Error.

We are looking into this issue.
C - The Shortest Path Can we just print our output line by line, or should it be in a block after the input?

Output can be printed at any time. Just don't output anything that's not the answer!
General How should I test my code?

Even if your code is using standard I/O, you should redirect input from a file (that's what judge will do) and not type test cases in. Most of the run time errors and wrong answers would have been caught that way.
C - The Shortest Path Triple checked a lot of inputs, gives the correct answer every time, could you re-run the original file to see if there was a mistake?

I removed carriage returns in that one, will rerun all failed submissions.
A - Cannonball Pyramids My compiler does not give a runtime error (unless the error is stack overflow which I cannot test), can it be related to java version differences?

Runtime error means your program crashed when it was run on the judge test data.
General Where did my verdict go?

If you failed C or I, we are rejudging now.
F - Coffee Beans Can you mix different types of beans into one cup of coffee?

yes, it usually tastes better that way
G - Square Grids We can't think of any test cases that make our program fail, we've checked input bounds, max bounds, tried weird cases. It always seems to give the correct output.

I believe you, but your numbers are wrong.
B - Lenses In the input specification it states that 0 < d < r and d is an integer, while 1 <= r <= 50. So if r = 1, what is d? Is this a typo?

Technically, it is correct. So, there is no case where r=1. (it was a typo, but, given other constraints, we can set r >= -123, but it cannot be less than 2)


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