답안 #6020

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
6020 2014-06-15T17:21:34 Z gs13068 쌍둥이 독수리 (GA7_twineagles) C++
11 / 100
0 ms 1088 KB
#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);
}
# 결과 실행 시간 메모리 Grader output
1 Correct 0 ms 1088 KB Output is correct
2 Correct 0 ms 1088 KB Output is correct
3 Correct 0 ms 1088 KB Output is correct
4 Correct 0 ms 1088 KB Output is correct
5 Correct 0 ms 1088 KB Output is correct
6 Correct 0 ms 1088 KB Output is correct
7 Correct 0 ms 1088 KB Output is correct
8 Correct 0 ms 1088 KB Output is correct
9 Correct 0 ms 1088 KB Output is correct
10 Correct 0 ms 1088 KB Output is correct
11 Correct 0 ms 1088 KB Output is correct
12 Correct 0 ms 1088 KB Output is correct
13 Correct 0 ms 1088 KB Output is correct
14 Correct 0 ms 1088 KB Output is correct
15 Correct 0 ms 1088 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Incorrect 0 ms 1088 KB Output isn't correct
2 Halted 0 ms 0 KB -
# 결과 실행 시간 메모리 Grader output
1 Incorrect 0 ms 1088 KB Output isn't correct
2 Halted 0 ms 0 KB -
# 결과 실행 시간 메모리 Grader output
1 Incorrect 0 ms 1088 KB Output isn't correct
2 Halted 0 ms 0 KB -
# 결과 실행 시간 메모리 Grader output
1 Incorrect 0 ms 1088 KB Output isn't correct
2 Halted 0 ms 0 KB -