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<cstdio>
long long f(int n)
{
if(n<4)return 2;
long long t=n/2;
return t*(t+1);
}
int main()
{
int a,b;
scanf("%d%d",&a,&b);
printf("%lld",f(b)-f(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... |