I'm getting Wrong Answer on 2A problem while I can't find any bug in my code! plz don't say write in another way, I want to find bug of this code! my submission is 10922088
# | User | Rating |
---|---|---|
1 | tourist | 4009 |
2 | jiangly | 3823 |
3 | Benq | 3738 |
4 | Radewoosh | 3633 |
5 | jqdai0815 | 3620 |
6 | orzdevinwang | 3529 |
7 | ecnerwala | 3446 |
8 | Um_nik | 3396 |
9 | ksun48 | 3390 |
10 | gamegame | 3386 |
# | User | Contrib. |
---|---|---|
1 | cry | 166 |
2 | maomao90 | 163 |
2 | Um_nik | 163 |
4 | atcoder_official | 161 |
5 | adamant | 160 |
6 | -is-this-fft- | 158 |
7 | awoo | 157 |
8 | TheScrasse | 154 |
9 | nor | 153 |
9 | Dominater069 | 153 |
Name |
---|
A simple test that shows your algo is wrong:
3
nima 7
nima -3
you 4
your code says you are winner but its wrong
when you update your ans its posibble that someone get much score but in next round gets a big negative score and in this case you dont update your ans and winner
right code: 10976660
but in your test my program says that nima(with is correct) is winner! I said plz don't say other ways. I want to debug this one!
sry it was wrong in typing
3
nima 7
nima -4
you 4
it isnt other way . it shows your wrong in algorithm and forgeting update in some cases
also In these test it says correct one(nima)!
But it should print "you",shouldn't it?
don't think so! in problem statement says "First one who reached the maximum score" ;) maximum score is 7 which nima reached it first. good luck :D