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 | 3985 |
2 | jiangly | 3814 |
3 | jqdai0815 | 3682 |
4 | Benq | 3529 |
5 | orzdevinwang | 3526 |
6 | ksun48 | 3517 |
7 | Radewoosh | 3410 |
8 | hos.lyric | 3399 |
9 | ecnerwala | 3392 |
9 | Um_nik | 3392 |
Страны | Города | Организации | Всё → |
№ | Пользователь | Вклад |
---|---|---|
1 | cry | 169 |
2 | maomao90 | 162 |
2 | Um_nik | 162 |
4 | atcoder_official | 161 |
5 | djm03178 | 158 |
6 | -is-this-fft- | 157 |
7 | adamant | 155 |
8 | awoo | 154 |
8 | Dominater069 | 154 |
10 | luogu_official | 150 |
Название |
---|
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