Unsuccessful Hacking Attempt

Правка en2, от rachitiitr, 2016-06-01 21:53:28

Problem: http://codeforces.me/contest/677/problem/B
The user is doing res = a[i];
while(rem) {if (rem >= k) rem -= k; }
See the image for his code:
http://codeforces.me/predownloaded/0a/2d/0a2d8f1ff5bca1d364d6224513611c725c9a0df2.png
If I set k = 1, and rem = 10^9 Clearly it will timeout, but I was given an unsuccessful hacking attempt. Why?

Test case I gave: 1 1000000000 1 1000000000 Result-> Unsuccessful

I thought compiler would be doing some optimizations. So turned k to 2. Still it gave unsuccessful hacking attempt. IInd Test case I gave: 1 1000000000 2 1000000000 Result-> Unsuccessful

История

 
 
 
 
Правки
 
 
  Rev. Язык Кто Когда Δ Комментарий
en5 Английский rachitiitr 2016-06-01 22:12:28 169
en4 Английский rachitiitr 2016-06-01 22:07:34 2 Tiny change: 'doing \nres = a[i]; ' -> 'doing \nrem = a[i]; '
en3 Английский rachitiitr 2016-06-01 21:53:57 16
en2 Английский rachitiitr 2016-06-01 21:53:28 8
en1 Английский rachitiitr 2016-06-01 21:52:21 660 Initial revision (published)