I'm getting verdict Denial of Judgement on 1906C - Cursed Game: 258387222.
I'm not sure whether my code is correct or not, but if it's the interactor's problem, please fix it.
№ | Пользователь | Рейтинг |
---|---|---|
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 | 170 |
2 | Um_nik | 162 |
3 | maomao90 | 161 |
4 | atcoder_official | 160 |
5 | djm03178 | 158 |
5 | -is-this-fft- | 158 |
7 | adamant | 154 |
7 | Dominater069 | 154 |
9 | awoo | 152 |
9 | luogu_official | 152 |
I'm getting verdict Denial of Judgement on 1906C - Cursed Game: 258387222.
I'm not sure whether my code is correct or not, but if it's the interactor's problem, please fix it.
Название |
---|
Hi, thank you for reporting.
I tried to check the interactor and found one possible reason.
In your solution, for the case N > 3, you are assuming that the interactor will reply with
CORRECT
after the second query and immediately read the value of the nextN
. However, the interactor still replied withINCORRECT
after your second query followed by a numeric string, so the next value ofN
that you read can be any arbitrary number. Then, you print a string of lengthN
to the interactor, which may be an arbitrarily large string.The interactor uses
cin
to read a string in a line, so if you send a very large string to the interactor, it may raise the memory problem. I can prevent this thing from happening in the interactor by limiting the number of characters to read in a line, but doing any changes to the interactor without further testing can be risky, so I decided to leave it as of now.I suggest you properly handle the
CORRECT
andINCORRECT
replies by the interactor. We apologize for the imperfect interactor.thanks a lot!