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(long long p){
    if(p<4) return 0;
    p >>= 1;
    long long res = p*(p+1)/2;
    return res-1;
}
int main(){
    long long s,e;
    scanf("%lld %lld",&s,&e);
    printf("%lld",2*(f(e)-f(s-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... |