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

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

IN problem c of testing round 14 held on 22-12-2017 , By using long long the solution is getting tle but by doing type casting the solution gets accepted. http://codeforces.com/contest/910/submission/33517729 ------>>> accepted http://codeforces.com/contest/910/submission/33517599 ------>>> tle Thanks if anyone could help

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

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

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

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

CHanging 1LL << 60 to (ll)1<<60 solution is getting accepted yyy??

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

Looks like the run time for both attempts is very close to the limit. So, one solution got lucky, and the other one got unlucky. To make it pass regardless of luck, speed it up more significantly (10-20% or more).