回答編集履歴
1
バグ修正
test
CHANGED
@@ -126,7 +126,7 @@
|
|
126
126
|
|
127
127
|
shuffleArr[i] = i;
|
128
128
|
|
129
|
-
for (int i = 50; i >
|
129
|
+
for (int i = 50; i > 0; ) {
|
130
130
|
|
131
131
|
int b = rand() % i--;
|
132
132
|
|
@@ -146,7 +146,7 @@
|
|
146
146
|
|
147
147
|
tmpArr[i] = tmpArr[i + randomNum] = shuffleArr[i];
|
148
148
|
|
149
|
-
for (int i = randomNum * 2; i >
|
149
|
+
for (int i = randomNum * 2; i > 0; ) {
|
150
150
|
|
151
151
|
int b = rand() % i--;
|
152
152
|
|