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>
int main(){
long long int n,m,i,t=0;
scanf("%lld %lld",&n,&m);
if(n==1||n==2)n==3;
if(n%2==1)n++;
if(n==m){printf("%d",n);return 0;}
t=m-n;
t/=2;
t*=(n+m);
printf("%lld",(m-n)/2*(n+m));
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... |