๐ Python/๋ฐฑ์ค
[1110]๋ํ๊ธฐ ์ฌ์ดํด
import sys N = int(sys.stdin.readline()) S = N count = 0 while True: N = (N % 10) * 10 + (N // 10 + N % 10) % 10 count += 1 if N == S: print(count) break else: continue 1110 ๋ํ๊ธฐ ์ฌ์ดํด
[10951]A+B-4
import sys while True: try: A, B = map(int, sys.stdin.readline().split()) print(A + B, sep='\n') except: break 10951 A+B-4 ๋ฐํ์ ์ค๋ฅ ๋ถ๋ถ ํด๊ฒฐํ๋ ๊ฒ ์ข ์ ๋จน์๋ ๋ฌธ์ ! ์ค๋ฅ ํผํด๊ฐ๋ ๋ฒ ์ตํ ์ ์์๋ค. :)
[2439]๋ณ ์ฐ๊ธฐ-2
import sys N = int(sys.stdin.readline()) for i in range(1, N+1): print(' ' * (N-i) + '*' * i, sep='\n') 2439 ๋ณ ์ฐ๊ธฐ-2
[11022]A+B-8
import sys T = int(sys.stdin.readline()) for i in range(1, T+1): A, B = map(int, sys.stdin.readline().split()) print(f"Case #{i}: {A} + {B} = {A+B}", sep='\n') 11022 A+B-8
[11021]A+B-7
import sys T = int(sys.stdin.readline()) for i in range(1, T+1): A, B = map(int, sys.stdin.readline().split()) print(f"Case #{i}: {A+B}", sep='\n') 11021 A+B-7