QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#405119#3013. XOR Sequencesucup-team1005#WA 6ms6176kbC++201.1kb2024-05-05 11:35:362024-05-05 11:35:38

Details

Tip: Click on the bar to expand more detailed information

Test #1:

score: 100
Accepted
time: 0ms
memory: 4548kb

input:

4 12
2
2
3
6
1
12
1
12
9
7
5
5
4
8
10
11

output:

8

result:

ok answer is 8

Test #2:

score: 0
Accepted
time: 1ms
memory: 5660kb

input:

4 5
2
2
2
2
5
1
5
1
4
4
3
3
4
4
3
3

output:

64

result:

ok answer is 64

Test #3:

score: 0
Accepted
time: 1ms
memory: 4620kb

input:

4 1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1

output:

16

result:

ok answer is 16

Test #4:

score: 0
Accepted
time: 0ms
memory: 5560kb

input:

0 1
1

output:

1

result:

ok answer is 1

Test #5:

score: 0
Accepted
time: 1ms
memory: 4628kb

input:

1 1
1
1

output:

2

result:

ok answer is 2

Test #6:

score: 0
Accepted
time: 1ms
memory: 5656kb

input:

1 2
2
1

output:

1

result:

ok answer is 1

Test #7:

score: 0
Accepted
time: 1ms
memory: 5572kb

input:

2 3
2
2
3
1

output:

2

result:

ok answer is 2

Test #8:

score: 0
Accepted
time: 0ms
memory: 4604kb

input:

2 3
2
1
2
3

output:

0

result:

ok answer is 0

Test #9:

score: 0
Accepted
time: 4ms
memory: 6168kb

input:

16 2552
2552
2552
2552
2552
2552
2552
2552
2552
2552
2552
2552
2552
2552
2552
2552
2552
2552
2552
2552
2552
2552
2552
2552
2552
2552
2552
2552
2552
2552
2552
2552
2552
2551
2551
2551
2551
2551
2551
2551
2551
2551
2551
2551
2551
2551
2551
2551
2551
2550
2550
2550
2550
2550
2550
2550
2550
2550
2550
25...

output:

596575534

result:

ok answer is 596575534

Test #10:

score: 0
Accepted
time: 0ms
memory: 5392kb

input:

16 647
20
20
20
20
20
20
20
20
20
20
20
20
20
20
20
20
20
20
20
20
20
20
20
20
20
20
20
20
20
20
20
20
20
20
20
20
20
20
20
20
20
20
20
20
20
20
20
20
20
20
20
20
20
20
20
20
20
20
20
20
20
20
20
20
190
190
190
190
190
190
190
190
149
149
149
149
149
149
149
149
190
190
190
190
190
190
190
190
149
1...

output:

883211652

result:

ok answer is 883211652

Test #11:

score: 0
Accepted
time: 0ms
memory: 5456kb

input:

16 4
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
1
1
1
1
1
1
1
1
1...

output:

974740338

result:

ok answer is 974740338

Test #12:

score: 0
Accepted
time: 0ms
memory: 5320kb

input:

16 16
15
15
15
15
15
15
15
15
15
15
15
15
15
15
15
15
15
15
15
15
15
15
15
15
15
15
15
15
15
15
15
15
15
15
15
15
15
15
15
15
15
15
15
15
15
15
15
15
15
15
15
15
15
15
15
15
15
15
15
15
15
15
15
15
15
15
15
15
15
15
15
15
15
15
15
15
15
15
15
15
15
15
15
15
15
15
15
15
15
15
15
15
15
15
15
15
15
15
...

output:

978747134

result:

ok answer is 978747134

Test #13:

score: 0
Accepted
time: 0ms
memory: 6112kb

input:

16 16
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
...

output:

487761806

result:

ok answer is 487761806

Test #14:

score: 0
Accepted
time: 2ms
memory: 5412kb

input:

16 17
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
...

output:

489373567

result:

ok answer is 489373567

Test #15:

score: 0
Accepted
time: 6ms
memory: 6048kb

input:

16 52361
26988
51822
45167
17373
49212
14325
34575
52354
35631
50239
36790
52350
8802
46009
50010
47588
42797
46395
42797
46395
40654
20412
48888
48888
26581
34567
22029
22029
19970
45614
18366
18366
17163
26564
45082
26166
15479
33436
329
329
33854
26248
37775
6536
52323
52323
4089
30570
24208
2420...

output:

117465194

result:

ok answer is 117465194

Test #16:

score: 0
Accepted
time: 6ms
memory: 6176kb

input:

16 65536
55473
32701
13511
38981
9512
17597
22203
30263
44926
35075
44124
18851
31048
64346
27158
20745
40676
16101
7773
14416
26240
65515
21677
8375
63022
29250
53479
31055
20771
4954
26110
17283
61220
53404
33552
60001
36161
40692
9321
7700
41378
44316
14018
44886
31791
32758
23113
34455
30974
141...

output:

1

result:

ok answer is 1

Test #17:

score: 0
Accepted
time: 4ms
memory: 6116kb

input:

16 256
44
44
44
44
44
44
44
44
44
44
44
44
44
44
44
44
44
44
44
44
44
44
44
44
44
44
44
44
44
44
44
44
44
44
44
44
44
44
44
44
44
44
44
44
44
44
44
44
44
44
44
44
44
44
44
44
44
44
44
44
44
44
44
44
44
44
44
44
44
44
44
44
44
44
44
44
44
44
44
44
44
44
44
44
44
44
44
44
44
44
44
44
44
44
44
44
44
44...

output:

409643880

result:

ok answer is 409643880

Test #18:

score: 0
Accepted
time: 0ms
memory: 5416kb

input:

16 1935
539
539
539
539
1057
1057
1057
1057
539
539
539
539
1057
1057
1057
1057
664
664
664
664
664
664
664
664
664
664
664
664
664
664
664
664
1027
1027
1027
1027
1027
1027
1027
1027
1027
1027
1027
1027
1027
1027
1027
1027
996
996
996
996
996
996
996
996
996
996
996
996
996
996
996
996
1351
1351
13...

output:

127536394

result:

ok answer is 127536394

Test #19:

score: -100
Wrong Answer
time: 4ms
memory: 6176kb

input:

16 195
114
114
114
114
114
114
114
114
114
114
114
114
114
114
114
114
74
74
74
74
74
74
74
74
33
33
33
33
33
33
33
33
85
85
85
85
85
85
85
85
85
85
85
85
85
85
85
85
85
85
85
85
85
85
85
85
85
85
85
85
85
85
85
85
56
56
56
56
56
56
56
56
56
56
56
56
56
56
56
56
56
56
56
56
56
56
56
56
56
56
56
56
5...

output:

-871995811

result:

wrong answer expected 39724215, found -871995811