http://codeup.kr/problem.php?id=1297
Codeup 1297 - 단면의 최대 넓이
n = int(input())
widest = 0
bend = 0
for i in range(1, int(n/2)):
if widest < i * (n - i*2):
widest = i * (n - i*2)
bend = i
print(bend)
'알고리즘 문제 풀기 > Codeup' 카테고리의 다른 글
Codeup 1352 - 사각형 출력하기 1 (0) | 2019.02.17 |
---|---|
Codeup 1351 - 구구단 출력하기 2 (0) | 2019.02.17 |
Codeup 1296 - 직사각형의 최대 넓이 (0) | 2019.02.15 |
Codeup 1295 - 알파벳 대소문자 변환 (0) | 2019.02.15 |
Codeup 1294 - 씨저의 암호 2 (0) | 2019.02.14 |