Submission #6020

#TimeUsernameProblemLanguageResultExecution timeMemory
6020gs13068쌍둥이 독수리 (GA7_twineagles)C++98
11 / 100
0 ms1088 KiB
#include<cstdio> int main() { long long t1,t2,t3; long long a,b,c,d,e; scanf("%lld%lld%lld%lld%lld",&a,&b,&c,&d,&e); if((b+a-1)/a==(c+a-1)/a)t1=(b+a-1)/a; else if((b+a-1)/a>(c+a-1)/a)t1=(c+a-1)/a+(b-(c+a-1)/a*a+2*a-1)/(2*a); else t1=(b+a-1)/a+(c-(b+a-1)/a*a+2*a-1)/(2*a); t2=(b+2*a-1)/(2*a)+(c+(b+2*a-1)/(2*a)*e+2*a-1)/(2*a); t3=(c+2*a-1)/(2*a)+(b+(c+2*a-1)/(2*a)*d+2*a-1)/(2*a); if(t1>t2)t1=t2; if(t1>t3)t1=t3; printf("%lld",t1); }
#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...