ENG  RUSTimus Online Judge
Online Judge
Problems
Authors
Online contests
About Online Judge
Frequently asked questions
Site news
Webboard
Links
Problem set
Submit solution
Judge status
Guide
Register
Update your info
Authors ranklist
Current contest
Scheduled contests
Past contests
Rules
back to board

Discussion of Problem 2003. Simple Magic

Some useful tests
Posted by 0bla4ko 20 Aug 2024 19:09
These tests helped me to fix WA8

10
4811511
2282103
4376795
8402551
3861207
8577438
2810768
5559695
8993319
5240873

infinity

10
9706784
5106148
5528237
9514430
1047500
6715041
9514430
7524350
4524591
2186600

infinity

But then I had WA27, which I fixed by ignoring number 1 somewhere in my code, and got AC.

But my AC solution is still wrong, here is the test breaking it (upd: my second AC code passes it):
10
8246707
8246707
6566521
3418657
9048372
2505801
428602
9261803
4761595
6564437

Correct answer:
2
My AC code output:
infinity

Edited by author 20.08.2024 19:31