Differents??

Правка en2, от Omega1, 2015-07-19 11:55:25

Today I solved problem E. A Simple task that was given at last contest,and I find something intersting and new for me, posible and for other users.Why if I declare k as a global variable I get TLE on test 9 and if I declare as a local variable int k=x my code past all tests?

Can someone explain why?

История

 
 
 
 
Правки
 
 
  Rev. Язык Кто Когда Δ Комментарий
en8 Английский Omega1 2015-07-20 13:57:56 4
en7 Английский Omega1 2015-07-19 13:56:19 28 Tiny change: ' variable `int k,int st,int dr,int l` [my code]' -> ' variable [my code]'
en6 Английский Omega1 2015-07-19 13:50:11 30 Tiny change: 'ble `int k=x,int st,in' -
en5 Английский Omega1 2015-07-19 13:22:56 511 Tiny change: 'ain why?\n`k=x;\n\' -
en4 Английский Omega1 2015-07-19 13:14:40 6 Tiny change: 'ssion/12114162) past all' -> 'ssion/12115404) past all'
en3 Английский Omega1 2015-07-19 13:10:58 16 Tiny change: 'sion/12114547?locale=en) past all' -> 'sion/12114162) past all'
en2 Английский Omega1 2015-07-19 11:55:25 1
en1 Английский Omega1 2015-07-19 11:54:33 499 Initial revision (published)