Can anyone tell me a test case for this problem:- 282B - Painting Eggs that gives "-1" as the output
№ | Пользователь | Рейтинг |
---|---|---|
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 | 155 |
8 | TheScrasse | 154 |
9 | Dominater069 | 153 |
10 | nor | 152 |
Can anyone tell me a test case for this problem:- 282B - Painting Eggs that gives "-1" as the output
Название |
---|
There is none.
3 100 900 100 900 100 900
In this example, you can give A all three eggs and $$$|300-0| \le 500$$$, as desired.
Oh my bad. Sure thanks
At last, the question still remains the same, if there is no such test case possible then why the hell did codeforces include such a possibility in the question anyway, not even one test case gives the output as "-1"
They probably didn't want to give any hint away about the solution.
yeah that's a possible case but we still don't have any mathematical proof to whether this situation is possible or not ..... so i am still waiting for someone to give me one
Most competitions have a tutorial, which includes both a solution and a proof of correctness. It should answer your question.
There is no mention about such a situation ...... though they have given a proof for other test cases....I think we can come to a conclusion using this..... but I don't know how
Have you read the proof? It shows why you can always find a solution. Hence you never need to output -1.