Submission #6017

#TimeUsernameProblemLanguageResultExecution timeMemory
6017gs13068쌍둥이 독수리 (GA7_twineagles)C++98
11 / 100
0 ms1088 KiB
#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 timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...