質問編集履歴
1
コードを一部修正しました
test
CHANGED
File without changes
|
test
CHANGED
@@ -39,6 +39,8 @@
|
|
39
39
|
|
40
40
|
|
41
41
|
int solve(int x, int count){
|
42
|
+
|
43
|
+
if(x == -1) return 0;
|
42
44
|
|
43
45
|
if(x == 0) return count;
|
44
46
|
|
@@ -108,7 +110,7 @@
|
|
108
110
|
|
109
111
|
if(x_list[i]){
|
110
112
|
|
111
|
-
if(pc-1 < 1){xi[i]=
|
113
|
+
if(pc-1 < 1){xi[i]=-1; continue;}
|
112
114
|
|
113
115
|
xi[i] = (xm-tmp+pc-1)%(pc-1);
|
114
116
|
|