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

ALEXNUMB getting wrong answer

$
0
0

what is the difference between (long long)(n * (n-1))and (long long)n * (n-1)/2.. in the latter one i am getting correct answer whereas in the first one it is showing wrong answer.


Viewing all articles
Browse latest Browse all 40121

Trending Articles



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