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 calc(long long int x)
{
if(x<=2) return 2;
else return (x/2)*(x/2+1);
}
int main()
{
long long int a,b;
scanf("%lld%lld",&a,&b);
printf("%lld",calc(b)-calc(a-1));
}
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |