質問編集履歴

1

コード

2020/07/19 08:20

投稿

pussy_pussy
pussy_pussy

スコア22

test CHANGED
File without changes
test CHANGED
@@ -30,35 +30,23 @@
30
30
 
31
31
 
32
32
 
33
- def A(x):
33
+ for i in range(len(s)):
34
34
 
35
- global N
35
+ if s[i] == 1:
36
36
 
37
+ N +=1
37
38
 
38
-
39
- if int(s) // x == 1:
39
+
40
-
41
- N += 1
42
-
43
- int(s)-x
44
-
45
-
46
40
 
47
41
  else:
48
42
 
49
- pass
50
-
51
-
52
-
53
- A(100)
43
+ continue
54
-
55
- A(10)
56
-
57
- A(1)
58
44
 
59
45
 
60
46
 
61
47
  print(N)
48
+
49
+
62
50
 
63
51
 
64
52