QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#460188#5420. Inscryptionucup-team4204TL 1433ms5788kbC++202.8kb2024-07-01 05:23:592024-07-01 05:23:59

详细

Test #1:

score: 100
Accepted
time: 1ms
memory: 5740kb

input:

6
7
1 1 1 -1 1 1 -1
4
1 0 -1 0
4
0 -1 -1 0
1
0
2
0 0
1
-1

output:

3 2
3 1
-1
1 1
2 1
-1

result:

ok 6 lines

Test #2:

score: 0
Accepted
time: 138ms
memory: 5732kb

input:

1000000
1
1
1
-1
1
1
1
1
1
1
1
1
1
-1
1
-1
1
0
1
0
1
1
1
0
1
-1
1
0
1
1
1
0
1
1
1
0
1
1
1
0
1
0
1
0
1
1
1
-1
1
1
1
1
1
-1
1
0
1
1
1
0
1
-1
1
0
1
-1
1
1
1
-1
1
0
1
1
1
1
1
-1
1
0
1
-1
1
-1
1
-1
1
-1
1
0
1
0
1
-1
1
0
1
-1
1
0
1
0
1
0
1
0
1
0
1
-1
1
1
1
0
1
0
1
1
1
0
1
-1
1
1
1
1
1
0
1
1
1
1
1
1
1
0
1
...

output:

1 1
-1
1 1
1 1
1 1
1 1
-1
-1
1 1
1 1
1 1
1 1
-1
1 1
1 1
1 1
1 1
1 1
1 1
1 1
1 1
1 1
1 1
-1
1 1
1 1
-1
1 1
1 1
1 1
-1
1 1
-1
1 1
-1
1 1
1 1
1 1
-1
1 1
-1
-1
-1
-1
1 1
1 1
-1
1 1
-1
1 1
1 1
1 1
1 1
1 1
-1
1 1
1 1
1 1
1 1
1 1
-1
1 1
1 1
1 1
1 1
1 1
1 1
1 1
-1
-1
1 1
1 1
-1
1 1
1 1
1 1
1 1
-1
1 1
1 1
1 ...

result:

ok 1000000 lines

Test #3:

score: 0
Accepted
time: 59ms
memory: 5664kb

input:

181249
6
1 0 -1 0 1 0
4
1 -1 -1 -1
8
-1 0 0 0 1 -1 1 1
3
0 1 0
6
1 0 -1 1 -1 0
4
1 -1 -1 -1
9
0 1 0 -1 -1 0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-1
-1
-1
-1
-1
-1
-1
-1
-1
-1
-1
-1
-1
18 1
50 1
37 1
19 2
-1
21 1
-1
-1
14 1
15 2
30 1
-1
13 3
-1
-...

result:

ok 19793 lines

Test #5:

score: 0
Accepted
time: 163ms
memory: 5744kb

input:

1987
350
-1 1 0 0 0 -1 0 1 -1 1 0 0 -1 1 1 -1 1 1 -1 -1 -1 -1 0 1 1 0 1 0 0 0 -1 0 1 -1 1 0 1 -1 -1 1 0 1 1 1 -1 0 0 0 1 0 1 0 0 1 -1 1 0 1 0 1 -1 1 0 1 -1 -1 0 -1 1 0 -1 1 1 1 -1 -1 -1 0 0 0 0 -1 -1 -1 -1 -1 0 1 1 -1 -1 1 0 1 -1 0 0 -1 -1 1 0 0 -1 0 -1 1 1 0 -1 1 -1 0 -1 1 -1 1 1 -1 0 0 1 -1 1 0 1 ...

output:

-1
-1
182 3
57 2
205 2
262 3
428 3
25 1
333 2
-1
469 1
440 3
176 3
-1
-1
-1
175 2
-1
44 1
-1
-1
-1
-1
-1
-1
135 1
-1
-1
-1
-1
-1
-1
-1
470 3
158 5
215 1
-1
-1
-1
-1
55 1
-1
-1
-1
241 1
175 11
-1
393 1
224 5
45 1
165 1
209 1
-1
488 1
15 1
-1
-1
-1
-1
-1
312 5
-1
-1
-1
-1
78 1
211 2
-1
-1
172 1
458 1
...

result:

ok 1987 lines

Test #6:

score: 0
Accepted
time: 1433ms
memory: 5668kb

input:

188
5255
1 0 -1 -1 1 0 0 0 -1 0 -1 1 0 -1 1 0 -1 0 -1 0 0 0 0 -1 -1 0 0 1 -1 1 0 -1 0 -1 -1 1 0 1 -1 1 -1 1 0 1 1 1 -1 1 1 1 -1 0 -1 -1 0 0 1 1 0 0 -1 -1 0 1 0 0 1 0 -1 -1 1 -1 -1 1 0 -1 1 0 0 -1 1 -1 -1 -1 1 1 -1 0 1 1 -1 -1 1 0 -1 -1 -1 0 1 1 1 -1 0 1 -1 1 -1 0 1 0 -1 1 0 0 1 0 0 -1 1 1 -1 1 1 -1 ...

output:

2629 2
-1
-1
2154 1
1205 2
2907 1
-1
3373 2
4531 4
-1
3399 2
-1
-1
-1
-1
470 3
-1
1737 1
-1
-1
1475 2
4915 3
705 7
-1
2269 2
4587 2
-1
2021 1
-1
2990 7
-1
-1
-1
-1
848 1
1533 1
-1
-1
595 1
-1
-1
-1
1553 4
-1
225 4
-1
-1
-1
1697 3
494 1
-1
2433 1
-1
-1
-1
-1
-1
-1
931 3
-1
3211 1
1119 1
1382 1
1591 1...

result:

ok 188 lines

Test #7:

score: -100
Time Limit Exceeded

input:

19
48437
-1 1 1 -1 0 0 -1 1 -1 1 -1 -1 -1 -1 -1 0 1 0 1 -1 -1 1 -1 -1 1 1 1 0 1 -1 0 0 -1 -1 0 0 1 0 0 1 1 1 1 0 -1 0 -1 1 1 -1 -1 0 1 1 0 0 0 1 0 -1 0 -1 1 0 0 0 -1 1 1 -1 0 0 0 0 -1 0 -1 0 -1 0 1 0 -1 1 0 1 -1 1 0 1 1 0 0 1 -1 -1 0 1 -1 0 1 1 -1 1 -1 0 -1 -1 1 0 -1 1 0 1 0 0 1 1 0 1 1 -1 0 -1 0 1 ...

output:


result: