Good evening!
Congratulation to all on the day of student, calm sessions, easy exams and a lot of new knowledge! I also want to congratulate those girls (women) whose name is Tatiana on their Angel Day.
I am glad to invite you to participate in Codeforces Beta Round 53. Today's round was prepared Michael Mirzayanov, Nevidomy Vitaliy, Artem Rakhov and Maria Belov, problems author is nevidomy.
Contest is over.
Congratulations to the winner: tourist. After the round he becomes first "General" of Codeforces!!! Link to results: http://codeforces.me/contest/57/standings
Nevidomy Vitaliy and Codeforces team.
It seems the test case 7 in problem D is not valid:(By mistake, the "..." in the last means ellipsis,but the same as "." in data)AXAAA
AAAXA
replace"A" with dots
my answer is 2.62500000
MY problem C was hacked, but the same code passed the system test after the competition.
But my bad code passes the system test.
I didn't get the hack data which was actually used to hack my code.
I found only what kind of test case hacked my code by viewing my code with cmd's advice.
I don't know how to get the hack data.
ans = (2*ans - n)%mod
in my case, victim wrote
if (ans<0) ans+=n;
instead of
ans+=mod;
My code returns -27166.
I give you my opinion.
Today's hack system looks for me as in real life: if someone noticed bug, he will say about it to the author. Or he will wait till the bughaver released his software with this bug, and only after that he says "I saw a bug in your program but didn't tell :p!"? Looks strange if this is a situation in one company, community, like CodeForces are. :-) Yes, you're right, it's a teamwork. :-)
Kudos to the author.
Edit: look here for solution: http://www.codeforces.com/blog/entry/1169
memset is fill bites, not sell of bites.
int a[10]; memset(a,1,sizeof(a));
give a[0]=...=a[9] = 00000001 00000001 00000001 00000001 = 16843009
see
whereas...similar code...this one....
instead of