http://codeup.kr/problem.php?id=1169
Codeup 1169 - 나이 계산 2
xxxxxxxxxxage = input()age = int(age)birth_year = 2012 - age + 1if(birth_year < 2000): birth_year = str(birth_year) print(int(birth_year[2:4]), 1)else: birth_year = str(birth_year) print(int(birth_year[2:4]), 3)
'알고리즘 문제 풀기 > Codeup' 카테고리의 다른 글
| Codeup 1171 - 당신의 학번은 2 (0) | 2018.12.24 |
|---|---|
| Codeup 1170 - 당신의 학번은 1 (0) | 2018.12.24 |
| Codeup 1168 - 나이 계산 1 (0) | 2018.12.23 |
| Codeup 1167 - 두 번째로 작은 수 (0) | 2018.12.23 |
| Codeup 1166 - 윤년 판별 (0) | 2018.12.23 |