Can somebody help me to find why this code gives WA: PON It's just a classical problem with a classical solution that should work fine...
Edit: Problem solved
№ | Пользователь | Рейтинг |
---|---|---|
1 | jiangly | 3977 |
2 | tourist | 3815 |
3 | jqdai0815 | 3682 |
4 | ksun48 | 3614 |
5 | orzdevinwang | 3526 |
6 | ecnerwala | 3514 |
7 | Benq | 3483 |
8 | hos.lyric | 3381 |
9 | gamegame | 3374 |
10 | heuristica | 3358 |
Страны | Города | Организации | Всё → |
№ | Пользователь | Вклад |
---|---|---|
1 | cry | 170 |
2 | -is-this-fft- | 162 |
2 | Um_nik | 162 |
4 | atcoder_official | 160 |
5 | djm03178 | 157 |
6 | Dominater069 | 156 |
7 | adamant | 154 |
8 | luogu_official | 152 |
8 | awoo | 152 |
10 | TheScrasse | 147 |
Can somebody help me to find why this code gives WA: PON It's just a classical problem with a classical solution that should work fine...
Edit: Problem solved
Название |
---|
It is better to use streams (cin) for reading, scanf implementations are not consistent across different OS, compilers, OJ ... is a mess.
I have tried that, but it didn't work as well, so, can anybody spot another possible mistake?
I have sent your code using cin (without using scanf) and got AC
sorry, and yeah, I got AC too, I don't know what happened last time, but I was sure I sent it that way...
For scanf() and printf() you have to add cstdlib library. Try to send your code with cstdlib library.