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??
Just curious to know…
Thanks…
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??
Just curious to know…
Thanks…
The time shown is the cumulative execution time over all the test cases.The limit mentioned is for an individual test case.
Thanks
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.
@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…