Пожалуйста, подпишитесь на официальный канал Codeforces в Telegram по ссылке https://t.me/codeforces_official. ×

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

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

I've been trying to solve this problem — 385C - Bear and Prime Numbers , Bear and Prime Numbers. My solution gives a completely expected runtime error on Testcase#4. Can someone please explain to me as to why this is happening?

My solution: http://codeforces.com/contest/385/submission/12629174

Any help would be greatly appreciated.

Thanks in advance.

EDIT: Solved. I had not taken into consideration that even l could be greater than 10000000.

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

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

Auto comment: topic has been updated by ananth94 (previous revision, new revision, compare).