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

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

Hi! I have attempted this problem numerous times and get a Runtime Error in test case 8 with exit code -1073741819 Here is the link to the problem: http://codeforces.com/contest/1148/problem/B Here is my attempt by using two-pointers method to solve it. http://codeforces.com/contest/1148/submission/55003260 Thanks!

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

»
5 лет назад, # |
Rev. 5   Проголосовать: нравится 0 Проголосовать: не нравится
  • b[m-(k-i)-1] is out of bounds if m == k and i == 0
  • while(a[i]+ta>b[j])++j; you dot't check the bounds for j
  • j+=k-i; maybe out of bounds too?