QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#521358#7007. Rikka with Data StructuresGuanYunchangAC ✓2470ms26884kbC++234.6kb2024-08-16 09:10:552024-08-16 09:10:55

Details

Tip: Click on the bar to expand more detailed information

Test #1:

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

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: 0
Accepted
time: 2092ms
memory: 26884kb

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:

1
59
70
2
2
1
50
5
9
149
58
189
97
247
106
103
43
335
18
87
165
13
68
0
101
5
0
0
5
148
60
0
62
85
171
64
60
0
121
56
0
42
0
167
15
142
15
152
114
28
123
35
219
235
110
120
117
0
0
239
7
104
41
19
104
75
2
114
240
6
143
196
15
0
70
42
93
87
212
4
0
119
103
86
85
52
5
26
41
0
11
74
0
128
20
128
108
0...

result:

ok 537510 lines

Test #3:

score: 0
Accepted
time: 2470ms
memory: 26392kb

input:

200
1000 1000
713461821 335659317 728622735 565055025 676189278 198078223 558499753 212651574 230931147 569362123 355576596 640258410 277799062 534119954 47415612 181943136 899691295 288861951 414045724 980772190 88609953 779771556 963245511 3359968 448040102 686663557 390217443 748126228 121334413 ...

output:

4
125
0
0
0
239
280
135
103
108
484
5
687
141
342
730
280
399
215
781
325
109
139
4
134
705
430
0
0
440
528
43
369
28
0
457
5
23
884
559
65
279
378
152
0
0
112
173
573
0
0
63
913
736
777
31
723
290
167
711
309
7
344
290
59
127
553
0
138
452
367
237
586
252
147
430
0
26
113
0
791
22
0
574
87
401
16
2...

result:

ok 593920 lines