QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#284893#7936. Eliminate Treeucup-team1782#WA 61ms16104kbC++14604b2023-12-16 15:30:282023-12-16 15:30:29

Details

Tip: Click on the bar to expand more detailed information

Test #1:

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

input:

5
1 2
2 3
3 4
3 5

output:

4

result:

ok 1 number(s): "4"

Test #2:

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

input:

4
1 2
2 3
3 4

output:

2

result:

ok 1 number(s): "2"

Test #3:

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

input:

196666
32025 108673
181779 17115
162570 134230
93003 39673
89144 1269
185919 154408
34896 65369
35860 44720
55698 1390
45520 189805
147867 124511
135459 132555
87303 18031
176314 59695
33352 130640
87272 39716
35749 108807
143493 94486
126512 116598
40212 70895
132216 80855
22241 188737
150354 17346...

output:

138182

result:

ok 1 number(s): "138182"

Test #4:

score: 0
Accepted
time: 61ms
memory: 16088kb

input:

192941
180913 51977
128686 137679
118562 93198
60438 181978
39944 140001
169718 122100
146644 138935
22544 124591
113645 112480
128660 133392
9985 102696
4089 62155
4760 3202
116481 17579
59343 141071
81968 156270
5544 186622
117322 35780
127098 110151
148427 70933
2244 44243
3778 176132
181512 1583...

output:

135478

result:

ok 1 number(s): "135478"

Test #5:

score: 0
Accepted
time: 58ms
memory: 15940kb

input:

194488
130963 189387
157318 154522
38501 173612
180088 154173
62179 130568
174923 60255
82848 92742
77176 187920
52859 194392
174926 119679
50715 29603
40935 171733
40347 99095
156851 93563
24220 153338
179719 163771
30534 145015
194261 85487
17914 48210
169737 72603
62083 78874
45506 185776
30650 1...

output:

136847

result:

ok 1 number(s): "136847"

Test #6:

score: 0
Accepted
time: 55ms
memory: 15920kb

input:

188262
184858 11141
165075 93016
74608 149656
148389 139491
74045 25669
173575 32275
21056 101384
141208 109614
10808 44201
94002 120593
113484 106927
68551 141389
6272 22586
94424 54385
120255 172038
8651 27548
187509 134575
128590 105430
68605 61164
70994 140259
147498 83053
46414 77522
72222 2636...

output:

132042

result:

ok 1 number(s): "132042"

Test #7:

score: 0
Accepted
time: 51ms
memory: 15556kb

input:

182747
35622 146780
16901 148028
49576 52508
22285 168671
34153 157628
22497 75161
7123 59296
86920 53643
105329 159277
153614 46344
3310 175828
7801 663
157619 35549
120965 11545
12223 42549
152735 103392
180120 170333
146866 83056
106574 139065
129763 44082
53277 168101
29933 168120
119516 110321
...

output:

128278

result:

ok 1 number(s): "128278"

Test #8:

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

input:

196394
61810 86037
48586 74422
194576 105852
159073 83939
89353 79033
50536 184437
186672 167787
131449 157876
55795 173068
163116 183854
44171 30780
186241 181489
8207 20801
67830 143667
126718 135860
150189 32560
40221 13340
102548 82515
63452 40945
49204 116866
72538 119860
150 167512
92813 14968...

output:

137749

result:

ok 1 number(s): "137749"

Test #9:

score: 0
Accepted
time: 54ms
memory: 15580kb

input:

185370
159713 33643
69685 120062
5446 3709
104647 172504
91310 128259
77971 86098
36256 160030
135027 164556
48691 40367
72267 141580
63542 79648
111187 148090
25947 170242
101361 148073
121971 143652
76584 136869
108910 167398
22904 92526
125303 171903
24158 145220
113709 77096
27889 78536
137686 1...

output:

130122

result:

ok 1 number(s): "130122"

Test #10:

score: 0
Accepted
time: 46ms
memory: 15752kb

input:

188722
86256 105137
58173 72685
56378 71702
171316 95387
60076 187934
104998 72069
116236 82471
79994 152080
54933 133325
122542 88588
118016 185297
147091 80970
116303 83351
38837 71397
171714 18018
61180 111054
87565 40842
85634 25465
119305 10308
34370 105555
101280 140246
21620 123848
142336 631...

output:

132356

result:

ok 1 number(s): "132356"

Test #11:

score: 0
Accepted
time: 58ms
memory: 15476kb

input:

182488
81554 102751
93180 59855
133059 146808
63751 122395
148218 48996
7417 62114
14283 168283
83890 120897
111497 31294
179906 129527
14822 58843
92530 52235
182305 43200
180428 134082
108883 170433
29397 13273
172397 105592
142899 76080
30038 5678
42564 67594
33341 143107
46327 141787
94986 16303...

output:

127919

result:

ok 1 number(s): "127919"

Test #12:

score: 0
Accepted
time: 55ms
memory: 15864kb

input:

184568
31149 51024
176606 113048
139955 5137
84361 18522
40104 104722
61578 147568
64213 129042
112825 27784
151664 92711
29593 101922
110479 162124
97496 19053
179559 63746
115089 87401
93927 132762
32781 69746
172423 11106
9582 114514
63089 55576
74236 158196
77204 96742
11131 161226
111563 5911
1...

output:

129550

result:

ok 1 number(s): "129550"

Test #13:

score: 0
Accepted
time: 51ms
memory: 15548kb

input:

182762
18299 3108
95039 28248
55011 87567
35417 145308
87699 34875
104960 40698
144442 123632
95104 28069
163124 88237
166648 174891
35063 114258
60064 25277
84766 93308
157789 117696
93909 174392
152221 114035
114685 1434
117535 51520
57270 48083
118082 113388
33251 178045
37680 180643
101863 10885...

output:

127582

result:

ok 1 number(s): "127582"

Test #14:

score: 0
Accepted
time: 55ms
memory: 16036kb

input:

190566
84570 104400
4072 130857
10158 161484
176493 115993
10223 58502
145123 126263
41997 184456
178745 97123
70469 50767
174258 148602
129269 64858
144420 17226
96063 5468
101084 30099
99773 161713
11734 100672
30019 156826
72677 121565
81812 78723
60108 149445
33646 26934
180116 128276
60172 1614...

output:

133188

result:

ok 1 number(s): "133188"

Test #15:

score: 0
Accepted
time: 36ms
memory: 15604kb

input:

185805
113458 97379
126910 94613
43391 78601
142361 149299
101799 24512
169071 104550
99964 166137
35587 103107
177073 35715
185468 74645
78061 55514
107263 137446
134774 15612
98078 160945
134837 93755
106384 45722
55275 155127
33356 79175
91463 177155
135305 7333
132471 42596
59741 90374
120086 68...

output:

130296

result:

ok 1 number(s): "130296"

Test #16:

score: 0
Accepted
time: 49ms
memory: 15988kb

input:

189616
187053 170807
76598 87530
2390 9767
68352 24645
131553 111726
111335 109277
138620 120407
88864 141500
178792 171218
47990 146531
160509 142890
112602 185237
37407 128487
41088 185274
99896 125976
92509 150701
46858 147703
156696 92520
63847 73941
93080 64040
24396 67703
95116 114876
5135 977...

output:

133160

result:

ok 1 number(s): "133160"

Test #17:

score: 0
Accepted
time: 58ms
memory: 15744kb

input:

191286
105971 19632
10996 25847
25282 28420
183544 97181
18473 49889
168836 96488
37982 45309
21633 50182
44255 78888
150959 35667
184216 159199
156437 51798
28837 124118
112857 125249
95261 452
159821 53354
161903 33319
146502 108319
22886 180657
82604 176644
158730 93997
148191 61050
124670 89614
...

output:

134133

result:

ok 1 number(s): "134133"

Test #18:

score: -100
Wrong Answer
time: 51ms
memory: 15688kb

input:

187045
110439 112921
45626 63433
110683 90422
151825 45394
9503 36342
169675 124267
18249 166313
144687 62838
160851 134645
41634 185796
24707 118930
137591 162714
136198 41303
81600 179522
36451 142836
37447 146000
9456 4077
2160 132551
181746 158760
154177 176425
15998 170392
152174 169445
129821 ...

output:

131176

result:

wrong answer 1st numbers differ - expected: '131177', found: '131176'