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 A, B, Ans;
int main(void)
{
scanf("%lld %lld",&A,&B);
if(B>=4)
{
Ans=((B+1)/2)*((B+1)/2+1)-((A-1)/2)*((A-1)/2+1);
if(A<=2)
Ans-=2;
}
printf("%lld",Ans);
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... |