QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#42513 | #1356. Solo Tree Game | connect | AC ✓ | 38ms | 3724kb | C++ | 323b | 2022-08-02 16:43:32 | 2022-08-02 16:43:34 |
Judging History
answer
#include<bits/stdc++.h>
using namespace std;
typedef long long ll;
ll T;
ll n;
string s;
ll ans;
signed main(){
cin>>T;
while(T--){
cin>>n;
ans^=(n-2);
}
cin>>s;
if(ans) cout<<s;
else if(s=="Blackking") puts("Whiteking");
else puts("Blackking");
return 0;
}
Details
Tip: Click on the bar to expand more detailed information
Test #1:
score: 100
Accepted
time: 2ms
memory: 3640kb
input:
2 3 3 Whiteking
output:
Blackking
result:
ok single line: 'Blackking'
Test #2:
score: 0
Accepted
time: 2ms
memory: 3696kb
input:
2 3 5 Whiteking
output:
Whiteking
result:
ok single line: 'Whiteking'
Test #3:
score: 0
Accepted
time: 2ms
memory: 3648kb
input:
1 247279355 Whiteking
output:
Whiteking
result:
ok single line: 'Whiteking'
Test #4:
score: 0
Accepted
time: 2ms
memory: 3612kb
input:
10 331317953 163915823 393444807 125949376 825752601 505203221 92005048 532906551 781463598 294609988 Whiteking
output:
Blackking
result:
ok single line: 'Blackking'
Test #5:
score: 0
Accepted
time: 2ms
memory: 3508kb
input:
10 447375586 859170723 209472655 387174990 966026362 648780951 769693156 774890855 187833074 699650156 Blackking
output:
Blackking
result:
ok single line: 'Blackking'
Test #6:
score: 0
Accepted
time: 2ms
memory: 3560kb
input:
30 761898482 600230182 198808173 299873422 10788447 883339333 285724548 667184605 124277011 871751116 629794690 539562498 607750742 122142921 776071592 697806198 499002056 103734162 217097269 77416011 27073966 710805929 531041042 919912535 44887820 27050601 15443207 903908365 317350402 255798912 Bla...
output:
Blackking
result:
ok single line: 'Blackking'
Test #7:
score: 0
Accepted
time: 0ms
memory: 3712kb
input:
30 645840849 610007980 460928178 333615108 653695240 366646448 903003739 425200301 422940236 192489435 176771244 284700435 890547683 689816379 893070619 564136089 882942329 283237152 391156097 164442018 902178731 181148670 364322203 373818203 448423773 806491000 65174927 756602972 626746465 84879551...
output:
Blackking
result:
ok single line: 'Blackking'
Test #8:
score: 0
Accepted
time: 1ms
memory: 3644kb
input:
50 486486779 636256940 971324243 802506454 428665686 744782560 506788639 559478355 470786348 965704222 493185717 400123682 821245514 434288829 430583520 387538892 369794783 746819118 174329836 454510387 479546195 45450706 65737221 21951743 976883773 282809749 642684566 854618036 932340938 560134405 ...
output:
Whiteking
result:
ok single line: 'Whiteking'
Test #9:
score: 0
Accepted
time: 2ms
memory: 3552kb
input:
50 960363746 646034738 450263696 836248140 993424625 523056976 419035131 317494051 64416873 286442542 40162271 440228918 399009756 1962288 330763101 253868783 753735057 926322108 348388664 619684248 59683660 732612893 899018382 180890110 380419727 357217450 65531441 2279944 163589147 406703600 36171...
output:
Whiteking
result:
ok single line: 'Whiteking'
Test #10:
score: 0
Accepted
time: 2ms
memory: 3508kb
input:
70 879157530 377316398 665692460 10172187 768395071 196160389 22820031 451772105 407230285 764690028 278428891 633800019 329707586 746434737 868276002 487336985 945620210 94936775 53414550 204719918 932018423 301947629 383613954 123990950 908879728 755388344 564893225 100295007 59118221 352683151 88...
output:
Blackking
result:
ok single line: 'Blackking'
Test #11:
score: 0
Accepted
time: 0ms
memory: 3580kb
input:
100 419583839 210392798 230806614 736375336 155474057 128693076 129286905 111089627 219242024 924836677 614692114 103607256 899310598 446365506 305867591 549298132 760373433 693712368 353702432 682790763 256488888 32553363 949609813 105311715 346433097 814502038 599735536 719287222 22858825 24957342...
output:
Whiteking
result:
ok single line: 'Whiteking'
Test #12:
score: 0
Accepted
time: 2ms
memory: 3612kb
input:
300 692410415 316955986 742062788 636476683 27645954 654194239 324392091 531805812 123671512 885657082 851968950 630949544 523913849 170585630 165746910 585771114 355044276 182466 734906412 827010716 636988587 262946335 169873012 523078290 389606381 738118069 886661142 809183036 191100856 853381898 ...
output:
Blackking
result:
ok single line: 'Blackking'
Test #13:
score: 0
Accepted
time: 2ms
memory: 3592kb
input:
400 631438914 547017359 274644797 905302020 143079590 247080129 843739421 984148209 855370885 84402894 257672042 815441524 650041509 278464655 753056038 719202591 307513350 512988451 456482274 233946831 355510695 396013333 907649523 73023213 46730997 920485684 646350999 314878760 781391913 573422372...
output:
Blackking
result:
ok single line: 'Blackking'
Test #14:
score: 0
Accepted
time: 2ms
memory: 3560kb
input:
530 662652842 721665938 981428865 230854847 879150059 658417822 793544365 143478972 363431111 565555001 775922603 379797811 85981038 323950688 251500747 774064917 10836 418763649 865401666 850314655 668909449 661265245 673705356 663239473 517331173 713455277 653522716 786069429 332689364 883431743 1...
output:
Whiteking
result:
ok single line: 'Whiteking'
Test #15:
score: 0
Accepted
time: 0ms
memory: 3576kb
input:
670 423973088 138878928 275862462 209978950 457223019 859092067 344954478 380408868 299935905 657239724 457144741 658527313 150884987 134269385 9162139 402059881 399098064 217739548 718262109 462702532 919260860 307326089 342202634 122295510 960299843 702308490 450875845 488151794 996665786 62220860...
output:
Blackking
result:
ok single line: 'Blackking'
Test #16:
score: 0
Accepted
time: 2ms
memory: 3712kb
input:
1000 730758178 711765896 508714265 767560594 158519961 386493473 732692645 541706775 422528616 319830965 401840063 844655709 555775768 322134035 711783339 453018030 740545267 271512440 929896674 412703896 907879146 826258278 344333 241473178 647723226 195472659 382177678 89759332 218976972 890169605...
output:
Blackking
result:
ok single line: 'Blackking'
Test #17:
score: 0
Accepted
time: 3ms
memory: 3696kb
input:
1352 134047046 458126708 195768368 712136674 867921466 725029909 919135332 209152661 975359005 543366626 981578892 34192305 435303461 889917757 937052672 93965350 640012003 16480834 278690013 931590029 42174073 958899784 456785215 571758421 511259218 584105870 88460802 515365939 860222251 354712831 ...
output:
Blackking
result:
ok single line: 'Blackking'
Test #18:
score: 0
Accepted
time: 1ms
memory: 3636kb
input:
3724 392971175 791564123 99367035 590900255 845740635 468693661 748060833 401242580 414820173 965013446 120248197 884503617 936075880 303426345 959987708 980206100 831731062 659147953 270338474 55276693 497894822 203905914 47895993 192647159 559695155 579442260 429816905 336967977 285673597 24391001...
output:
Whiteking
result:
ok single line: 'Whiteking'
Test #19:
score: 0
Accepted
time: 4ms
memory: 3560kb
input:
4512 486999526 505935784 828592773 142497079 191417520 355334835 323937975 49480606 722282208 604071463 834685554 581475220 972511114 274931969 993319067 524873372 516235503 979684455 901717026 627999330 695452387 14688814 418621647 337944571 748691216 106764570 174981995 234559682 698509070 5697972...
output:
Blackking
result:
ok single line: 'Blackking'
Test #20:
score: 0
Accepted
time: 0ms
memory: 3576kb
input:
5982 109447583 906184682 983973406 908730323 995012037 250863633 318921444 892228468 696401123 882866635 927347185 892691910 293104724 426319412 120129608 718673933 671517187 156079511 341657753 609989316 357885314 315332908 66908511 801243291 206428076 664898013 202713356 266149872 715717598 878739...
output:
Blackking
result:
ok single line: 'Blackking'
Test #21:
score: 0
Accepted
time: 5ms
memory: 3612kb
input:
7892 216223641 222546133 909618262 249426010 302476598 496321026 449883560 674993234 457541028 799521104 500458367 421311089 124944286 463066496 498948463 839975457 168520906 991384367 867382828 452482342 583022317 628391104 101896319 176764878 174437610 237651332 246427778 155429885 571298529 69077...
output:
Whiteking
result:
ok single line: 'Whiteking'
Test #22:
score: 0
Accepted
time: 3ms
memory: 3580kb
input:
10638 336260628 787681203 553501715 126822205 56410956 202132392 862177625 213011479 468525534 996695253 696212166 975849292 816507453 917350753 692382397 878425410 147420765 974611242 792075058 682930892 639350522 387869456 326692527 656831779 345368069 370161149 155126674 110275377 213206307 13130...
output:
Whiteking
result:
ok single line: 'Whiteking'
Test #23:
score: 0
Accepted
time: 7ms
memory: 3724kb
input:
15372 534253140 164058793 480652950 707257047 171306353 118866173 391567825 142916429 666232011 742469166 118291832 996576077 753751412 522874165 144963098 351288973 729626346 285868535 428741677 412606137 400085932 130072328 22563081 580874108 153177276 518909712 761763631 204187111 284215303 50318...
output:
Blackking
result:
ok single line: 'Blackking'
Test #24:
score: 0
Accepted
time: 2ms
memory: 3508kb
input:
39801 929990128 650232913 133166202 989966555 281163156 518186310 419093638 216935663 273105811 889568352 999776820 253365846 238088474 389046610 772616473 326410801 852303775 640675938 750036119 667025566 674387860 70951716 673093783 924723673 281914798 995428534 607212603 533770361 506260965 37273...
output:
Blackking
result:
ok single line: 'Blackking'
Test #25:
score: 0
Accepted
time: 12ms
memory: 3552kb
input:
50000 952451750 581417850 398282371 875367529 770886237 375440673 691439428 919475027 842248153 199615407 171182451 139405687 650675291 460055584 732918775 40093990 790985910 55054440 287838531 579298433 761736870 447045806 14478112 689878544 830343882 415598942 820062247 801827642 48859202 37025275...
output:
Whiteking
result:
ok single line: 'Whiteking'
Test #26:
score: 0
Accepted
time: 19ms
memory: 3560kb
input:
50000 68509384 276672752 841195065 136593145 127979444 813985704 779192937 161459332 248617629 878877088 919173197 394267750 72911050 519266971 320952448 173764099 407045636 658732002 113779703 414124572 886632104 464916319 886229649 530940178 131840629 636158542 397215373 949133035 739463139 601831...
output:
Blackking
result:
ok single line: 'Blackking'
Test #27:
score: 0
Accepted
time: 26ms
memory: 3636kb
input:
70000 353982240 797706724 925268563 825687281 296387401 570545860 817188313 118871817 803068558 141924942 698524739 842156790 374895415 24967604 847539611 929732131 392423308 436258420 353910629 176617579 402195242 667309005 59129534 733051828 832107767 485705103 614990761 265036974 652667677 150767...
output:
Blackking
result:
ok single line: 'Blackking'
Test #28:
score: 0
Accepted
time: 22ms
memory: 3648kb
input:
70000 470039873 82896227 741296411 86912896 653480608 9090891 199909123 65888821 209438034 116153924 446515486 723903699 797131173 84178990 947360029 63402241 8483035 334903283 884884500 306411018 822057776 980146817 930881071 574113462 428571814 923084149 192143887 117375067 421419469 87379171 3946...
output:
Whiteking
result:
ok single line: 'Whiteking'
Test #29:
score: 0
Accepted
time: 38ms
memory: 3608kb
input:
100000 345607070 115658082 958466216 414354232 692335267 699352794 626066586 851068682 780593444 390008204 43241691 136927018 496102342 428836220 670085286 951882614 543816379 434984607 675330458 137991946 17052041 816388218 240167965 342937273 305752903 482803707 451686189 375855978 629399371 64897...
output:
Blackking
result:
ok single line: 'Blackking'
Test #30:
score: 0
Accepted
time: 36ms
memory: 3584kb
input:
100000 132154004 380612869 275714351 358426603 659559883 580615188 794037618 177490558 242013731 758531778 365701415 302500464 771121513 292617777 111531829 35756497 927995285 573045549 157080311 34415963 25079530 204890834 548187241 557702812 405568 201583538 912725048 46013854 912322648 480759873 ...
output:
Blackking
result:
ok single line: 'Blackking'
Test #31:
score: 0
Accepted
time: 34ms
memory: 3552kb
input:
100000 408459104 213361533 777673528 186870303 821853145 39082180 565657668 993984919 672887193 31484841 432162097 705350744 356663526 642330991 355346349 389575097 643614472 10810034 318415415 95224513 394146417 190712594 496664888 955781305 112824810 336651807 2412638 786277891 580109041 480785880...
output:
Whiteking
result:
ok single line: 'Whiteking'
Test #32:
score: 0
Accepted
time: 32ms
memory: 3448kb
input:
100000 195006038 400168465 16773810 130942674 162192916 920344573 28596000 693521949 839340180 105041115 164687221 87743637 709830550 801079849 796792891 690268424 617727979 148870977 95132568 991648529 697141206 579215208 882832017 170546846 397412075 428546793 168484197 456435767 157999620 1760255...
output:
Blackking
result:
ok single line: 'Blackking'
Test #33:
score: 0
Accepted
time: 38ms
memory: 3696kb
input:
100000 471311138 527884429 813700287 881238519 324486178 456959418 722068195 510016311 643328797 672961478 231147904 490593918 295372563 72645210 667492257 44087025 333347166 586635461 256467673 269276527 66208094 643184822 831309665 490477484 509831317 268647762 553139087 413519251 530818712 957764...
output:
Blackking
result:
ok single line: 'Blackking'
Test #34:
score: 0
Accepted
time: 32ms
memory: 3444kb
input:
100000 552825372 792839216 130948422 825310891 291710794 965106658 185006528 209553341 26601230 41485053 41820881 656167363 570391734 14574621 108938800 127960906 12493372 802844257 443250225 948881097 74235583 736720137 139328941 783390878 499451282 987427592 719210645 83677127 108709291 927560391 ...
output:
Whiteking
result:
ok single line: 'Whiteking'
Test #35:
score: 0
Accepted
time: 30ms
memory: 3644kb
input:
100000 829130472 252472726 554759745 653754591 532151910 501721503 878478723 26047703 535622547 19470815 30133710 59017645 745868347 581107281 979638165 71714107 728112559 240608742 604585329 931541793 521450324 95657052 165954442 103321518 611870524 122495862 103865536 745793309 481528383 927586398...
output:
Whiteking
result:
ok single line: 'Whiteking'
Test #36:
score: 0
Accepted
time: 35ms
memory: 3504kb
input:
100000 615677407 107362114 872007879 892794262 794343826 88016597 46449755 430617432 918894979 682961689 135773987 441410536 20887518 523036693 421084708 860620687 407258765 378669685 86335182 906113664 824445113 189192366 473973718 318087057 601490489 214390848 974969794 710918486 59418962 46440307...
output:
Whiteking
result:
ok single line: 'Whiteking'
Test #37:
score: 0
Accepted
time: 35ms
memory: 3556kb
input:
100000 186949807 645143477 295819203 643090108 34784943 841450888 739921950 542079094 722883597 955914752 202234670 844260817 606429530 89569354 291784074 431258734 122877953 111401470 247670286 888774361 193512001 469981426 422451365 638017696 930729177 54491817 359624684 668001969 432238053 464429...
output:
Blackking
result:
ok single line: 'Blackking'
Test #38:
score: 0
Accepted
time: 23ms
memory: 3712kb
input:
100000 608357272 176297709 621170948 399809179 422407573 533965381 705605514 808282335 257536530 302030045 744283818 162190262 152767419 295643890 738283980 293576112 908101574 377281528 673682085 978084392 482506385 33047467 682043405 383078590 590202715 144828539 918251799 666846830 967506622 5397...
output:
Whiteking
result:
ok single line: 'Whiteking'
Test #39:
score: 0
Accepted
time: 32ms
memory: 3644kb
input:
100000 797044738 743162813 133852087 998309804 843588782 7666842 375867701 864961255 876938073 874777616 114546163 485092440 3237820 58464230 426645599 465698422 393396985 730843346 934766920 645247864 44773338 848458115 969230233 240520210 441261523 347115813 820678126 455822345 967176172 646882132...
output:
Blackking
result:
ok single line: 'Blackking'
Test #40:
score: 0
Accepted
time: 34ms
memory: 3552kb
input:
100000 671209307 490820606 657197707 94177397 846892751 951842620 156983342 324313727 854862979 648539382 621417479 25581289 13328603 509138661 50429889 948088039 7899668 31254810 611734342 857169105 937748615 485519695 938540328 917774768 692241922 371791793 174010948 372236044 918216293 449693304 ...
output:
Blackking
result:
ok single line: 'Blackking'