๊ฐ์๊ธฐ ๋ค์์ฃผ์ softeer ์ฝํ ๋ฅผ ๋ณด๊ฒ ์๊ฒจ์ ๊ณต๋ถ ์์..! (์ ๋ณผ ์๋.. ^_ใ )
์ฃผํ๊ฑฐ๋ฆฌ ๋น๊ตํ๊ธฐ
import sys
read = sys.stdin.readline
A, B = map(int, read().split())
if A > B:
print('A')
elif A == B:
print('same')
else:
print('B')
๊ทผ๋ฌด ์๊ฐ
import sys
read = sys.stdin.readline
total = 0
for i in range(5):
start, end = map(str, read().split())
start_h, start_m = start.split(":")
end_h, end_m = end.split(":")
start_h, start_m, end_h, end_m = int(start_h), int(start_m), int(end_h), int(end_m)
if start_m > end_m:
end_h -= 1
end_m += 60
total += (end_h - start_h) * 60 + (end_m - start_m)
print(total)
A+B
import sys
read = sys.stdin.readline
N = int(read())
for i in range(N):
A, B = map(int, read().split())
print("Case #" + str(i + 1) + ":", A + B)
's t u d y . . ๐ง > coding test' ์นดํ ๊ณ ๋ฆฌ์ ๋ค๋ฅธ ๊ธ
[softeer] level 2 : ๊ธ๊ณ ํธ์ด/8๋จ ๋ณ์๊ธฐ/์ฅ์ ๋ฌผ ์ธ์ ํ๋ก๊ทธ๋จ (0) | 2023.05.25 |
---|