M.Dawwas's blog

By M.Dawwas, history, 6 years ago, In English

Hello Every Body :D

i have solved this problem on spoj : http://www.spoj.com/problems/SUMFOUR

but there is something I didn't understand

this code get ACCEPTED : https://ideone.com/8fS4Ll

while this TLE : https://ideone.com/HakngE

any explanation for that ?

 
 
 
 
  • Vote: I like it
  • -8
  • Vote: I do not like it

»
6 years ago, # |
  Vote: I like it 0 Vote: I do not like it

The Same Happened With me In The Same Question And I Dont Know Why !!!

»
6 years ago, # |
  Vote: I like it 0 Vote: I do not like it

Wow just swapped those variables in my 1 year old TLE'd solution, and today finally it got AC.

I guess the test cases are built like that in the problem.