목록CodeUp (56)
Note
[codeup] 131. 나이 계산 2
age = int(input()) year = 2012 - age +1 info = 0 if year< 2000 : info += 1 else : info += 3 year %= 100 print(year, info)
etc/Coding Test
2022. 1. 30. 17:52
[codeup] 130. 나이 계산 1
a,b = map(int, input().split()) a = str(a) present = 2012 if b == 1 or b == 2: if len(a) == 5: year = int(a[:1])+1900 print(present - year + 1) elif len(a) == 6: year = int(a[:2])+1900 print(present - year + 1) elif len(a)
etc/Coding Test
2022. 1. 29. 00:00
[codeup] 129. 두 번째 작은 수
n = list(map(int, input().split())) n.sort(reverse = True) print(n[1])
etc/Coding Test
2022. 1. 28. 00:00
[codeup] 128. 축구의 신 1
a,b = map(int, input().split()) if a%5 == 0: print(int(((90-a)/5)+b)) else: print(int(((90-a)/5)+1+b))
etc/Coding Test
2022. 1. 27. 00:00