Блог пользователя hasanraj3100

Автор hasanraj3100, история, 7 недель назад, По-английски

I submitted a solution for the problem: E. Bertown roads My submission is: 289121858

ideone Link of the same submission: https://ideone.com/Pn4Wdh

The checker comment I got is:

wrong output format Unexpected end of file — int32 expected

Input:

6 8
1 2
2 3
1 3
4 5
4 6
5 6
2 4
3 5

Participant's output:

1 2
1 3

Jury's Answer:

6 4
4 5
5 6
5 3
3 2
2 1
1 3
2 4

But if I run the same code with same input on online compilers and my machine, it produces correct output (N lines). You can check the ideone link I provided, even this one producing the correct output!

I even tried changing the code and replaced the map with set. Here is that submission: 289122463

But the same issue occurs. My code produces only two lines on codeforces but N lines on other compilers.

What am I missing?

Полный текст и комментарии »

  • Проголосовать: нравится
  • -17
  • Проголосовать: не нравится

Автор hasanraj3100, история, 11 месяцев назад, По-английски

I was looking at this problem A. Laptops and I found an accepted solution : https://codeforces.net/contest/456/submission/19548093.

but I don't see how it got accepted.

This solution shouldn't work for this testcase:

$$$ \\ 3\\ 1\;2\\ 2\;3 \\ 3\;4\\ $$$

Am I missing something here? Sorry if it's too noobish to ask.

Полный текст и комментарии »

  • Проголосовать: нравится
  • -15
  • Проголосовать: не нравится