Source Code
#include <bits/stdc++.h>

using namespace std;

typedef long long ll;

int cnt[2][2];

int main() {
    int n, k, m;
    cin >> n >> k >> m;

    for (int i = 0; i < n; i++) {
        int x, y;
        scanf("%d%d", &x, &y);
        cnt[x & 1][y & 1]++;
    }

    bool have1 = cnt[0][0] || cnt[1][1];
    bool have2 = cnt[0][1] || cnt[1][0];

    int initSum = (cnt[1][0] + cnt[1][1]) & 1;

    int winner = 0;

    if (!have2) {
        winner = (initSum == m ? 1 : 2);
    } else if (!have1) {
        winner = ((initSum ^ (k & 1)) == m ? 1 : 2);
    } else {
        winner = (k & 1) ? 1 : 2;
    }

    cout << winner << endl;
}
Copy
Cliffs of Dover Baraa_Armoush
GNU G++17
165 ms
880 KB
Accepted
Test Case #1
0 ms
360 KB
Accepted
Input
5 200 1
1 11
2 4
11 11
33 4
5 5
Output
2
Judge Output
2
Checker Message
1 number(s): "2"
Test Case #2
0 ms
388 KB
Accepted
Input
1 5 1
1 1
Output
1
Judge Output
1
Checker Message
1 number(s): "1"
Test Case #3
41 ms
500 KB
Accepted
Input
322228 993884258 1
230930 699270
880272 214116
430232 493768
708370 542170
339422 81418
970398 179422
144584 328684
329504 690866
39242 127764
512650 600740
828568 84912
903004 741890
567224 198772
320790 709354
21676 450338
72198 361340
575370 2379...
Output
2
Judge Output
2
Checker Message
1 number(s): "2"
Test Case #4
55 ms
588 KB
Accepted
Input
438356 272465807 1
929436 23634
872622 620054
298544 796336
229250 150534
5010 266314
359428 766880
640028 224518
125540 185984
615122 207862
727670 896296
456282 768270
91446 913924
930440 48494
359242 860710
640850 470878
190208 182796
244828 9133...
Output
2
Judge Output
2
Checker Message
1 number(s): "2"
Test Case #5
65 ms
632 KB
Accepted
Input
521780 140981947 1
627944 282588
416588 577608
232262 229720
815536 693490
156806 872010
300074 971362
583858 634144
986984 194892
742620 736342
559712 191850
214812 965420
214480 534340
359064 412008
780670 460450
325434 43036
794426 135068
979696 ...
Output
2
Judge Output
2
Checker Message
1 number(s): "2"
Test Case #6
56 ms
732 KB
Accepted
Input
446225 787197306 1
28594 169931
598282 118769
22758 866383
371431 215547
832406 50704
910872 756419
622751 931508
492708 638214
755410 800177
618949 122582
748083 818195
740010 569048
187 892602
925110 27143
852630 771289
713663 778607
618598 458809...
Output
2
Judge Output
2
Checker Message
1 number(s): "2"
Test Case #7
66 ms
708 KB
Accepted
Input
529649 65778855 1
345143 832113
594457 597546
989617 274563
631870 519729
632496 643152
105387 325956
127370 412129
923430 885772
819159 97122
726458 78872
61940 916770
834231 879256
681796 508951
411632 327013
938026 90072
548475 754743
453328 7965...
Output
1
Judge Output
1
Checker Message
1 number(s): "1"
Test Case #8
97 ms
708 KB
Accepted
Input
645777 934294995 1
694397 461591
366441 43618
923773 458551
892310 791208
241099 946000
75710 152389
375092 860046
321448 390226
915611 137170
833967 226649
375797 758449
895748 222169
171916 966516
155050 594179
280317 567638
350584 698175
320761 3...
Output
1
Judge Output
1
Checker Message
1 number(s): "1"
Test Case #9
92 ms
616 KB
Accepted
Input
729201 507843840 0
819458 123772
362616 746587
890632 642539
152750 95390
41189 505743
270225 721927
847007 532155
784874 637785
203552 401411
908773 374427
755062 632833
989969 565081
886228 391377
706980 894049
589904 853717
409589 674312
155491 7...
Output
2
Judge Output
2
Checker Message
1 number(s): "2"
Test Case #10
40 ms
708 KB
Accepted
Input
321926 43704587 0
891447 174069
351679 743603
331979 906515
872947 437031
541019 820469
715259 219717
820075 123455
657445 611075
506109 357539
126229 278015
259331 339475
181377 148379
826267 415715
741167 112139
208023 450027
170401 65475
683571 5...
Output
1
Judge Output
1
Checker Message
1 number(s): "1"
Test Case #11
52 ms
716 KB
Accepted
Input
405350 912220728 0
29097 884123
810683 643421
662733 422525
834235 897997
872643 73755
658269 287159
824099 170455
299185 94501
514567 680205
64397 760119
880659 509671
147191 381011
955455 927809
164653 94561
943387 765199
60273 487883
293661 1119...
Output
1
Judge Output
1
Checker Message
1 number(s): "1"
Test Case #12
64 ms
716 KB
Accepted
Input
488774 485769572 0
166743 32113
783531 960623
41719 938533
281683 407193
204267 792653
115121 888987
410741 827751
940923 112313
523023 468483
2565 776611
501989 631639
16547 661871
619029 926063
53751 590823
164913 470073
484533 910291
951979 2903...
Output
1
Judge Output
1
Checker Message
1 number(s): "1"
Test Case #13
38 ms
716 KB
Accepted
Input
305261 372869925 0
287219 287221
298847 298849
942056 942058
319179 319181
344985 344987
920993 920995
229765 229767
978221 978223
477881 477883
71831 71833
847285 847287
692640 692642
366223 366225
320683 320685
972823 972825
706943 706945
412411 4...
Output
1
Judge Output
1
Checker Message
1 number(s): "1"
Test Case #14
53 ms
720 KB
Accepted
Input
421389 651451474 1
916697 916699
615396 615398
420833 420835
348058 348060
561677 561679
887852 887854
533947 533949
271365 271367
846136 846138
647729 647731
641014 641016
662963 662965
814140 814142
601110 601112
220381 220383
104961 104963
452460...
Output
1
Judge Output
1
Checker Message
1 number(s): "1"
Test Case #15
64 ms
720 KB
Accepted
Input
504813 225000318 1
578879 578881
964650 964652
866906 866908
120042 120044
745665 745667
597815 597817
838129 838131
531804 531806
373176 373178
480524 480526
243255 243257
857478 857480
294761 294763
881536 881538
724835 724837
502979 502981
749405...
Output
1
Judge Output
1
Checker Message
1 number(s): "1"
Test Case #16
14 ms
744 KB
Accepted
Input
111436 884634624 1
583323 166346
747600 761917
802571 105663
128745 162365
627153 488815
239505 884000
60805 384877
710975 329292
627236 137552
973908 361642
835917 332274
9808 915495
438853 476276
418907 706676
751027 463864
174206 931847
989028 75...
Output
2
Judge Output
2
Checker Message
1 number(s): "2"
Test Case #17
29 ms
724 KB
Accepted
Input
227564 163216172 1
932576 828527
552287 207990
802134 322355
421889 466547
427243 15855
209828 486241
308528 832794
141697 576850
723689 210304
81417 285228
149774 173953
104030 34215
120461 933841
162325 6547
869126 941430
167803 875279
856462 3186...
Output
2
Judge Output
2
Checker Message
1 number(s): "2"
Test Case #18
41 ms
724 KB
Accepted
Input
310988 31732313 0
281830 682197
291567 943663
736290 506343
682329 770729
260038 575598
404343 279970
556250 504903
539715 81304
11629 474545
964734 400301
496335 48337
198251 377128
834773 325998
681551 306417
178713 260213
2616 851416
691192 7217...
Output
1
Judge Output
1
Checker Message
1 number(s): "1"
Test Case #19
51 ms
840 KB
Accepted
Input
394412 605281157 0
406891 344378
320446 389735
670445 690331
718576 74911
835936 135342
341962 882212
28165 952820
937734 328863
75378 771490
72244 548079
842896 890016
259768 687336
357598 975051
168074 349391
521004 770483
804724 762144
525921 283...
Output
1
Judge Output
1
Checker Message
1 number(s): "1"
Test Case #20
17 ms
752 KB
Accepted
Input
131677 448003296 0
626696 60852
729870 658324
466516 22874
598740 422436
339862 658512
947888 376112
709774 801564
177920 59774
342462 563980
215282 211486
965944 187634
163254 29868
910866 201770
392136 557828
120168 527384
231144 755664
690082 793...
Output
1
Judge Output
1
Checker Message
1 number(s): "1"
Test Case #21
27 ms
728 KB
Accepted
Input
215101 316519436 0
259794 385216
722222 998854
334828 325442
119620 96210
491660 778000
336918 580594
719010 762808
39364 554890
469960 92462
916508 572450
593658 870992
351696 201900
274082 499876
430588 157568
290958 547926
283746 642530
807926 98...
Output
1
Judge Output
1
Checker Message
1 number(s): "1"
Test Case #22
42 ms
636 KB
Accepted
Input
331229 890068280 1
509918 92554
266188 21816
268546 758826
705908 639166
157248 897486
277564 168052
214456 107026
283784 563798
111248 686352
131526 868006
286780 619758
988522 953132
254324 284190
917424 757310
975540 54674
953372 594802
477384 65...
Output
2
Judge Output
2
Checker Message
1 number(s): "2"
Test Case #23
91 ms
728 KB
Accepted
Input
729291 986040083 1
346281 651565
192851 632425
235985 940049
566645 92597
853927 538777
445445 736199
672927 131215
842921 296833
645541 407307
300025 768031
55329 719059
184029 871809
646737 597407
712255 753949
492903 560641
254359 488167
45557 55...
Output
1
Judge Output
1
Checker Message
1 number(s): "1"
Test Case #24
106 ms
728 KB
Accepted
Input
845419 854556223 1
435699 799553
165699 949627
566739 504287
527933 505335
671711 354133
436683 289801
163113 740283
581117 266417
653999 243815
238193 250135
676657 841027
101613 104443
310311 595661
135741 153759
714427 827585
96005 910575
217717 ...
Output
1
Judge Output
1
Checker Message
1 number(s): "1"
Test Case #25
121 ms
756 KB
Accepted
Input
896139 428105068 0
59507 995769
624703 801217
383655 972067
489219 14531
51563 559191
845305 405471
167137 835511
222857 284231
662455 518253
176361 732239
394443 525067
19197 337075
439497 107757
73067 650021
401565 532459
520265 332985
779579 2497...
Output
2
Judge Output
2
Checker Message
1 number(s): "2"
Test Case #26
74 ms
636 KB
Accepted
Input
595115 942848651 1
668372 668374
359562 359564
658758 658760
986722 986724
698701 698703
688686 688688
179226 179228
944483 944485
509192 509194
361995 361997
575 577
466183 466185
197277 197279
59415 59417
180882 180884
173785 173787
31947 31949
12...
Output
2
Judge Output
2
Checker Message
1 number(s): "2"
Test Case #27
80 ms
728 KB
Accepted
Input
645835 221430199 0
297849 297851
708815 708817
137535 137537
758705 758707
882689 882691
655545 655547
450704 450706
204922 204924
68935 68937
162085 162087
570113 570115
660698 660700
677898 677900
564034 564036
428440 428442
571803 571805
104700 1...
Output
2
Judge Output
2
Checker Message
1 number(s): "2"
Test Case #28
51 ms
728 KB
Accepted
Input
409506 862638763 1
658639 156464
412310 762952
319123 437677
986574 315291
630718 29943
675471 625836
217125 107159
827680 589988
575905 888761
17805 259282
751696 371244
369637 877479
478419 154534
426682 108921
405839 817342
650852 823427
18284 22...
Output
1
Judge Output
1
Checker Message
1 number(s): "1"
Test Case #29
63 ms
728 KB
Accepted
Input
492930 290963415 1
783701 785941
184293 241728
253279 654369
214309 619474
430808 556983
869986 484973
464847 555076
258402 94443
672358 928809
125314 439764
65553 212924
463858 963495
160028 546691
137396 408792
748130 327612
420257 766860
853014 8...
Output
1
Judge Output
1
Checker Message
1 number(s): "1"
Test Case #30
165 ms
728 KB
Accepted
Input
843011 347841896 1
841578 824792
781418 386652
323592 74420
829448 836642
574832 241806
199374 315546
742848 939618
109500 320970
623128 9086
872788 533182
926498 443694
404072 33356
578258 23626
845454 801550
763744 517302
599586 51176
913168 4166...
Output
2
Judge Output
2
Checker Message
1 number(s): "2"
Test Case #31
120 ms
736 KB
Accepted
Input
959139 481199252 1
605492 149156
773768 792590
257310 442396
415736 445006
175012 295884
522996 585436
686676 835454
905536 816086
750624 537566
639424 828738
554212 192460
527108 336204
493090 873348
397698 335882
382918 537842
269212 872632
31012 ...
Output
2
Judge Output
2
Checker Message
1 number(s): "2"
Test Case #32
1 ms
740 KB
Accepted
Input
9859 54748096 1
855616 856496
317734 750144
191030 875780
936614 53370
775194 480780
529050 172894
312938 731288
701572 376612
391914 617664
854442 124294
181926 875818
715550 956620
987122 723070
436150 935622
67500 110000
873430 824906
700470 3466...
Output
2
Judge Output
2
Checker Message
1 number(s): "2"
Test Case #33
16 ms
748 KB
Accepted
Input
125987 923264237 0
488716 180858
861702 642290
59340 178348
457494 727142
440782 86476
404288 377378
256766 627122
563016 320112
519410 211554
69460 971466
875048 624584
903992 577038
967364 21176
922986 535364
238290 130540
926030 711770
435338 601...
Output
1
Judge Output
1
Checker Message
1 number(s): "1"
Test Case #34
107 ms
776 KB
Accepted
Input
843011 347841896 1
397285 382119
949611 961599
862509 801179
951057 192705
743683 170431
85221 379467
67993 320743
37623 647027
597199 721251
561671 828655
113381 704213
614609 880705
307981 789781
861851 285481
624133 383807
222655 571009
899467 90...
Output
1
Judge Output
1
Checker Message
1 number(s): "1"
Test Case #35
120 ms
856 KB
Accepted
Input
959139 481199252 1
583159 578335
922457 327031
241493 317189
960573 653671
75307 889327
493843 29525
72017 415973
679361 616611
605655 509529
985999 310761
734709 874409
483967 695953
875097 788035
847405 733515
311271 650749
646915 945189
23401 356...
Output
1
Judge Output
1
Checker Message
1 number(s): "1"
Test Case #36
1 ms
748 KB
Accepted
Input
9859 54748096 1
206967 240165
381463 178621
620477 881425
921859 114639
406931 704683
485081 96967
658657 511201
321101 634425
176183 783967
924167 792865
356039 996377
401551 928585
52513 786289
270891 229779
46637 403853
22949 415829
633489 651973...
Output
1
Judge Output
1
Checker Message
1 number(s): "1"
Test Case #37
105 ms
748 KB
Accepted
Input
843011 347841896 1
412396 412398
420789 420791
693326 693328
390709 390711
537210 537212
661796 661798
418321 418323
914724 914726
120903 120905
287416 287418
157773 157775
599687 599689
469809 469811
371424 371426
660485 660487
554750 554752
4543 4...
Output
2
Judge Output
2
Checker Message
1 number(s): "2"
Test Case #38
121 ms
748 KB
Accepted
Input
959139 481199252 1
74578 74580
802746 802748
396295 396297
386884 386886
721198 721200
628655 628657
722503 722505
207868 207870
647942 647944
87506 87508
792718 792720
761498 761500
917727 917729
843338 843340
908043 908045
952768 952770
268783 268...
Output
2
Judge Output
2
Checker Message
1 number(s): "2"
Test Case #39
1 ms
748 KB
Accepted
Input
9859 54748096 1
928248 928250
927808 927810
875072 875074
158867 158869
937890 937892
595515 595517
26685 26687
468307 468309
240390 240392
887597 887599
586447 586449
764525 764527
365644 365646
156469 156471
188306 188308
350786 350788
308832 3088...
Output
1
Judge Output
1
Checker Message
1 number(s): "1"
Test Case #40
16 ms
748 KB
Accepted
Input
125987 923264237 0
590429 590431
244358 244360
321145 321147
930851 930853
89174 89176
529670 529672
363571 363573
728747 728749
543238 543240
720391 720393
188689 188691
702144 702146
813561 813563
628383 628385
660056 660058
781508 781510
605777 6...
Output
2
Judge Output
2
Checker Message
1 number(s): "2"
Test Case #41
26 ms
748 KB
Accepted
Input
209411 496813081 0
219907 219909
593611 593613
24114 24116
959730 959732
305867 305869
496529 496531
635050 635052
21890 21892
102981 102983
487777 487779
982418 982420
896659 896661
518374 518376
876106 876108
907614 907616
179526 179528
645826 645...
Output
1
Judge Output
1
Checker Message
1 number(s): "1"
Test Case #42
41 ms
872 KB
Accepted
Input
325539 365329221 0
882089 882091
718673 718675
502890 502892
699009 699011
489855 489857
430685 430687
939232 939234
282330 282332
630021 630023
287868 287870
584659 584661
866982 866984
966291 966293
348020 348022
379364 379366
642952 642954
942770...
Output
1
Judge Output
1
Checker Message
1 number(s): "1"
Test Case #43
56 ms
748 KB
Accepted
Input
446226 969206670 1
252180 961089
563128 35422
387779 890418
238322 46121
365630 257420
203517 232714
328904 888634
64604 246688
315781 760686
233016 544910
669120 12510
645725 212348
953384 994626
914043 605780
434511 258648
938789 981573
222954 871...
Output
2
Judge Output
2
Checker Message
1 number(s): "2"
Test Case #44
62 ms
656 KB
Accepted
Input
496946 837722810 1
601433 623271
367815 481495
321934 74406
531466 350303
165721 784459
173840 26443
576626 560743
495327 494246
379529 24927
340526 725392
15681 78381
739946 522556
476209 419487
400565 872946
552610 768919
740898 925006
57684 2089...
Output
2
Judge Output
2
Checker Message
1 number(s): "2"
Test Case #45
87 ms
880 KB
Accepted
Input
613074 116304359 0
726495 252748
331287 184464
288794 258395
791906 687189
933107 120011
368355 852876
48540 8660
926049 965996
667470 130384
448035 648977
329538 952765
834167 641276
157817 844348
143983 172816
862197 54997
799903 901142
925117 803...
Output
1
Judge Output
1
Checker Message
1 number(s): "1"
Test Case #46
95 ms
748 KB
Accepted
Input
696498 689853203 0
43044 106418
135974 663240
255653 475087
85049 958668
765901 679755
338678 455117
296263 456577
324067 213554
731218 394625
331352 764051
643395 827148
895685 951484
647937 526105
663209 439983
171784 565267
602012 844574
727143 1...
Output
1
Judge Output
1
Checker Message
1 number(s): "1"
Test Case #47
102 ms
748 KB
Accepted
Input
812626 413145152 0
392298 735896
132149 109313
189809 850563
345489 262850
341799 239498
309001 281551
800881 937198
722085 718009
827671 658866
406158 911829
957252 701531
989906 294397
362250 918262
182435 739853
289883 75538
404121 788007
594577 ...
Output
2
Judge Output
2
Checker Message
1 number(s): "2"
Test Case #48
116 ms
748 KB
Accepted
Input
863346 986693996 1
517359 365373
904133 844986
123964 67255
573224 599736
141890 766538
503516 851088
81308 385115
152807 965567
891420 731618
513667 868119
303813 767402
84127 380413
852370 343123
893150 39723
632174 361616
238933 731439
653499 138...
Output
2
Judge Output
2
Checker Message
1 number(s): "2"
Test Case #49
113 ms
748 KB
Accepted
Input
863346 986693996 1
517359 365373
904133 844986
123964 67255
573224 599736
141890 766538
503516 851088
81308 385115
152807 965567
891420 731618
513667 868119
303813 767402
84127 380413
852370 343123
893150 39723
632174 361616
238933 731439
653499 138...
Output
2
Judge Output
2
Checker Message
1 number(s): "2"
Test Case #50
18 ms
748 KB
Accepted
Input
145954 262163435 0
160382 238278
458764 545770
324568 88136
801074 646258
66140 556076
875192 234260
850356 206
993122 368738
819764 906798
136278 116686
81116 967804
721448 479038
318480 225546
7886 876212
347806 179792
579820 91104
44602 233846
83...
Output
1
Judge Output
1
Checker Message
1 number(s): "1"
Test Case #51
29 ms
760 KB
Accepted
Input
229378 130679576 1
858888 497234
516522 951708
192880 969904
938978 254622
217936 610156
815838 373336
345800 896040
854566 377646
947262 435280
351296 898450
708830 716570
909890 651070
747104 140676
494722 475952
32388 200334
249446 977970
714062 ...
Output
2
Judge Output
2
Checker Message
1 number(s): "2"
Test Case #52
45 ms
668 KB
Accepted
Input
345506 409261124 1
109012 821598
995082 909262
126598 272472
459856 862988
818116 729642
204870 26202
289628 791874
650602 872762
523142 29170
183340 194006
784928 848314
32924 271486
175730 924988
533174 10284
651562 772490
788254 930242
383522 163...
Output
2
Judge Output
2
Checker Message
1 number(s): "2"
Test Case #53
68 ms
756 KB
Accepted
Input
428930 982809968 1
807518 528936
604456 866816
546526 705856
46144 471352
483706 783722
80108 230684
785074 136092
446638 881670
716048 109268
398358 489562
478050 597080
221366 22718
155970 223094
85418 544618
887760 793030
906264 817106
118388 904...
Output
2
Judge Output
2
Checker Message
1 number(s): "2"
Test Case #54
65 ms
668 KB
Accepted
Input
512354 851326109 0
440618 853300
596806 207344
414836 73832
501614 79716
83886 454826
86162 883550
728902 31926
308082 376786
843544 703156
547968 336732
105764 280438
344400 194752
519186 138224
123872 144358
506934 365188
575890 769380
787848 284...
Output
1
Judge Output
1
Checker Message
1 number(s): "1"
Test Case #55
80 ms
760 KB
Accepted
Input
628482 279650761 0
690742 46848
140774 164898
348556 441808
22494 688080
618658 574312
409784 22626
289756 927760
169526 385696
971042 783254
762988 697696
733478 29204
532842 815168
499428 922538
96916 744098
191516 320320
180108 656244
457308 8346...
Output
1
Judge Output
1
Checker Message
1 number(s): "1"
Test Case #56
68 ms
760 KB
Accepted
Input
540027 544016876 0
911163 979003
386393 737365
285273 936151
160393 727115
903879 827079
134321 862759
210205 213281
260023 855411
28989 348379
880717 428357
114497 494685
274923 727833
895961 207367
96651 921701
606679 233845
134921 185587
762733 4...
Output
2
Judge Output
2
Checker Message
1 number(s): "2"
Test Case #57
82 ms
760 KB
Accepted
Input
656155 972341528 0
486741 175221
845397 102797
664257 966001
607839 139855
283731 594205
29103 978429
214231 308509
949989 824995
37447 184885
818885 444849
735825 664881
144279 960467
511309 253849
33977 417967
342045 500789
559179 607995
372823 58...
Output
2
Judge Output
2
Checker Message
1 number(s): "2"
Test Case #58
92 ms
760 KB
Accepted
Input
739579 840857669 0
624389 837049
818245 906157
995011 482011
569127 600821
615355 361333
534181 580259
704413 403737
591729 356649
45903 459323
757055 878723
405383 300693
61863 679259
592267 765943
505691 914229
77411 253891
449053 78633
31143 1406...
Output
2
Judge Output
2
Checker Message
1 number(s): "2"
Test Case #59
108 ms
760 KB
Accepted
Input
855707 414406513 1
810265 985035
277251 757745
325769 998019
578641 110019
946977 80233
428963 695931
242827 12807
281697 326233
54361 295831
181383 360829
74941 470889
979445 960119
255843 812425
443017 896651
764547 520833
873313 501043
593005 805...
Output
1
Judge Output
1
Checker Message
1 number(s): "1"
Test Case #60
130 ms
760 KB
Accepted
Input
906427 692988061 1
434071 133025
784483 123177
656523 514029
539929 522757
326829 847357
934041 763373
295079 108035
971663 857887
624885 570269
119551 329093
696269 592857
848801 240981
385029 762451
866501 344687
986071 787777
249347 923451
251325...
Output
1
Judge Output
1
Checker Message
1 number(s): "1"
Test Case #61
3 ms
760 KB
Accepted
Input
22555 561504202 1
571719 329241
709103 926537
35509 30039
501215 983723
658451 52417
828823 365203
785263 203263
613403 827471
633343 358549
57721 811197
317599 763053
814613 473615
952145 274547
241759 840951
673209 492651
139221 345861
861413 5035...
Output
1
Judge Output
1
Checker Message
1 number(s): "1"
Test Case #62
22 ms
760 KB
Accepted
Input
174204 761756614 1
104354 104356
958295 958297
693539 693541
488090 488092
696056 696058
806925 806927
129152 129154
781952 781954
778329 778331
805445 805447
684214 684216
346086 346088
108405 108407
821913 821915
395440 395442
947057 947059
299538...
Output
1
Judge Output
1
Checker Message
1 number(s): "1"
Test Case #63
32 ms
764 KB
Accepted
Input
257628 190081267 1
990728 990730
274844 274846
396508 396510
292777 292779
880044 880046
741080 741082
433334 433336
42391 42393
338072 338074
638239 638241
510647 510649
507897 507899
556322 556324
102339 102341
899894 899896
377780 377782
372291 3...
Output
2
Judge Output
2
Checker Message
1 number(s): "2"
Test Case #64
45 ms
768 KB
Accepted
Input
341052 763630111 0
620205 620207
399906 399908
875284 875286
256248 256250
64032 64034
675236 675238
704813 704815
302831 302833
673624 673626
405625 405627
337080 337082
478220 478222
36943 36945
574254 574256
147452 147454
775798 775800
636532 636...
Output
2
Judge Output
2
Checker Message
1 number(s): "2"
Test Case #65
54 ms
768 KB
Accepted
Input
424476 632146252 0
282387 282389
749160 749162
321357 321359
60936 60938
248020 248022
642095 642097
41699 41701
595974 595976
233368 233370
981523 981525
939321 939323
672735 672737
709052 709054
821976 821978
619202 619204
206520 206522
933476 933...
Output
1
Judge Output
1
Checker Message
1 number(s): "1"
Test Case #66
68 ms
768 KB
Accepted
Input
540604 205695096 0
911865 911867
98413 98415
24326 24328
57111 57113
464712 464714
576251 576253
345881 345883
823710 823712
760407 760409
814318 814320
733051 733053
643058 643060
156969 156971
102403 102405
866761 866763
828730 828732
973525 9735...
Output
1
Judge Output
1
Checker Message
1 number(s): "1"
Test Case #67
78 ms
768 KB
Accepted
Input
624028 779243940 1
765534 765536
223475 223477
535807 535809
796390 796392
615996 615998
510406 510408
617359 617361
116854 116856
320151 320153
614408 614410
335292 335294
613381 613383
604886 604888
574317 574319
371215 371217
259452 259454
270470...
Output
2
Judge Output
2
Checker Message
1 number(s): "2"