QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#525932#6536. Lawyersucup-team3022WA 203ms29164kbC++142.4kb2024-08-21 04:14:042024-08-21 04:14:04

Details

Tip: Click on the bar to expand more detailed information

Test #1:

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

input:

3 3
1 2
2 3
3 1

output:

YES

result:

ok answer is YES

Test #2:

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

input:

4 6
1 2
1 3
1 4
2 3
2 4
3 4

output:

NO

result:

ok answer is NO

Test #3:

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

input:

4 4
1 2
2 1
3 4
4 3

output:

NO

result:

ok answer is NO

Test #4:

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

input:

4 6
1 2
2 1
1 3
3 1
1 4
4 1

output:

NO

result:

ok answer is NO

Test #5:

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

input:

4 7
1 2
2 1
1 3
3 1
1 4
4 1
2 4

output:

YES

result:

ok answer is YES

Test #6:

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

input:

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

output:

NO

result:

ok answer is NO

Test #7:

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

input:

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

output:

YES

result:

ok answer is YES

Test #8:

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

input:

100 381
24 54
59 3
49 33
42 18
1 91
59 10
49 18
60 45
32 99
80 85
48 63
87 29
11 87
99 84
60 17
86 78
79 69
33 13
89 53
60 50
33 9
91 9
44 16
34 13
10 81
6 93
99 95
59 56
47 58
92 94
38 15
90 76
9 76
92 20
91 2
40 94
1 44
33 29
50 47
39 8
23 72
3 70
76 56
72 30
30 9
31 95
87 74
32 26
65 99
26 63
47 ...

output:

NO

result:

ok answer is NO

Test #9:

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

input:

200 2138
125 98
98 191
135 17
13 15
195 87
144 13
173 189
146 142
158 112
35 128
90 146
19 199
176 144
100 193
86 58
83 130
107 29
171 25
75 60
73 121
55 3
17 121
66 107
104 29
173 34
167 18
139 87
175 158
182 90
103 189
8 10
80 117
11 93
2 108
82 36
92 172
29 196
192 102
49 22
132 51
142 119
178 13...

output:

YES

result:

ok answer is YES

Test #10:

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

input:

300 1810
142 139
73 164
275 139
116 189
116 4
162 128
135 218
206 86
280 82
105 283
264 11
189 255
129 154
279 70
264 242
31 100
166 73
204 86
16 288
57 91
39 227
26 156
217 71
285 213
206 67
121 169
31 183
18 282
263 16
95 271
253 122
110 92
295 148
68 1
198 160
167 99
147 4
294 154
179 203
204 90
...

output:

NO

result:

ok answer is NO

Test #11:

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

input:

400 2748
47 87
211 61
161 227
188 90
10 1
252 135
363 389
196 379
6 296
169 30
194 198
117 128
395 207
388 387
191 278
216 252
2 133
342 6
395 295
71 158
165 317
152 168
239 266
250 329
364 215
82 395
68 271
330 188
97 52
302 367
227 216
400 329
189 165
277 389
389 86
118 369
88 252
48 319
179 281
2...

output:

YES

result:

ok answer is YES

Test #12:

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

input:

500 3281
260 32
198 38
397 52
491 172
328 418
254 250
125 310
348 335
227 470
439 285
368 266
182 280
43 13
277 66
364 226
357 184
468 58
136 431
155 36
41 141
457 303
398 430
439 209
305 144
436 345
64 163
473 112
78 74
394 340
179 229
31 108
472 112
39 187
205 311
97 308
189 148
46 371
409 458
61 ...

output:

NO

result:

ok answer is NO

Test #13:

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

input:

600 3065
562 373
436 322
75 541
363 69
418 210
255 553
561 181
438 527
349 184
503 533
306 345
518 250
413 462
268 484
303 99
262 278
481 445
209 378
114 42
68 395
67 127
87 215
516 217
100 125
564 92
197 75
292 551
589 410
500 502
5 144
54 327
513 445
478 30
553 574
496 145
145 478
330 3
9 544
405 ...

output:

YES

result:

ok answer is YES

Test #14:

score: 0
Accepted
time: 3ms
memory: 3864kb

input:

700 4314
578 417
111 99
115 462
262 452
444 224
261 72
118 606
493 575
363 649
577 387
480 514
92 606
461 680
456 369
81 91
102 355
140 688
343 535
251 466
461 165
447 143
292 645
671 381
689 605
397 321
150 326
396 243
433 138
493 336
501 621
394 243
540 219
250 285
119 268
212 473
424 217
539 408
...

output:

NO

result:

ok answer is NO

Test #15:

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

input:

800 4676
84 66
54 295
501 150
233 353
634 132
162 76
343 277
775 468
293 759
228 331
418 701
520 675
335 732
261 278
208 624
499 607
367 757
685 447
730 78
370 440
673 641
517 661
697 376
654 225
59 673
216 555
325 336
145 40
216 760
12 625
568 534
34 65
752 6
428 760
107 203
171 187
572 363
769 369...

output:

YES

result:

ok answer is YES

Test #16:

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

input:

900 6315
600 106
37 469
437 868
537 27
459 745
764 194
304 706
127 524
11 429
2 485
96 54
393 631
679 243
744 354
594 16
47 777
723 808
214 307
271 710
258 310
553 756
634 192
647 344
535 9
792 402
569 510
317 827
784 769
308 490
3 298
512 150
60 539
827 49
490 558
331 432
454 418
85 260
467 221
165...

output:

NO

result:

ok answer is NO

Test #17:

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

input:

1000 6270
29 498
348 695
192 495
436 840
39 109
732 751
435 808
183 996
232 762
818 946
358 71
552 376
330 26
647 497
723 263
825 524
605 599
292 700
369 887
794 928
411 600
778 20
315 369
629 7
837 449
921 563
785 741
650 177
755 704
748 114
676 718
298 470
599 704
763 225
277 315
591 729
497 736
1...

output:

YES

result:

ok answer is YES

Test #18:

score: 0
Accepted
time: 12ms
memory: 4756kb

input:

2000 19638
750 1078
1088 1516
1826 420
564 1811
779 1796
1928 782
245 1065
658 845
1151 412
715 98
478 1483
1986 1300
871 1860
1207 493
1864 255
273 428
1199 833
169 1892
1841 1690
1501 187
773 1304
734 1676
535 1441
962 1989
661 638
1682 1754
1781 202
125 176
573 791
308 1267
522 841
492 1488
1130 ...

output:

YES

result:

ok answer is YES

Test #19:

score: 0
Accepted
time: 16ms
memory: 4960kb

input:

3000 23894
2766 2169
1829 1041
2052 537
988 2486
224 2378
2908 109
2952 2218
2236 1694
71 1959
2020 1738
301 2382
227 1632
1412 591
1279 1490
1901 1438
2617 525
2306 364
238 381
2017 1685
2399 2446
239 1008
1202 2140
2458 1810
2590 2868
486 2019
851 1841
1074 559
2496 1392
1200 1174
867 908
2768 166...

output:

YES

result:

ok answer is YES

Test #20:

score: 0
Accepted
time: 37ms
memory: 6436kb

input:

4000 51690
514 913
688 1479
3379 2490
2994 1515
384 2044
2904 822
649 1548
3732 736
1716 2181
2206 2534
1514 1541
1010 1478
88 846
3501 2247
3280 2822
1556 2159
3077 2679
109 3979
2834 336
835 490
1556 194
1766 162
555 3
873 3242
2717 1294
2947 3966
371 3810
3278 1343
59 1471
2987 3824
3300 3372
604...

output:

NO

result:

ok answer is NO

Test #21:

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

input:

5000 42849
4183 750
3907 658
4790 2294
1111 3833
2306 2066
2627 3239
2893 3320
2228 4307
3090 3554
4560 2626
4115 2758
4122 3963
1646 3606
4922 1364
1483 3232
2978 651
2616 4023
586 605
2277 1080
3948 2042
2840 1382
1688 2919
4859 399
2042 3035
3713 1301
4463 4442
3996 4462
2692 2933
1498 2413
647 1...

output:

YES

result:

ok answer is YES

Test #22:

score: 0
Accepted
time: 45ms
memory: 6920kb

input:

6000 61116
3251 4184
170 3122
456 4532
547 1649
377 1722
1568 2372
5166 2766
890 3730
1747 2186
2112 2326
457 1851
981 31
979 1219
621 2240
5354 998
2052 3456
3482 4445
5862 1068
674 646
1736 3008
4088 1601
2190 386
4995 4660
1939 1399
5775 1273
5172 5244
3661 731
1829 558
5504 2748
5402 4210
1792 5...

output:

NO

result:

ok answer is NO

Test #23:

score: 0
Accepted
time: 41ms
memory: 6872kb

input:

7000 56206
199 6931
6281 6682
120 1836
4529 5693
197 3162
3347 5073
833 6127
5924 625
4701 1341
4100 4618
3929 1325
1826 1295
1583 1620
2269 2238
4065 6217
3827 776
4926 873
4229 5125
1833 1771
3689 6638
1442 4861
2879 4889
2963 773
5 201
1235 3584
2267 2340
3111 4070
4376 6987
5796 6948
3131 1045
6...

output:

YES

result:

ok answer is YES

Test #24:

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

input:

10000 83928
3629 6645
7208 4066
573 8765
5940 1053
4440 8746
5801 8503
1556 8432
8160 9413
8474 8629
9827 4832
1913 1366
7828 1460
1650 1153
503 2388
1597 3529
6115 1668
1396 6934
7765 3262
8643 8562
5228 2734
2094 8140
6894 3686
6395 6729
3458 1867
9795 8878
6804 4885
4518 9991
3701 675
1748 8036
8...

output:

NO

result:

ok answer is NO

Test #25:

score: 0
Accepted
time: 189ms
memory: 14920kb

input:

20000 199939
14477 10814
1347 18225
28 16551
4289 255
7288 13185
6601 7807
13092 5437
1441 17555
14088 49
19860 15427
19666 1845
12238 19897
18961 13543
19076 8772
8248 6055
18473 6553
4289 2075
9306 493
7047 14924
5524 4892
16714 6120
2296 8390
5679 17854
8301 16268
1470 17861
7742 16023
2818 11989...

output:

NO

result:

ok answer is NO

Test #26:

score: 0
Accepted
time: 184ms
memory: 15500kb

input:

30000 199982
21107 19697
18718 13258
4398 26382
423 11848
14668 5755
16161 2999
81 29594
24338 14488
9383 17023
8341 15621
9224 22371
17318 11398
5301 28836
6154 23901
26370 25346
4837 2475
1303 14996
27729 10504
27313 2385
18333 4143
10878 17608
16956 10351
20757 25288
2258 29547
8108 15816
6667 11...

output:

NO

result:

ok answer is NO

Test #27:

score: 0
Accepted
time: 185ms
memory: 20524kb

input:

100000 199999
4168 90309
35924 83986
32421 41854
30603 48261
15805 90131
22396 91846
88152 14649
63409 57981
25473 60041
42585 58101
92297 60257
51397 26619
94181 97762
4460 15205
99691 48016
79143 24649
90265 18198
23925 24993
92814 89631
58425 68590
94319 58654
37367 76370
14019 83495
56474 94740
...

output:

NO

result:

ok answer is NO

Test #28:

score: 0
Accepted
time: 197ms
memory: 23688kb

input:

150000 199999
136184 107558
36656 123390
112483 49352
92387 143837
101219 38692
100861 112483
61654 30389
112991 99117
66957 123354
20236 123740
31824 91991
41581 59606
8152 2482
116014 44163
79364 143318
121166 9984
123236 27523
84643 73584
31969 113660
60836 87702
135267 39095
43165 104460
20729 1...

output:

NO

result:

ok answer is NO

Test #29:

score: 0
Accepted
time: 203ms
memory: 26120kb

input:

190000 199998
53076 160943
160590 177799
130495 131679
33974 54997
182969 18293
84820 6894
30385 109637
60298 90440
56684 122743
176413 184031
19487 38935
141125 151807
20598 60694
47601 189691
70401 18631
18657 167065
89633 37459
96874 15828
114592 57221
22694 59049
178150 138767
184033 177130
3459...

output:

NO

result:

ok answer is NO

Test #30:

score: 0
Accepted
time: 196ms
memory: 26720kb

input:

200000 199997
105764 5960
28891 160305
79920 106216
145439 12714
171093 46186
45262 35736
181696 34724
191095 83013
11392 181
166347 198464
197195 177150
4129 158942
177400 116708
1778 83316
73347 115088
155997 195166
97997 176366
107940 109180
186521 168241
18862 10543
62544 166094
51779 174816
150...

output:

NO

result:

ok answer is NO

Test #31:

score: 0
Accepted
time: 136ms
memory: 29164kb

input:

199999 199999
1 2
2 3
3 4
4 5
5 6
6 7
7 8
8 9
9 10
10 11
11 12
12 13
13 14
14 15
15 16
16 17
17 18
18 19
19 20
20 21
21 22
22 23
23 24
24 25
25 26
26 27
27 28
28 29
29 30
30 31
31 32
32 33
33 34
34 35
35 36
36 37
37 38
38 39
39 40
40 41
41 42
42 43
43 44
44 45
45 46
46 47
47 48
48 49
49 50
50 51
51 ...

output:

YES

result:

ok answer is YES

Test #32:

score: 0
Accepted
time: 134ms
memory: 29020kb

input:

200000 200000
1 2
2 3
3 4
4 5
5 6
6 7
7 8
8 9
9 10
10 11
11 12
12 13
13 14
14 15
15 16
16 17
17 18
18 19
19 20
20 21
21 22
22 23
23 24
24 25
25 26
26 27
27 28
28 29
29 30
30 31
31 32
32 33
33 34
34 35
35 36
36 37
37 38
38 39
39 40
40 41
41 42
42 43
43 44
44 45
45 46
46 47
47 48
48 49
49 50
50 51
51 ...

output:

YES

result:

ok answer is YES

Test #33:

score: 0
Accepted
time: 136ms
memory: 29136kb

input:

199999 199999
1 2
2 3
3 4
4 5
5 6
6 7
7 8
8 9
9 10
10 11
11 12
12 13
13 14
14 15
15 16
16 17
17 18
18 19
19 20
20 21
21 22
22 23
23 24
24 25
25 26
26 27
27 28
28 29
29 30
30 31
31 32
32 33
33 34
34 35
35 36
36 37
37 38
38 39
39 40
40 41
41 42
42 43
43 44
44 45
45 46
46 47
47 48
48 49
49 50
50 51
51 ...

output:

NO

result:

ok answer is NO

Test #34:

score: 0
Accepted
time: 137ms
memory: 29092kb

input:

200000 200000
1 2
2 3
3 4
4 5
5 6
6 7
7 8
8 9
9 10
10 11
11 12
12 13
13 14
14 15
15 16
16 17
17 18
18 19
19 20
20 21
21 22
22 23
23 24
24 25
25 26
26 27
27 28
28 29
29 30
30 31
31 32
32 33
33 34
34 35
35 36
36 37
37 38
38 39
39 40
40 41
41 42
42 43
43 44
44 45
45 46
46 47
47 48
48 49
49 50
50 51
51 ...

output:

NO

result:

ok answer is NO

Test #35:

score: -100
Wrong Answer
time: 0ms
memory: 3596kb

input:

100 201
1 2
2 1
2 3
3 2
1 4
4 1
1 5
5 1
3 6
6 3
1 7
7 1
5 8
8 5
8 9
9 8
4 10
10 4
8 11
11 8
11 12
12 11
1 13
13 1
9 14
14 9
6 15
15 6
11 16
16 11
17 18
18 17
18 19
19 18
19 20
20 19
17 21
21 17
21 22
22 21
20 23
23 20
23 24
24 23
19 25
25 19
22 26
26 22
17 27
27 17
22 28
28 22
20 29
29 20
23 30
30 2...

output:

NO

result:

wrong answer expected YES, found NO