Skip to content

Commit 2b3dab7

Browse files
committed
[BOJ] 1065 한수 (S4)
1 parent a818746 commit 2b3dab7

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

심수연/11주차/260310.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@
1212
if i < 100:
1313
count += 1 # 100 이상이면 99만큼 무조건 더해짐
1414
else: # 세자리수 (N < 1000 이므로)
15-
minus1 = int(str(N)[0]) - int(str(N)[1])
16-
minus2 = int(str(N)[1]) - int(str(N)[2])
15+
minus1 = int(str(i)[0]) - int(str(i)[1])
16+
minus2 = int(str(i)[1]) - int(str(i)[2])
1717
if minus1 == minus2:
1818
count += 1
1919

0 commit comments

Comments
 (0)