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>
int main()
{
int a,b,c,d,e;
scanf("%d%d%d%d%d",&a,&b,&c,&d,&e);
if((b+a-1)/a==(c+a-1)/a)printf("%d",(b+a-1)/a);
else if((b+a-1)/a>(c+a-1)/a)printf("%d",(c+a-1)/a+(b-(c+a-1)/a*a+2*a-1)/(2*a));
else printf("%d",(b+a-1)/a+(c-(b+a-1)/a*a+2*a-1)/(2*a));
}
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |