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
№ | Пользователь | Рейтинг |
---|---|---|
1 | tourist | 3993 |
2 | jiangly | 3743 |
3 | orzdevinwang | 3707 |
4 | Radewoosh | 3627 |
5 | jqdai0815 | 3620 |
6 | Benq | 3564 |
7 | Kevin114514 | 3443 |
8 | ksun48 | 3434 |
9 | Rewinding | 3397 |
10 | Um_nik | 3396 |
Страны | Города | Организации | Всё → |
№ | Пользователь | Вклад |
---|---|---|
1 | cry | 167 |
2 | Um_nik | 163 |
3 | maomao90 | 162 |
3 | atcoder_official | 162 |
5 | adamant | 159 |
6 | -is-this-fft- | 158 |
7 | awoo | 157 |
8 | TheScrasse | 154 |
9 | Dominater069 | 153 |
9 | nor | 153 |
Название |
---|
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