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()
{
int a, b, i, n=0;
scanf("%d %d", &a, &b);
n=(a-b)/2;
if(a%2==0 && b%2==0) n++;
else if(a%2==1 && b%2==1) n--;
printf("%d", n);
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... |