Head vs breakz
[code] - 백준 while문 10952,10951,1110 python 본문
10952
#while
#10952
while(True):
a ,b = map(int, input().split())
if a == 0 and b == 0 :
break
else :
print(a+b)
10951
#10951
while(True):
try :
a ,b = map(int, input().split())
except :
break
print(a+b)
1110
#1110
a = int(input())
b = a//10
c = a%10
new_a = -100
count = 0
while(new_a != a):
count += 1
new_a = c*10 + (b+c)% 10
b = new_a//10
c = new_a%10
print(count)
'Head > Code' 카테고리의 다른 글
[code] - 백준 1차열배열 10818,2582,2577,3053,1546,8958,4344 python (0) | 2020.04.03 |
---|---|
[code] - 백준 실습1 10039,5543,10817,2523,2446,10996, python (0) | 2020.03.19 |
[code] - 백준 for문 2739,10950,8393,15552,2741,2742,11021,11022,2438,2439,10871 python (0) | 2020.03.16 |
[code] - 백준 if문 1330,9498,2753,2884,14681번 python (0) | 2020.03.16 |
[Code] - yolo detection (0) | 2020.03.03 |
Comments