Quantcast
Channel: CodeChef Discuss - latest questions
Viewing all articles
Browse latest Browse all 39796

Using long long takes twice more time than using int !!!

$
0
0

Okey, I knew that using long long takes more time than using int. It is kinda logical. But, I just got AC on a problem (MAXPR) that took 6.72 seconds with long long (4138250) and then the same solution with all long long changed to int (4138255) took only 2.89 seconds!!!

That's almost half the time the solution required!! I found this strange. Is this always suppose to be like this?


Viewing all articles
Browse latest Browse all 39796

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>