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

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

i was solving this problem and i got WAbut i am very confused why it said 29th number in testcases https://codeforces.net/contest/1849/problem/B i wrote a program to stop accepting at 29th numbers testcase to spot it but when i tried it had right ouput can you help here's my code https://www.ideone.com/v0tCla i even checked the editorial and i found the same idea as mine but still don't know why WA please help

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

»
15 месяцев назад, # |
  Проголосовать: нравится 0 Проголосовать: не нравится

After few changes to your code it finally works AC

1. Comp function

From
To

2. Main logic

From
To