October Challenge 2014 (FATCHEF)

I just got an AC in FATCHEF. But codechef says that my execution time is 2.33s. But, the time limit in the question is 2s. How did I get an AC then?? :stuck_out_tongue:
Just curious to know… :stuck_out_tongue:

Thanks… :slight_smile:

The time shown is the cumulative execution time over all the test cases.The limit mentioned is for an individual test case.

1 Like

Thanks :slight_smile:
And 1 more thing, what bit compiler does codechef use??? Because sometimes I get WA for using int and sometimes it gives a correct answer for very large answers in int only. Any idea??

if your values reside within (±)10^9 you can use int in codechef.

1 Like

@ashwini007k But, it fails in the challenge… :\ When I change everything to long long then it gives an AC. Any specific reason??

There must be something wrong with your logic or some intermediate value might be exceeding the range of int…