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

over flow in FUNAGP

$
0
0

As limits of R is [1,10^9], so even (S+2D)*R^2 has the chance of integer over flow if R is 10^9 (long long int in c). So do we have to do (% 1000000007) each time? And is it required to print an empty line after each output ?


Viewing all articles
Browse latest Browse all 40121

Trending Articles



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