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.
↧
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.