This is the place to post general comments, such as pressing bugs or broader questions.
If you look at people's solutions to problems, how come there are two diffferent types of fonts? This one and the one that looks ugly :P (All the submissions I'm talking about are my own, so they're all text)
Because one is text and the other is an image.
Take a screenshot or something? I'm not sure what you're talking about.
A plus B should be deleted. If you'll look at today's submissions, you'll see what I mean.
Could someone tell me what the version of g++ the judge uses?
for my ccc01s4 Cookie problem, it works on the judge; and when I downloaded my source code and used Visual Studio to compile it, it works and gives the desired answer, but I used my g++ 3.4.2 (for windows) and the compiled program seemed to infinitely loop... so I upgraded it to 3.4.5, and this time it doesn't infinitely loop, but outputs 0.00 instead...
I'm not using obscure functions... all I included was iostream and cmath. I used operator overloading btw, but that shouldn't be an issue, should it?...
Please refer to the help section to look up all relevant judge information. The compiler versions are listed there.
OK, I updated the Help page. The new g++ version is 4.2.4 (the <? >? <?= >?= operators don't work after 4.1).
For loop, while loop, or repeat loop
They are all equally fast, but only if you use them in identical ways. While loops and repeat loops are essentially identical, the only difference being when the condition is checked (and checking that the condition is true will always take the same amount of time as checking that the condition is false). And a for loop is essentially a while/repeat loop in which the variable is incremented/decremented at every step; you would simply code this change directly if you used a while/repeat loop, instead of letting the compiler insert it.
Changing the choice of loop will not make any noticeable difference in execution time, and certainly not the difference between AC and TLE.
The following example shows when it can differ though:
With a for loop:
for i:=1 to 999999999 do
if i%12345679=0 then
With a while loop:
while i<=999999999 do
In this case, notice that the two loops do different things: the first loop executes 999999999 times, whereas the second one executes only 81 times.
for i:=1 to 999999999 do if i%12345679=0 then writeln(i);
i:=12345679; while i<=999999999 do begin writeln(i); i:=i+12345679; end;
Who made you put up the legal notice?
It seems out of place here on a practice judge.
Did someone get sued? :wink:
It's a bit of a joke, I suppose, not strictly necessary. I thought of it after I pasted some copyrighted code into my solution for CCC Substrings, and remarked that solutions can be freely viewed by anyone who solves the problem. I can envisage a situation in which it might be important, though - just not in the near future.
I was wondering when will the certain programs worth 30 points return to their original value?
AFter the CCC, Feb 24
Does it HAVE to end after Feb. 24? The 30 points really help get me motivated to work hard on those programs.
The CompSci students don't decide this, the admins and Ms P. do.
Are all CCC 30 pointers reverting back to a lower score - or just the ones that were changed?
It should just be the ones that were changed.
I don't think any of the CCC stage 1 problems were worth 30 points in the first place - so in a certain sense all of them revert.
The CCC is on the 24th, so it'll end the midnight before.
Please do not submit the same code over and over and [i]over[/i] again. Why would you do something like this?
ACSL #2 (Feb 14, 2030 @ 12:02am)[/quote]
Can anyone clarify?
I believe they were testing the ACSL #2 programs on the judge.
Is that why google has some weid green text under it now?