QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#869606#9681. 猫粮guestxd50 316ms4096kbC++171.5kb2025-01-25 11:56:152025-01-25 11:56:16

详细


Pretests

Pretest #1:

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

input:

50
1 73819
42986
30833
1 61025
38520
22505
1 54279
53576
703
1 92889
34647
58242
1 71778
21492
50286
1 95588
71771
23817
1 84145
77817
6328
1 36629
23204
13425
1 40458
28568
11890
1 8458
268
8190
1 3765
3436
329
1 97790
68717
29073
1 69811
66094
3717
1 57234
14419
42815
1 50106
30719
19387
1 20873
1...

output:

No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No

result:

wrong answer expected YES, found NO [1st token]

Pretest #2:

score: 5
Accepted
time: 0ms
memory: 3584kb

input:

50
2 54501
41370 13132
24281 30219
2 9680
1301 8379
50 9630
2 87033
43684 43348
43440 43594
2 34670
17479 17167
17305 17389
2 59718
44739 11231
14979 48487
2 1088
538 568
549 521
2 36780
12228 20887
24551 15894
2 66516
49549 16967
24054 42462
2 505
500 442
5 63
2 95678
47869 47917
47704 47866
2 3240...

output:

No
Yes
No
No
Yes
No
No
Yes
Yes
No
No
No
No
Yes
Yes
Yes
Yes
No
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
No
No
Yes
No
Yes
No
No
Yes
Yes
No
Yes
No
Yes
No
No
No
No
No
No
Yes
Yes
No
Yes
Yes

result:

ok 50 token(s): yes count is 26, no count is 24

Pretest #3:

score: 5
Accepted
time: 0ms
memory: 3712kb

input:

50
2 4625
1012 3613
2756 1869
2 58675
11040 16085
42590 47635
2 90791
45238 45350
45633 45361
2 38228
36761 1467
22026 16202
2 98536
94704 3832
9576 88960
2 69175
16911 50188
18987 52264
2 84368
74151 10218
31522 52845
2 46476
37598 8878
38478 7998
2 87963
51154 36810
3200 84762
2 2599
1264 1311
129...

output:

Yes
Yes
No
Yes
Yes
Yes
No
Yes
No
No
No
No
Yes
No
No
Yes
Yes
No
Yes
Yes
Yes
No
No
No
No
Yes
Yes
Yes
Yes
Yes
No
Yes
Yes
Yes
Yes
Yes
No
Yes
Yes
Yes
No
Yes
No
Yes
No
No
Yes
Yes
No
Yes

result:

ok 50 token(s): yes count is 30, no count is 20

Pretest #4:

score: 5
Accepted
time: 0ms
memory: 3712kb

input:

50
2 72016
29314 42703
65556 6459
2 37297
199 37098
16447 20850
2 37556
18771 18702
18826 18813
2 99378
77638 21740
67778 31600
2 43703
12913 18945
24758 30790
2 80437
40274 39861
40405 40334
2 99000
63441 20914
78086 35559
2 66575
30623 35952
59491 7084
2 29338
14767 14722
14547 14640
2 52736
16640...

output:

No
Yes
No
Yes
Yes
No
Yes
Yes
No
Yes
Yes
Yes
Yes
No
No
No
Yes
Yes
Yes
Yes
Yes
No
Yes
No
No
No
Yes
Yes
Yes
Yes
No
Yes
No
No
Yes
No
Yes
Yes
Yes
No
Yes
Yes
Yes
No
Yes
No
Yes
No
Yes
No

result:

ok 50 token(s): yes count is 30, no count is 20

Pretest #5:

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

input:

50
5 35766
17793 17677 17920 17910 17838
17859 17916 18010 17964 17943
5 89915
11555 46079 43836 3655 43078
78360 46837 37937 51978 86260
5 84575
33849 60580 66308 54164 17707
30411 50726 66868 23995 18267
5 64717
57259 47323 47905 29937 34780
38066 26651 16812 17394 7458
5 96695
5305 84639 11086 85...

output:

No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
Yes
No
No
No
No
No
No

result:

wrong answer expected YES, found NO [2nd token]

Pretest #6:

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

input:

50
5 99879
48870 10172 89707 77458 22421
80558 51009 19321 66106 33773
5 69717
6971 1345 828 40235 62747
29482 68372 16958 52759 68888
5 98859
9126 63760 17642 79534 43410
81217 19325 89733 55449 35099
5 81234
1868 8134 65230 5773 73100
79366 5572 75461 75662 16004
5 85424
46541 80300 61574 38883 76...

output:

No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
Yes
No
No
No
No
No
No
No
Yes
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
Yes
No
No
Yes
No
No
No
No
No
No
No

result:

wrong answer expected YES, found NO [3rd token]

Pretest #7:

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

input:

50
5 20852
16602 4250 16602 4250 2104
18748 5193 18842 15659 2010
5 40064
20032 19667 20032 20032 20032
32488 7576 12760 27304 20397
5 3202
283 1790 2743 1083 2533
670 2919 1412 458 2119
5 96139
25510 5536 24561 90603 70629
71578 44939 51200 69209 26930
5 93698
92863 91436 93505 44930 63180
48768 19...

output:

No
No
No
No
No
No
No
No
No
No
Yes
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
Yes
No
No
No
No
No
No
No
No
No
No
Yes
No
No
No

result:

wrong answer expected YES, found NO [2nd token]

Pretest #8:

score: 0
Wrong Answer
time: 50ms
memory: 4096kb

input:

50
19201 3
1 2 1 2 2 2 1 1 1 1 2 2 1 2 2 2 2 2 2 2 1 2 2 2 2 2 2 1 2 1 1 1 1 2 2 2 2 2 1 1 1 2 1 2 2 2 1 2 2 1 2 1 1 2 1 2 1 2 2 1 2 2 1 2 2 2 2 1 2 2 1 2 2 2 2 2 1 2 1 1 2 2 2 2 2 2 2 2 2 2 2 1 2 2 2 2 2 2 1 1 1 2 1 2 1 1 2 2 2 1 1 2 2 2 1 1 1 1 2 1 2 1 1 2 2 2 2 2 2 2 2 2 1 2 2 2 2 2 1 2 2 2 2 2 2...

output:

No
Yes
Yes
No
Yes
No
No
Yes
No
Yes
Yes
No
Yes
Yes
No
No
Yes
No
No
No
Yes
Yes
Yes
No
Yes
Yes
Yes
No
No
Yes
Yes
No
No
Yes
No
Yes
Yes
No
Yes
No
No
No
No
No
No
Yes
Yes
Yes
No
Yes

result:

wrong answer expected YES, found NO [1st token]

Pretest #9:

score: 0
Wrong Answer
time: 41ms
memory: 3840kb

input:

50
10111 3
2 1 1 1 1 1 1 1 2 1 1 2 1 2 1 1 1 1 2 1 1 2 1 2 1 2 1 1 2 1 1 1 1 2 1 1 1 2 1 1 1 1 1 2 1 2 1 2 2 1 1 2 1 1 1 1 2 1 2 1 1 1 2 1 1 1 2 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 2 1 1 1 1 2 1 1 1 1 1 1 2 2 1 2 2 2 1 1 1 1 1 1 2 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 2 1 2 1 1 2 1 1 2 1 1 1 1 2 2 1 1 1 1 2 1 1 2...

output:

No
No
No
No
No
Yes
No
No
Yes
Yes
No
No
No
No
Yes
Yes
No
No
No
Yes
Yes
No
No
Yes
Yes
No
Yes
Yes
No
No
Yes
No
No
Yes
Yes
Yes
Yes
No
No
Yes
No
Yes
No
No
No
No
No
No
No
Yes

result:

wrong answer expected YES, found NO [1st token]

Pretest #10:

score: 5
Accepted
time: 308ms
memory: 3840kb

input:

50
40000 91917
69437 57799 11876 80267 27390 20964 69296 83945 27645 25695 30685 82121 32898 62608 29342 34222 54495 65701 19959 34912 20040 1991 68631 17689 81131 65381 26307 24203 27513 9545 27420 13793 87716 2467 85168 68518 69008 53842 635 59037 73464 22675 88915 70839 8773 6699 83366 3973 21738...

output:

Yes
No
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
No
Yes
Yes
Yes
Yes
No
No
No
Yes
Yes
No
No
Yes
No
Yes
Yes
Yes
Yes
No
Yes
Yes
Yes
No
Yes
Yes
Yes
Yes
No
No
Yes
No
Yes
Yes
Yes
No
Yes
Yes
Yes

result:

ok 50 token(s): yes count is 36, no count is 14

Pretest #11:

score: 5
Accepted
time: 310ms
memory: 3840kb

input:

50
40000 81652
56887 43493 4958 63269 28862 22226 19452 67867 36132 10772 29771 26595 24687 21531 70448 40418 52931 7515 62014 23216 80120 27190 43912 33954 69631 37102 2385 76657 62666 44559 13215 48879 5618 66028 34395 51090 31146 56678 37891 26463 47340 67041 74655 11633 47097 16012 78609 53263 2...

output:

Yes
No
Yes
No
No
Yes
No
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
No
No
Yes
No
Yes
No
Yes
Yes
Yes
Yes
Yes
Yes
Yes
No
Yes
Yes
No
Yes
No
No
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
No
Yes
No
Yes
Yes
Yes
Yes

result:

ok 50 token(s): yes count is 36, no count is 14

Pretest #12:

score: 5
Accepted
time: 312ms
memory: 3968kb

input:

50
40000 99069
78246 27193 92532 46031 51063 54128 7739 26898 65674 98083 62634 47231 97904 83049 57571 3996 90776 14177 96452 75364 90115 56480 50627 12904 56461 26013 70463 72029 38198 5464 55415 89251 26407 20031 93970 34530 79835 31019 79346 9632 26119 92787 21994 43885 42258 71162 61049 4789 31...

output:

Yes
Yes
Yes
Yes
Yes
No
No
Yes
No
Yes
Yes
Yes
Yes
Yes
Yes
Yes
No
No
Yes
No
No
Yes
Yes
No
Yes
No
No
Yes
Yes
No
Yes
No
Yes
No
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
No
Yes
Yes
Yes
No
No
Yes

result:

ok 50 token(s): yes count is 34, no count is 16

Pretest #13:

score: 5
Accepted
time: 311ms
memory: 3840kb

input:

50
40000 99874
12465 10572 23861 6641 99825 88582 51698 55132 85210 86927 41460 95658 28589 7876 75030 97324 16187 7535 95802 14884 8981 3009 17317 44484 76993 15403 71679 96149 1246 70876 20749 33036 63001 62059 60750 15891 21725 61323 89794 48632 14350 81174 46250 87797 89801 55628 1025 35924 8289...

output:

Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
No
No
Yes
Yes
Yes
No
No
No
No
Yes
No
Yes
No
Yes
No
No
Yes
Yes
Yes
No
Yes
Yes
No
Yes
Yes
No
Yes
No
Yes
Yes
No
No
Yes
No
Yes
Yes
Yes
Yes

result:

ok 50 token(s): yes count is 33, no count is 17

Pretest #14:

score: 5
Accepted
time: 309ms
memory: 4096kb

input:

50
40000 99985
6533 99435 41938 222 70473 19066 13638 59905 36058 68179 71291 21974 47332 20756 9873 85179 77833 93428 99387 27702 59707 96129 26796 70980 23109 11329 53185 38768 96797 7601 95305 15621 6637 37297 7418 98238 19082 94438 87065 90913 7761 33848 11089 59621 62506 1665 43656 18543 2969 7...

output:

Yes
Yes
No
Yes
Yes
Yes
Yes
Yes
No
Yes
No
Yes
No
No
No
Yes
Yes
No
Yes
No
Yes
Yes
Yes
No
Yes
Yes
No
Yes
Yes
Yes
No
No
No
Yes
Yes
No
No
Yes
No
Yes
Yes
Yes
Yes
No
Yes
No
No
Yes
Yes
No

result:

ok 50 token(s): yes count is 30, no count is 20

Pretest #15:

score: 5
Accepted
time: 310ms
memory: 4096kb

input:

50
40000 90859
79554 71687 83846 57503 79161 26202 1440 62928 66368 49329 22404 44410 86799 77001 71401 44708 32048 12537 14199 57726 28959 69454 2227 27847 87641 36282 77640 27271 16454 8513 62439 35583 6845 26829 40853 52798 15214 86843 35602 24198 44408 47707 73425 74628 33427 21304 53596 48752 8...

output:

Yes
No
No
No
Yes
Yes
Yes
Yes
No
Yes
Yes
Yes
Yes
Yes
Yes
No
No
No
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
No
Yes
Yes
No
Yes
Yes
No
Yes
Yes
Yes
Yes
Yes
Yes
No
No
Yes
No
No
Yes
Yes

result:

ok 50 token(s): yes count is 36, no count is 14

Pretest #16:

score: 5
Accepted
time: 313ms
memory: 3840kb

input:

50
40000 94239
21632 93814 55944 13686 44620 57392 70491 21689 92608 64476 15456 13184 45402 92320 84870 62583 73081 81052 10350 62326 40667 56210 35932 59993 25806 8634 81013 71822 88465 43207 58319 83169 77296 36142 39142 91443 24623 91393 75683 7708 73342 14222 21840 19863 30719 17952 4567 91502 ...

output:

No
Yes
No
Yes
Yes
Yes
Yes
No
Yes
Yes
Yes
Yes
Yes
Yes
No
Yes
Yes
Yes
Yes
Yes
No
Yes
No
No
Yes
No
No
Yes
No
Yes
Yes
Yes
No
Yes
No
Yes
Yes
Yes
No
Yes
No
Yes
No
Yes
Yes
Yes
No
Yes
Yes
Yes

result:

ok 50 token(s): yes count is 34, no count is 16

Pretest #17:

score: 0
Runtime Error

input:

50
40000 42183
4801 3426 33090 463 1407 5198 23668 20094 9319 34325 34854 38095 3165 30599 16439 5961 35985 38448 3985 23540 34580 32410 23183 17148 4616 18279 29994 14790 7191 284 12629 41613 20319 7443 31157 5850 14544 19805 11983 37913 31739 21790 28107 40951 232 22989 3950 2899 24002 321 37364 2...

output:


result:


Pretest #18:

score: 0
Runtime Error

input:

50
40000 99914
76910 4866 46623 44818 95085 42199 49957 49957 49957 49957 60437 83859 33710 85135 45759 24916 67984 94133 84415 36653 34977 48453 39648 58440 60149 71082 63396 54127 16808 99803 11097 91448 39404 49957 97503 39057 97000 49957 83810 12870 94553 44798 50259 19618 34283 96992 40995 2437...

output:


result:


Pretest #19:

score: 0
Runtime Error

input:

50
40000 94194
29583 72566 47097 66109 64086 83837 90910 18558 71032 16119 91431 73509 71773 34874 42209 69949 30976 48835 34075 19556 81153 82029 33521 35628 56114 33480 74110 76686 66838 11309 68720 79091 47097 93223 48354 40433 52357 11593 84421 81671 26820 70404 6285 91232 57707 51229 15797 7247...

output:


result:


Pretest #20:

score: 0
Runtime Error

input:

50
40000 48293
24792 31911 21986 41849 19234 5532 29552 6534 14714 11755 24068 42285 26603 45504 24916 8762 35155 42469 24022 35430 27224 39443 25184 39402 31131 39589 32728 20958 21553 28019 36102 20225 3935 20115 47105 7719 38771 31257 12270 11610 47395 42216 33215 12260 10622 42128 14096 4151 302...

output:


result:



Final Tests

Test #1:

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

input:

50
1 1582
1511
71
1 42763
40454
2309
1 34933
12082
22851
1 30138
5586
24552
1 80252
54721
25531
1 21263
7181
14082
1 29286
20500
8786
1 88738
60875
27863
1 74555
65803
8752
1 77750
17205
60545
1 9204
3378
5826
1 90770
72474
18296
1 226
171
55
1 41140
12158
28982
1 82871
14541
68330
1 76801
52749
240...

output:

No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No

result:

wrong answer expected YES, found NO [1st token]

Test #2:

score: 5
Accepted
time: 0ms
memory: 3584kb

input:

50
2 18603
14686 1490
17113 3917
2 17155
8633 8687
8564 8426
2 7280
3615 3709
3662 3574
2 20831
1598 10256
19233 10575
2 46920
23491 23594
23367 23388
2 40509
20140 9626
30884 20368
2 62078
58026 4052
60623 1455
2 47563
24081 23565
23771 23709
2 32287
8094 23392
24193 8895
2 38543
31538 8683
29860 7...

output:

Yes
No
No
Yes
No
No
Yes
No
Yes
Yes
Yes
No
Yes
Yes
Yes
Yes
Yes
No
No
No
No
Yes
No
Yes
No
No
No
Yes
No
No
No
No
Yes
No
Yes
No
No
Yes
No
No
No
Yes
Yes
Yes
No
Yes
Yes
Yes
No
Yes

result:

ok 50 token(s): yes count is 24, no count is 26

Test #3:

score: 5
Accepted
time: 0ms
memory: 3712kb

input:

50
2 76308
3517 72790
36547 39762
2 76285
18512 57773
10320 65965
2 96490
72063 24427
77324 19166
2 16755
13709 3046
5294 11461
2 56446
27786 16574
39873 28659
2 81929
71903 10027
73514 8414
2 50929
25367 25392
25549 25550
2 3467
2165 1302
1699 1768
2 96215
64406 13170
83046 31808
2 7585
6422 1164
6...

output:

No
Yes
Yes
Yes
No
No
No
Yes
No
No
Yes
Yes
No
Yes
No
No
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
No
No
No
Yes
Yes
No
No
Yes
No
No
No
No
No
Yes
Yes
No
No
No
No
No
Yes
Yes
No
Yes

result:

ok 50 token(s): yes count is 25, no count is 25

Test #4:

score: 5
Accepted
time: 1ms
memory: 3712kb

input:

50
2 65343
54494 10850
51648 13694
2 53431
26649 26624
26702 26887
2 29108
14429 14406
14653 14728
2 14570
3374 11196
9183 5387
2 26854
15058 15150
11796 11704
2 13232
2788 10445
9910 3321
2 1694
1450 245
394 1299
2 77432
72228 5204
73212 4220
2 41071
22759 2817
38255 18311
2 26380
13300 13189
13221...

output:

No
No
No
Yes
Yes
No
No
Yes
No
No
No
No
Yes
No
No
Yes
No
Yes
Yes
Yes
No
Yes
No
No
Yes
No
Yes
No
No
Yes
Yes
Yes
Yes
Yes
Yes
No
Yes
No
Yes
No
Yes
Yes
No
Yes
Yes
No
Yes
Yes
Yes
No

result:

ok 50 token(s): yes count is 26, no count is 24

Test #5:

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

input:

50
5 64746
43651 21215 18214 32373 32373
21095 46532 45363 43531 19383
5 18998
13390 2255 17747 7209 5325
16743 1251 13673 11789 5608
5 30630
29617 11503 12363 19127 8147
22483 18267 1013 15315 15315
5 92571
46636 46096 45978 46152 46521
46610 45808 46490 46345 46219
5 3065
2432 1208 919 1576 633
18...

output:

Yes
No
Yes
No
No
No
Yes
No
No
No
No
Yes
No
No
Yes
No
No
No
No
No
No
Yes
No
No
No
Yes
No
No
No
No
No
No
No
No
No
No
No
No
No
Yes
No
No
No
No
No
No
No
No
No
No

result:

wrong answer expected YES, found NO [2nd token]

Test #6:

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

input:

50
5 99004
10266 86528 86528 12476 12476
88738 81539 76533 22471 17465
5 33502
32902 30930 14620 32175 600
1327 18882 2572 16751 16751
5 51626
17399 36779 3176 34370 17256
48450 14847 31700 19926 34227
5 79361
39442 39604 39354 39880 39654
39738 39665 39746 39587 40135
5 69567
58330 11237 4064 55613...

output:

No
Yes
No
No
No
No
Yes
No
Yes
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
Yes
No
No
No
No
No
No
No
No
Yes
No
No
No
No
No

result:

wrong answer expected YES, found NO [3rd token]

Test #7:

score: 0
Wrong Answer
time: 1ms
memory: 3712kb

input:

50
5 55483
27841 27590 27816 27682 27609
27984 27818 27620 27839 27616
5 97341
73997 22197 14363 935 13591
23344 75144 83750 96406 82978
5 45478
11067 11067 34411 34411 32940
28059 17419 12538 1995 43483
5 36393
17459 35988 18934 24571 11822
28300 405 223 36170 8093
5 50084
28977 38398 16005 42646 4...

output:

No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No

result:

wrong answer expected YES, found NO [2nd token]

Test #8:

score: 0
Wrong Answer
time: 39ms
memory: 3968kb

input:

50
26382 3
1 1 1 1 1 1 2 2 1 1 1 2 2 1 2 1 2 1 2 1 2 2 2 2 2 2 1 1 2 2 2 1 1 1 1 2 1 2 1 1 1 1 1 1 1 1 2 1 2 2 1 1 2 1 1 1 1 1 1 2 2 2 2 1 2 1 2 2 1 1 2 1 2 1 1 2 1 1 2 1 2 1 1 2 2 2 1 1 1 2 2 1 1 2 2 2 1 1 1 1 2 1 1 2 2 1 2 2 2 1 1 2 2 1 1 1 1 1 2 1 2 1 1 1 1 2 1 1 2 2 1 1 1 1 2 2 1 2 1 2 2 2 1 1 2...

output:

Yes
No
No
Yes
No
No
Yes
No
Yes
No
No
Yes
No
Yes
No
No
No
No
Yes
No
No
No
Yes
No
Yes
No
No
Yes
Yes
Yes
No
No
No
Yes
No
No
No
No
Yes
No
Yes
No
Yes
No
No
Yes
No
No
Yes
No

result:

wrong answer expected YES, found NO [2nd token]

Test #9:

score: 0
Wrong Answer
time: 57ms
memory: 4096kb

input:

50
35029 3
1 1 1 2 1 2 1 1 1 2 1 1 1 1 2 2 1 2 1 2 1 2 1 1 2 2 2 2 1 1 2 2 1 2 2 2 1 1 2 1 1 1 2 2 2 1 1 1 2 2 1 1 2 1 2 2 2 1 1 1 1 2 2 1 1 2 1 1 2 1 2 2 2 1 1 1 2 1 1 2 1 2 1 1 1 2 1 2 2 1 1 2 2 2 2 2 1 1 1 2 1 1 2 1 2 2 2 1 2 2 1 2 1 2 1 2 2 1 1 1 2 2 2 1 1 1 1 1 2 2 1 1 2 1 1 1 1 1 1 1 1 1 1 2 1...

output:

No
No
Yes
No
No
No
Yes
Yes
Yes
No
No
Yes
Yes
Yes
No
Yes
Yes
No
No
No
Yes
Yes
Yes
No
Yes
Yes
No
No
No
No
Yes
No
No
Yes
Yes
Yes
Yes
No
Yes
No
Yes
No
No
No
Yes
No
Yes
No
No
No

result:

wrong answer expected YES, found NO [1st token]

Test #10:

score: 5
Accepted
time: 316ms
memory: 3968kb

input:

50
40000 97470
77374 75115 75070 48960 45605 997 7423 67290 45652 5451 23429 91492 18698 12249 97035 73651 86353 42441 14893 5431 44765 90383 11823 6686 70611 5569 48670 43896 21655 75968 58420 51507 19494 69012 20768 1111 54214 36685 59801 15361 42174 32317 85553 42753 1359 59273 369 44656 88705 77...

output:

Yes
Yes
Yes
No
No
Yes
Yes
No
No
Yes
Yes
Yes
Yes
Yes
Yes
Yes
No
No
Yes
Yes
Yes
No
Yes
No
No
Yes
No
Yes
Yes
No
Yes
Yes
No
Yes
No
Yes
No
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
No
Yes
No

result:

ok 50 token(s): yes count is 34, no count is 16

Test #11:

score: 5
Accepted
time: 308ms
memory: 4096kb

input:

50
40000 82950
24869 5097 24977 53535 17285 56819 70942 19041 68215 56841 67990 21725 31305 72982 76346 59768 72726 70187 60089 20537 9762 82800 39735 42775 12835 51959 18816 26544 63467 38268 18561 73456 73391 38992 7792 33397 45873 25637 16119 23856 69327 10891 11123 68981 20235 51469 9990 18194 4...

output:

Yes
Yes
Yes
Yes
No
No
No
No
No
No
No
Yes
No
Yes
No
Yes
Yes
No
No
Yes
Yes
No
Yes
Yes
Yes
Yes
No
Yes
Yes
Yes
Yes
No
No
Yes
No
Yes
Yes
No
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
No
Yes
Yes

result:

ok 50 token(s): yes count is 32, no count is 18

Test #12:

score: 5
Accepted
time: 310ms
memory: 3968kb

input:

50
40000 80125
10909 52034 30437 10282 71646 44210 5410 31306 291 31503 48320 1815 28485 43411 9240 73467 20288 9154 35005 15886 76886 71721 75127 11904 15648 25280 65998 817 76571 65404 60116 62154 19893 70989 66012 15786 29419 20661 23994 30342 73188 77464 56891 45731 6640 19461 3174 10663 33428 5...

output:

Yes
No
No
No
Yes
No
Yes
Yes
No
Yes
Yes
Yes
No
Yes
Yes
No
Yes
Yes
Yes
Yes
Yes
Yes
No
Yes
No
Yes
No
No
No
No
No
Yes
Yes
Yes
Yes
Yes
Yes
No
Yes
Yes
No
No
No
Yes
No
Yes
Yes
No
Yes
Yes

result:

ok 50 token(s): yes count is 30, no count is 20

Test #13:

score: 5
Accepted
time: 309ms
memory: 3840kb

input:

50
40000 87123
26055 33771 8259 51119 67262 84775 35321 75869 9465 15161 26181 1204 13713 48904 40465 87120 52591 36114 44553 62829 7758 74352 67501 56191 54260 75567 35800 55009 43790 66047 59456 22724 45355 83780 55263 42466 47238 58620 29994 18463 3617 4888 54898 27876 84459 81139 36285 55751 351...

output:

Yes
Yes
Yes
No
Yes
Yes
Yes
Yes
Yes
No
Yes
Yes
Yes
Yes
No
No
No
Yes
Yes
Yes
No
Yes
No
Yes
Yes
Yes
Yes
No
No
Yes
Yes
Yes
No
Yes
Yes
No
No
Yes
Yes
Yes
Yes
Yes
No
Yes
Yes
No
Yes
Yes
Yes
Yes

result:

ok 50 token(s): yes count is 36, no count is 14

Test #14:

score: 5
Accepted
time: 311ms
memory: 3968kb

input:

50
40000 84647
63400 47205 3129 84136 20997 76513 23897 1855 28725 22801 45996 51608 24369 64622 25815 9390 18096 49773 43078 36062 38354 82410 54715 69939 57985 84596 15009 79589 80429 47958 56357 62984 38728 16500 50924 35918 81065 31078 57436 73129 16064 63688 43690 52376 38893 47167 58801 74714 ...

output:

Yes
Yes
Yes
Yes
Yes
Yes
No
Yes
Yes
Yes
Yes
No
Yes
Yes
No
Yes
Yes
Yes
Yes
Yes
No
Yes
No
Yes
Yes
No
Yes
Yes
Yes
Yes
No
Yes
Yes
No
Yes
Yes
No
No
No
Yes
Yes
Yes
No
Yes
No
No
Yes
Yes
No
Yes

result:

ok 50 token(s): yes count is 35, no count is 15

Test #15:

score: 5
Accepted
time: 308ms
memory: 4096kb

input:

50
40000 95313
1271 10377 92170 81045 13004 93352 45675 87951 52976 50699 35459 35171 27481 8355 26748 44884 23000 18335 28073 49488 14998 82471 21012 82528 38468 17738 34091 72776 16753 10678 84739 31832 15431 15655 15784 22055 43450 21601 66426 59235 56436 2699 15719 59649 47623 46332 88313 60428 ...

output:

Yes
Yes
No
No
Yes
Yes
No
No
No
Yes
No
Yes
Yes
Yes
Yes
No
Yes
No
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
No
Yes
No
No
Yes
Yes
Yes
No
No
Yes
Yes
Yes
No
Yes
No
No
Yes
Yes
No
No
Yes
No
No

result:

ok 50 token(s): yes count is 30, no count is 20

Test #16:

score: 5
Accepted
time: 307ms
memory: 3840kb

input:

50
40000 93719
91249 73968 72793 88447 81503 29717 46146 38044 50181 44183 28716 89401 50547 25965 78535 56303 75420 76417 65700 72895 90206 2952 31009 37938 81738 75070 58661 712 43624 86473 18836 31570 92872 67951 81346 46802 63559 88308 71803 6837 6994 26972 2082 33171 83829 72179 89802 45893 681...

output:

Yes
Yes
Yes
Yes
Yes
Yes
No
No
No
Yes
Yes
Yes
Yes
Yes
No
No
No
No
No
Yes
No
Yes
Yes
No
No
Yes
Yes
Yes
Yes
Yes
No
No
Yes
Yes
No
Yes
No
Yes
Yes
Yes
Yes
Yes
No
No
No
Yes
Yes
Yes
No
Yes

result:

ok 50 token(s): yes count is 31, no count is 19

Test #17:

score: 0
Runtime Error

input:

50
40000 83725
60355 14431 83153 74487 26916 35125 53916 16091 44171 2262 32682 23250 65710 40201 39818 51013 8497 80390 79164 28807 58708 38185 67834 7379 19980 20706 48930 30503 2698 67714 13643 72663 33362 49432 60202 23476 14179 74160 52002 64416 77040 38061 4210 42083 10166 4884 25984 28787 517...

output:


result:


Test #18:

score: 0
Runtime Error

input:

50
40000 97999
86560 57285 57012 52094 17404 14129 96927 11674 75236 15111 56555 75655 70272 13411 33872 43365 56246 19053 30857 33974 4081 86389 56346 33957 14200 89896 14255 67962 1714 39245 90859 90843 96000 27413 34680 43181 13068 1551 1133 33886 30378 1653 65114 47618 37702 35406 2656 59568 128...

output:


result:


Test #19:

score: 0
Runtime Error

input:

50
40000 89436
49716 37786 68633 27459 38239 15195 69026 88313 54102 11366 38856 1161 23130 29379 34156 27618 78530 40915 48145 22388 51408 3209 72687 23702 36240 21110 36362 29656 56432 40100 40258 67379 19340 51742 75902 27098 22006 56022 36095 30925 55957 86980 42015 56658 45518 72928 30585 83733...

output:


result:


Test #20:

score: 0
Runtime Error

input:

50
40000 97636
62719 77100 75668 45832 48228 5125 44577 96799 69586 81927 36075 53583 69258 54752 78904 50905 34890 57610 90820 96379 49177 34635 55808 1004 65327 94134 8514 76130 65966 28913 43181 70002 73987 84256 74436 29226 55475 24320 3301 94393 49742 95393 65768 67341 23844 9666 63697 81849 83...

output:


result: