We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a818746 commit 2b3dab7Copy full SHA for 2b3dab7
1 file changed
심수연/11주차/260310.py
@@ -12,8 +12,8 @@
12
if i < 100:
13
count += 1 # 100 이상이면 99만큼 무조건 더해짐
14
else: # 세자리수 (N < 1000 이므로)
15
- minus1 = int(str(N)[0]) - int(str(N)[1])
16
- minus2 = int(str(N)[1]) - int(str(N)[2])
+ minus1 = int(str(i)[0]) - int(str(i)[1])
+ minus2 = int(str(i)[1]) - int(str(i)[2])
17
if minus1 == minus2:
18
count += 1
19
0 commit comments