回答編集履歴
2
微修正
test
CHANGED
@@ -8,7 +8,9 @@
|
|
8
8
|
|
9
9
|
# b: a内の最大値+1 個の0を並べた度数表
|
10
10
|
|
11
|
+
b = [0]
|
12
|
+
|
11
|
-
b =
|
13
|
+
b *= max(a)+1
|
12
14
|
|
13
15
|
|
14
16
|
|
@@ -26,9 +28,7 @@
|
|
26
28
|
|
27
29
|
for val in range(len(b)):
|
28
30
|
|
29
|
-
|
31
|
+
a += [val] * b[val]
|
30
|
-
|
31
|
-
a.append(val)
|
32
32
|
|
33
33
|
|
34
34
|
|
1
微修正
test
CHANGED
@@ -8,9 +8,7 @@
|
|
8
8
|
|
9
9
|
# b: a内の最大値+1 個の0を並べた度数表
|
10
10
|
|
11
|
-
b = [0]
|
12
|
-
|
13
|
-
b
|
11
|
+
b = [0] * (max(a)+1)
|
14
12
|
|
15
13
|
|
16
14
|
|