QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#659960#7007. Rikka with Data StructuresZhangYiDeWA 3037ms24296kbC++235.6kb2024-10-20 00:12:522024-10-20 00:12:52

Details

Tip: Click on the bar to expand more detailed information

Test #1:

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

input:

1
10 10
1 3 2 5 2 3 1 6 4 5
3 5 7 8
3 5 7 4
1 1 5 2
3 1 10 4
3 1 10 8
2 8 8 8
3 1 10 8
3 1 10 4
2 4 8 1
3 1 2 10

output:

3
3
10
7
10
8
2

result:

ok 7 lines

Test #2:

score: -100
Wrong Answer
time: 3037ms
memory: 24296kb

input:

200
321 43
168330405 102091681 86278243 227886812 609333939 211045240 332465535 212315420 510322126 700237719 102348318 320419595 409640374 582249257 245617532 643949598 748863235 405762764 358055464 585833725 429993246 60296212 632603910 229141445 696836739 297883078 545245133 44079558 92873286 347...

output:

0
58
60
2
2
0
50
5
9
80
58
37
97
247
106
87
43
335
18
2
0
1
2
0
18
5
0
1
5
53
42
0
7
54
101
36
4
0
44
6
1
42
0
1
0
135
8
11
3
26
123
35
155
176
108
116
115
0
0
163
2
99
41
2
104
75
2
97
123
11
105
183
0
0
41
0
0
26
0
4
0
58
15
71
19
22
3
4
2
0
11
74
0
31
0
43
44
0
136
2
60
64
21
0
75
7
0
212
0
85
0
...

result:

wrong answer 1st lines differ - expected: '1', found: '0'