回答編集履歴
3
スキップ処理削除
test
CHANGED
@@ -6,15 +6,11 @@
|
|
6
6
|
|
7
7
|
```py
|
8
8
|
|
9
|
-
skip_first = False
|
10
|
-
|
11
9
|
try:
|
12
10
|
|
13
11
|
with open('text.txt') as f:
|
14
12
|
|
15
13
|
s01, s02, s03, s04, s05, s06, s07, s08 = map(int, f.read().strip().split())
|
16
|
-
|
17
|
-
skip_first = True
|
18
14
|
|
19
15
|
except FileNotFoundError:
|
20
16
|
|
@@ -40,12 +36,6 @@
|
|
40
36
|
|
41
37
|
for n01 in range(s01, STOP):
|
42
38
|
|
43
|
-
if skip_first:
|
44
|
-
|
45
|
-
skip_first = False
|
46
|
-
|
47
|
-
continue
|
48
|
-
|
49
39
|
with open('text.txt', 'w') as f:
|
50
40
|
|
51
41
|
print(n01, n02, n03, n04, n05, n06, n07, n08, file=f)
|
2
STOP値修正
test
CHANGED
@@ -22,7 +22,7 @@
|
|
22
22
|
|
23
23
|
|
24
24
|
|
25
|
-
STOP =
|
25
|
+
STOP = 33
|
26
26
|
|
27
27
|
for n08 in range(s08, STOP):
|
28
28
|
|
1
バグ修正
test
CHANGED
@@ -6,35 +6,45 @@
|
|
6
6
|
|
7
7
|
```py
|
8
8
|
|
9
|
+
skip_first = False
|
10
|
+
|
9
11
|
try:
|
10
12
|
|
11
13
|
with open('text.txt') as f:
|
12
14
|
|
13
|
-
|
15
|
+
s01, s02, s03, s04, s05, s06, s07, s08 = map(int, f.read().strip().split())
|
16
|
+
|
17
|
+
skip_first = True
|
14
18
|
|
15
19
|
except FileNotFoundError:
|
16
20
|
|
17
|
-
|
21
|
+
s01 = s02 = s03 = s04 = s05 = s06 = s07 = s08 = 0
|
18
22
|
|
19
23
|
|
20
24
|
|
21
|
-
STOP =
|
25
|
+
STOP = 2
|
22
26
|
|
23
|
-
for n08 in range(
|
27
|
+
for n08 in range(s08, STOP):
|
24
28
|
|
25
|
-
for n07 in range(
|
29
|
+
for n07 in range(s07, STOP):
|
26
30
|
|
27
|
-
for n06 in range(
|
31
|
+
for n06 in range(s06, STOP):
|
28
32
|
|
29
|
-
for n05 in range(
|
33
|
+
for n05 in range(s05, STOP):
|
30
34
|
|
31
|
-
for n04 in range(
|
35
|
+
for n04 in range(s04, STOP):
|
32
36
|
|
33
|
-
for n03 in range(
|
37
|
+
for n03 in range(s03, STOP):
|
34
38
|
|
35
|
-
for n02 in range(
|
39
|
+
for n02 in range(s02, STOP):
|
36
40
|
|
37
|
-
for n01 in range(
|
41
|
+
for n01 in range(s01, STOP):
|
42
|
+
|
43
|
+
if skip_first:
|
44
|
+
|
45
|
+
skip_first = False
|
46
|
+
|
47
|
+
continue
|
38
48
|
|
39
49
|
with open('text.txt', 'w') as f:
|
40
50
|
|