Hello everyone!
I am the author of problems of today round. RAD, Connector, it4.kp helped me to prepere this contest. Delinur thanslated statements into english.
It will be a thematic contest. And the theme is Disgaea.
Is it possible to survive artef damage that is written by nine-digit number?
Of course, if amount of your health points is ten-digit number.
fans about Disgaea
Of course, if amount of your health points is ten-digit number.
fans about Disgaea
Disgaea: Hour of Darkness is tactical RPG video game for consoles Playstation 2, PSP и Nintendo DS. So, get acquainted:
Etna, Laharl and Flonne - main characters of the game
The problems involves some aspects of the game mechanics. They are adapted for problems, therefore a bit different from original ones. Please use statements as formal documents.
Some problems have animated pictures. Please ensure that your browser supperts formats APNG or GIF.
Problem points will be standard for contests of Codeforces:
500-1000-1500-2000-2500.
Good luck!
UPD. The contest ended and ratings was recalculated.
:Winners:
1. KADR
2. neal
3. cerealguy
4. ivan.popelyshev
5. tourist
Editorial.
High ratings and rankings
Codeforces does not support GIF, but APNG works. In the statement will be APNG picture and link to separated GIF-picture.
Of course, if amount of your health points is ten-digit number.
fans about Disgaea"
???
Extra long problem statements again. Nobody cares.
Excellent, excellent, make them longer next time and insert another animation with 100 pictures in second. That would be great.
Thanks.
Because you can get precision issues, then (int) 9.9999999576 becomes 9, not 10.
Edit: Also, how could I know hoe large the correction should be? Thanks!
In fact, it's "something you should know." I doubt you will forget it from now on.
And depends of the problem, in this case I don't think it was needed too much, maybe 0.00001 or something like that. I don't know a rule of thumb.
No problem. In my case, at least, it's some kind of testing, you just think about what to do when you have a little less or a little more than the answer, so you make the comparison right.
In UVa, for example, this is exploited a lot.
In fact, I asked, in the Codeforces Contest Rules page, to include these hacks in the system test. So far, I have not received an answer from the admins.
20 3 0.29
a 100
b 200
c 300
d 400
e 500
f 600
g 700
h 800
i 900
j 1000
k 1100
l 1200
m 1300
n 1400
o 1500
p 1600
q 1700
r 1800
s 1900
t 2000
z
m
k
The procedure is something like this:
You have an empty queue, you add the given pyramid (x, y) to the queue. Now pop a pyramid from the queue, let its color be A. If the cell the pyramid is standing on isn't transparent and its color B is different from A, then let S be the set of all cells with color B. Change the color of each cell in S to A and add all pyramids on these cells to the queue, removing them from the board completely (in spiral order considering current cell as center).
It took me some time to get this problem, and I have a working solution to it. But I didn't submit it as a protest on the confusing problems :P
Because, for example, floor(0.29 * 100) = 28
edit: I didn't see that victor.juquila had posted sry
Actually, two hours of Darkness.
the rating update only for div1? why, it's unfair.
Or, equivalently, that there are too many remaining residents for the items that were not chosen.
The problem statement says "We cannot remove a resident from the items and leave outside".
But if you there are, say, three useless residents and only two slots available in the not chosen items, then you must put some of them in the output.
I can't read such a long English problem, too.
If only writers make problems which statements is short!
i think many solutions using somthing like (str[2] - '0') * 10 + (str[3]-'0') will be down...
http://www.codeforces.com/blog/entry/2462