ENG  RUSTimus Online Judge
Online Judge
Problems
Authors
Online contests
About Online Judge
Frequently asked questions
Site news
Webboard
Links
Problem set
Submit solution
Judge status
Guide
Register
Update your info
Authors ranklist
Current contest
Scheduled contests
Past contests
Rules
back to board

Discussion of Problem 1543. Dance Revolution

Incorrect statement
Posted by Vedernikoff Sergey 22 Apr 2007 16:40
Don't you know why so few people solved this problem? Because of incorrect statement (at least, its russian version). Read:

"4. Если нужная клавиша была нажата первым шагом в соответствующем степе, и с начала периода прошло менее 40% периода, то игрок получает «PERFECT», менее 70% — «GREAT», и не менее 70% — «GOOD»."

But in tests player gets, for instance, PERFECT, if NOT MORE than 40% of time elapsed (but from the statement STRICTLY LESS). I got AC during the contest only after corecting my program (+4 :((()

This is very bad - errors in statement in realisation problems :(((
Tests are ok (+)
Posted by Vladimir Yakovlev (USU) 23 Apr 2007 18:16
See line 25 of your code:
inc (time);
Why do you do this? That is why you need to change "less" to "less or equal".

Edited by author 23.04.2007 18:16
Re: Incorrect statement
Posted by [SPbSU ITMO] WiNGeR 23 Apr 2007 18:18
Statements are correct.
I've just AC'ed it, considering that statements are correct.
Maybe you had some problems with float arithmetic?
Re: Tests are ok (+)
Posted by Vedernikoff Sergey 24 Apr 2007 12:44
Vladimir Yakovlev (USU) wrote 23 April 2007 18:16
See line 25 of your code:
inc (time);
Why do you do this? That is why you need to change "less" to "less or equal".

Fixed. Thanks :)