QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#875703#7869. 建设终末树addiyoue0 647ms52772kbC++206.6kb2025-01-30 10:10:482025-01-30 10:10:49

Details

Tip: Click on the bar to expand more detailed information

Subtask #1:

score: 0
Time Limit Exceeded

Test #1:

score: 0
Time Limit Exceeded

input:

1999 1998 27199
1368 233
233 617
233 388
233 1127
1905 233
907 233
233 40
233 1325
233 1940
1739 233
501 233
233 33
735 233
233 283
233 1427
1992 233
233 632
233 685
1188 233
648 233
233 344
233 1321
986 233
848 233
770 233
256 233
164 233
936 233
1206 233
53 233
1054 233
1430 233
1714 233
86 233
11...

output:

7984009 1
7984010 2
7984011 3
7984012 4
7984013 5
7984014 6
7984015 7
7984016 8
7984017 9
7984018 10
7984019 11
7984020 12
7984021 13
7984022 14
7984023 15
7984024 16
7984025 17
7984026 18
7984027 19
7984028 20
7984029 21
7984030 22
7984031 23
7984032 24
7984033 25
7984034 26
7984035 27
7984036 28
7...

result:


Subtask #2:

score: 0
Wrong Answer

Test #8:

score: 0
Wrong Answer
time: 0ms
memory: 18236kb

input:

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

output:

181 1
182 2
183 6
184 7
185 2
186 6
187 7
188 98
182 181
185 186
183 182
186 187
184 183
187 188
91 185
92 181
92 186
96 182
96 187
97 183
97 188
8 184
189 10
190 11
191 15
192 16
193 11
194 15
195 16
196 107
190 189
193 194
191 190
194 195
192 191
195 196
100 193
101 189
101 194
105 190
105 195
106...

result:

wrong answer Integer 181 violates the range [-1, 10]

Subtask #3:

score: 0
Wrong Answer

Test #19:

score: 0
Wrong Answer
time: 647ms
memory: 52772kb

input:

500 498 5000
60 409
462 125
461 410
42 178
133 372
137 265
358 27
450 294
45 454
76 405
132 118
333 331
365 230
114 218
112 377
49 429
60 299
488 95
85 362
89 33
426 308
427 198
468 481
289 363
195 430
61 21
162 55
12 487
395 85
79 475
391 215
244 351
331 43
452 186
247 271
224 390
206 347
447 165
9...

output:

497005 83
497006 427
248585 497006
248929 497005
497007 582
497008 926
249084 497008
249428 497007
497009 1081
497010 1425
249583 497010
249927 497009
497011 1580
497012 1924
250082 497012
250426 497011
497013 2079
497014 2423
250581 497014
250925 497013
497015 2578
497016 2922
251080 497016
251424 ...

result:

wrong answer Integer 497005 violates the range [-1, 500]

Subtask #4:

score: 0
Skipped

Dependency #2:

0%

Subtask #5:

score: 0
Skipped

Dependency #3:

0%

Subtask #6:

score: 0
Skipped

Dependency #1:

0%