This submission is migrated from previous version of oj.uz, which used different machine for grading. This submission may have different result if resubmitted.
#include<stdio.h>
long long int sum(int x)
{
x/=2;
long long int ret=x;
return ret*(ret+1);
}
int main()
{
int a,b;scanf("%d%d",&a,&b);
printf("%lld",sum(b)-sum(a-1));
return 0;
}
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |