QOJ.ac
QOJ
ID | 题目 | 提交者 | 结果 | 用时 | 内存 | 语言 | 文件大小 | 提交时间 | 测评时间 |
---|---|---|---|---|---|---|---|---|---|
#294412 | #4827. Message Made of Noise | Forever_Young# | AC ✓ | 1ms | 4128kb | C++17 | 1.6kb | 2023-12-30 13:32:04 | 2023-12-30 13:32:06 |
Judging History
answer
#include <bits/stdc++.h>
using namespace std;
#define rep(i,a,n) for (int i=a;i<n;i++)
#define per(i,a,n) for (int i=n-1;i>=a;i--)
#define pb push_back
#define eb emplace_back
#define mp make_pair
#define all(x) (x).begin(),(x).end()
#define fi first
#define se second
#define SZ(x) ((int)(x).size())
typedef vector<int> VI;
typedef basic_string<int> BI;
typedef long long ll;
typedef pair<int,int> PII;
typedef double db;
mt19937_64 mrand(1234);
const ll mod=1000000007;
int rnd(int x) { return mrand() % x;}
ll powmod(ll a,ll b) {ll res=1;a%=mod; assert(b>=0); for(;b;b>>=1){if(b&1)res=res*a%mod;a=a*a%mod;}return res;}
ll gcd(ll a,ll b) { return b?gcd(b,a%b):a;}
// head
char w[1111];
int M=20;
int pw[111];
void gaoA() {
scanf("%s",w);
int m=strlen(w);
VI bs;
rep(i,0,m) {
rep(j,0,3) {
bs.pb((w[i]-'a')/pw[j]%3);
bs.pb(3);
}
}
int x;
scanf("%d",&x);
VI c(x,0);
rep(i,0,x) scanf("%d",&c[i]);
int t=0;
VI d;
rep(i,0,SZ(bs)) {
rep(j,0,M) {
while (c[t]%4!=bs[i]) t++;
d.pb(c[t]); t++;
}
}
//fprintf(stderr,"%d\n",t);
assert(t<=x);
printf("%d\n",SZ(d));
for (auto x:d) printf("%d ",x); puts("");
}
void gaoB() {
int x;
scanf("%d",&x);
VI c(x,0);
rep(i,0,x) scanf("%d",&c[i]);
VI bs;
rep(i,0,x) if (i==0||c[i]%4!=c[i-1]%4) bs.pb(c[i]%4);
assert(SZ(bs)%6==0);
string ss;
for (int i=0;i<SZ(bs);i+=6) {
ss.pb(bs[i]+bs[i+2]*3+bs[i+4]*9+'a');
}
puts(ss.c_str());
}
char s[111];
int main() {
pw[0]=1;
for (int i=1;i<=3;i++) pw[i]=pw[i-1]*3;
scanf("%s",s);
if (s[0]=='A') gaoA();
else gaoB();
}
详细
Test #1:
score: 100
Accepted
time: 1ms
memory: 3912kb
input:
Alisa spark 10000 833080662 16249270 933346436 811379468 925271783 359705680 76365900 158342757 877083772 38085457 819965104 408973036 16049452 102494634 585189166 986634959 68282709 745375330 964742302 111199534 259074194 357880009 300942070 891323449 763894642 774838701 270621761 288500028 8289322...
output:
600 933346436 811379468 359705680 76365900 877083772 819965104 408973036 16049452 288500028 951678264 913338972 722776932 278824512 562048456 698745720 418820376 690562340 438228036 699207528 395899716 47739823 239325547 2534511 955107603 526996135 82524575 555410815 994190479 843519955 819986551 67...
input:
Eva 293 811379468 359705680 819965104 951678264 913338972 722776932 698745720 690562340 438228036 395899716 955107603 526996135 555410815 994190479 819986551 179902295 415407403 215309603 778080708 513663708 454806672 117137904 791163544 160257056 480158812 54235136 994596619 209332027 429356387 976...
output:
spark
result:
ok single line: 'spark'
Test #2:
score: 100
Accepted
time: 1ms
memory: 3840kb
input:
Alisa zoo 10000 956754604 875535727 764768765 403840087 67159452 949712722 115576737 264236473 212511213 562986097 859669991 893717805 838891893 47770507 416355290 159696911 702519086 615482060 179929327 523223494 166469421 452823317 391263419 32353165 631726585 32531344 424699975 294307421 85611161...
output:
360 764768765 115576737 264236473 212511213 562986097 893717805 838891893 166469421 452823317 32353165 631726585 294307421 283326041 341538193 942558913 718691817 277717889 119092421 707598409 349195953 750564539 909268247 446984179 351968739 495785319 465128199 121800135 872607655 118445835 9590670...
input:
Eva 171 115576737 166469421 452823317 631726585 294307421 341538193 277717889 119092421 750564539 351968739 465128199 121800135 872607655 118445835 189216791 271061967 285550254 973632610 86888478 463440766 957931518 46182630 91772274 539543214 682248054 747706506 829212222 556804791 464218723 53664...
output:
zoo
result:
ok single line: 'zoo'
Test #3:
score: 100
Accepted
time: 1ms
memory: 4108kb
input:
Alisa at 10000 310982107 539408279 796963309 809203668 523777662 545413064 979220389 847693910 138708955 656945625 74716593 934751180 481326343 167326361 231049220 522995900 37351748 788253568 916125796 387068110 517465221 271899863 460441305 620026841 944960218 415699339 335393844 48690159 42519562...
output:
240 809203668 545413064 934751180 231049220 522995900 37351748 788253568 916125796 335393844 809440376 644321968 565320268 988694760 882646576 80668352 912925836 778799424 256115540 129093356 18321048 552946323 509401327 161055575 4513443 687121711 386767271 455826163 415389375 535102863 152901827 7...
input:
Eva 104 522995900 916125796 565320268 912925836 256115540 18321048 552946323 509401327 161055575 4513443 386767271 535102863 767348647 942911723 608592295 871632379 525811456 123898324 53355492 305542828 555243948 72456852 489295679 795013259 861631147 839357219 373749363 835509483 600099975 6273950...
output:
at
result:
ok single line: 'at'
Test #4:
score: 100
Accepted
time: 1ms
memory: 3784kb
input:
Alisa if 10000 503842924 757491266 141782843 236156593 872816374 282494629 8442020 266993146 431387022 916904904 536726783 139144491 897563232 774836180 933098003 649977536 426446349 179675381 976057133 192994215 912014737 649318938 281784409 433754655 579718136 693929967 122871398 670071564 6931916...
output:
240 757491266 872816374 266993146 431387022 649318938 122871398 442634974 243676786 588010630 785795102 517505794 464754170 863346010 301190466 150958294 251298334 778713694 78881542 710194038 700458618 604287955 913185639 910947719 748723315 996019435 439855447 404365083 767598455 321906115 4453322...
input:
Eva 126 872816374 431387022 122871398 243676786 517505794 464754170 863346010 301190466 150958294 251298334 710194038 700458618 604287955 913185639 748723315 996019435 404365083 767598455 321906115 445332275 882369003 519055079 589710131 664503723 288407711 107468395 592547842 67276146 454394394 303...
output:
if
result:
ok single line: 'if'
Test #5:
score: 100
Accepted
time: 1ms
memory: 4124kb
input:
Alisa eel 10000 419034977 506627655 360958666 682067714 313353796 431192689 370972316 850816320 352477330 854979535 29434206 87388648 151667551 275112589 276381040 773593631 79329274 524349772 621505949 536647547 733312990 826490666 279158815 667907864 31822931 739964904 109173174 245982571 49308618...
output:
360 419034977 431192689 275112589 621505949 990030457 981574825 834947829 435762309 444534177 807059193 280436057 232215721 432126409 647978585 62284933 528764529 909851637 750301425 222006225 175408665 768302487 634918683 937433371 584183763 260550679 874772131 343291467 242306983 302322127 1634735...
input:
Eva 162 419034977 431192689 275112589 621505949 990030457 981574825 834947829 444534177 232215721 62284933 528764529 750301425 175408665 768302487 260550679 874772131 343291467 302322127 101687855 202588609 732454157 432182669 540114157 40847169 743155325 7346859 481910979 607162147 847422539 723932...
output:
eel
result:
ok single line: 'eel'
Test #6:
score: 100
Accepted
time: 0ms
memory: 3952kb
input:
Alisa cat 10000 429813780 552131166 455681195 172400210 186885255 914570530 663421268 36309837 82538846 199527239 779087404 945586459 313674436 774210063 266763546 350462343 300825395 764967849 225852148 348059331 687517865 907327558 175393488 120346637 521382066 657709825 513564198 595042659 958293...
output:
360 552131166 172400210 914570530 82538846 266763546 907327558 521382066 513564198 586952698 773093186 297411586 79396446 554068442 164933830 697095270 656299846 918906 910498974 435863338 363919950 943695287 868934459 988323307 224838387 213291751 674985863 88169463 614349443 114695923 88373651 256...
input:
Eva 186 552131166 914570530 586952698 773093186 297411586 79396446 554068442 697095270 656299846 435863338 868934459 674985863 256496587 709141271 779600899 688926135 873034223 301369044 523213548 206629260 964309428 798748844 664837516 211565252 978188228 287325716 679732823 462558239 442202615 431...
output:
cat
result:
ok single line: 'cat'
Test #7:
score: 100
Accepted
time: 1ms
memory: 3908kb
input:
Alisa real 10000 293521636 162312678 673316503 632028874 710190218 188928780 96341370 555961165 289029081 884342732 350209747 664696652 979603608 961578721 626304467 295252288 164649292 651680084 873526805 958035183 683416223 968734513 278011061 293645402 432614810 140880339 131416445 264789129 7699...
output:
480 162312678 632028874 710190218 96341370 293645402 432614810 769981838 579383882 351717078 690909586 868745710 770083418 180034522 76301382 293385134 700399798 36831102 524163322 47523130 46338702 856555531 116389039 417140335 631714387 304220071 183652095 453818083 935243455 162825275 830144819 4...
input:
Eva 227 632028874 293645402 579383882 351717078 690909586 770083418 700399798 36831102 524163322 46338702 116389039 631714387 830144819 107663639 743930139 69022367 804842511 172439538 231434846 236930114 337204938 59413974 854933994 931593646 595632719 969140043 719950351 478526227 634360099 642785...
output:
real
result:
ok single line: 'real'
Test #8:
score: 100
Accepted
time: 1ms
memory: 3836kb
input:
Alisa queue 10000 728126608 503051601 532065691 649125958 544642619 764381278 99807076 262423745 184581551 580643211 497976687 957044918 859521736 259842796 62623567 113655749 841320664 634874725 723467845 260164633 827046454 235948513 311899723 949510236 35721445 834116947 179412731 28282810 623612...
output:
600 503051601 262423745 113655749 634874725 723467845 260164633 235948513 35721445 49945549 942170157 549898517 79504177 363885249 886430781 472733053 123022553 128584401 627459657 198989461 708750621 796797027 972656103 837483519 957743591 108751443 191352767 342132171 108180411 157974727 216355215...
input:
Eva 289 503051601 634874725 723467845 35721445 49945549 942170157 549898517 363885249 472733053 123022553 627459657 198989461 837483519 108751443 191352767 342132171 108180411 707450551 283848739 534711423 337342999 44553235 18076127 742695918 419035382 259914014 597895650 775192802 573830446 923988...
output:
queue
result:
ok single line: 'queue'
Test #9:
score: 100
Accepted
time: 1ms
memory: 4128kb
input:
Alisa cotton 10000 767299611 979529394 39913161 316465148 694895023 593011984 513519165 256775663 243632888 431633332 223892604 123184313 731920779 174332419 251563430 741176400 264757675 259841890 770005896 455626677 665021206 586325250 809408942 435300393 279787411 300849439 269112903 624785753 12...
output:
720 979529394 251563430 259841890 665021206 586325250 809408942 115798934 574708202 788062202 113188430 153160058 601941102 968971558 340439478 193443170 49837886 555128826 409578554 657772698 25108562 293695031 957087007 932475523 173784987 851598035 416114251 201932851 535054291 694127443 12510741...
input:
Eva 375 259841890 586325250 809408942 115798934 574708202 153160058 340439478 555128826 409578554 25108562 293695031 416114251 201932851 13089651 362184803 796144675 517337339 61842987 27027891 364822856 671531624 48656680 271263644 316162624 709983404 344440220 53847628 606524528 948884964 10744344...
output:
cotton
result:
ok single line: 'cotton'
Test #10:
score: 100
Accepted
time: 1ms
memory: 3840kb
input:
Alisa zealous 10000 376434163 440125154 36359799 555365557 137615418 418390680 941228977 110954051 329055139 583988117 559131676 132626782 895760470 719530007 512820379 305723222 801475792 62346534 469882058 287661911 705144238 572901668 802362723 837688880 958060440 510581655 720263881 611350316 73...
output:
840 555365557 941228977 583988117 720263881 571073749 337556133 183548533 132528777 389094853 764061989 2773185 350878329 461047469 609946269 339514157 240370041 121501357 118941281 84138621 251241361 552273007 227853531 919106955 742475755 818347963 467238823 115279247 490829767 448047931 592650871...
input:
Eva 441 720263881 132528777 389094853 2773185 350878329 240370041 121501357 118941281 84138621 227853531 919106955 742475755 818347963 467238823 448047931 592650871 614982135 695143739 222004711 96200299 796450638 817638182 308541234 994171258 140626638 452103994 289382626 686303822 218098794 815651...
output:
zealous
result:
ok single line: 'zealous'
Test #11:
score: 100
Accepted
time: 1ms
memory: 3912kb
input:
Alisa assessee 10000 482462411 406338426 451753105 172617988 400471250 928079398 658730375 743529855 457495918 236775269 240125765 65250594 38143537 418720947 501030902 999438611 564408934 190385769 793443047 278651171 7840279 9961946 894345874 313117394 434989606 163661658 177490635 189003645 42853...
output:
960 172617988 771488152 654659340 207965116 394175644 874827204 309413744 553941436 608431344 229005844 622468672 546036476 75053760 646879788 381441836 375484016 498431812 487597380 824128496 34192160 630677835 375692531 626403807 66158199 895713943 563773403 395154871 255605291 213229607 246466155...
input:
Eva 493 172617988 771488152 207965116 394175644 309413744 553941436 229005844 622468672 381441836 498431812 824128496 34192160 375692531 626403807 66158199 395154871 255605291 213229607 246466155 66927579 363498443 141748567 916171787 69319623 602375219 533436299 467752520 881350108 79554104 4589854...
output:
assessee
result:
ok single line: 'assessee'
Test #12:
score: 100
Accepted
time: 1ms
memory: 3900kb
input:
Alisa impatient 10000 456107448 565954838 600661924 423359702 440626827 441006466 795197649 443478311 770536535 709684383 92634315 850509440 341841933 416749530 775721850 324152699 710732825 975761495 731172339 389979549 818576792 935707276 703119428 671211209 695131944 227403587 89170727 832476447 ...
output:
1080 565954838 423359702 441006466 416749530 775721850 11246482 691351906 676994322 471793718 566865598 430249178 16765370 642530774 832993206 155303726 359669230 403210182 793106258 744501902 770679154 95852483 558223591 888697539 163037555 846922275 249696607 901658535 280539843 451923907 46315223...
input:
Eva 553 416749530 676994322 16765370 155303726 793106258 95852483 888697539 249696607 901658535 969106835 265196799 833585347 643826343 267578723 573136654 39950890 869107482 655795222 36066722 217073026 825703706 377737486 604838006 470041278 140342082 621058287 736957603 614867463 534169367 427136...
output:
impatient
result:
ok single line: 'impatient'
Test #13:
score: 100
Accepted
time: 1ms
memory: 3804kb
input:
Alisa bookkeeper 10000 390710414 631530615 963220561 501450406 351277306 602248210 85957489 881562188 450691883 138708871 331455659 745743962 340297641 243932822 682142300 643860072 962255409 429078261 419732560 641785179 681729629 753830142 211789688 516575649 543437870 822918258 88310983 576798802...
output:
1200 963220561 85957489 340297641 962255409 429078261 681729629 516575649 4787669 934790601 971377381 550197009 828016589 654233229 518303405 840448809 34950233 886831585 337330761 986274913 477278121 513869303 288219867 444999427 547034839 313986411 760589715 735131383 668536863 801862039 364993487...
input:
Eva 593 963220561 85957489 429078261 681729629 4787669 934790601 971377381 828016589 654233229 518303405 840448809 34950233 337330761 986274913 477278121 513869303 444999427 760589715 735131383 364993487 26528651 582698819 998814147 13739071 468026631 123521972 393060828 806987960 519057644 47679761...
output:
bookkeeper
result:
ok single line: 'bookkeeper'
Test #14:
score: 100
Accepted
time: 0ms
memory: 3948kb
input:
Alisa copyrighted 10000 739557444 330252893 964326887 887910648 165070809 903235717 652009792 814643692 630901069 585765565 101206711 559866628 791788710 330613970 309583309 642328357 778635645 120527334 116527570 729858307 563138990 220835202 217041534 894279818 808177617 556013181 774973167 510000...
output:
1320 791788710 330613970 120527334 116527570 563138990 220835202 217041534 894279818 510000102 520463154 786885062 2747070 674716490 302582674 525014230 76847134 914258502 798628906 474977386 129252090 816108275 583718851 726241283 939972167 590768799 373982919 773414927 217440627 860269387 17587350...
input:
Eva 657 791788710 120527334 116527570 220835202 217041534 894279818 510000102 520463154 786885062 2747070 302582674 914258502 474977386 816108275 583718851 590768799 773414927 217440627 974470595 659150431 449308320 749285756 55618740 49251316 213276948 960171952 589604604 481729020 771516259 477809...
output:
copyrighted
result:
ok single line: 'copyrighted'
Test #15:
score: 100
Accepted
time: 1ms
memory: 4092kb
input:
Alisa squeezeboxes 10000 157094287 809151185 885591341 968810165 943658241 456220129 251205115 963575422 527082156 400831284 639279124 478290197 149013822 155506716 389372449 193333788 390911465 699989485 515969381 745192528 146306211 938174688 227793494 161046218 477570505 9894134 499988384 8103411...
output:
1440 527082156 400831284 639279124 155506716 193333788 745192528 938174688 499988384 810341108 533347828 822964536 217736152 741533048 611145652 776113044 324276292 616414004 952634384 556159804 354247660 410148463 675829491 664333503 913790287 928728651 685528547 445811287 752484247 771904751 93880...
input:
Eva 716 639279124 193333788 822964536 217736152 776113044 324276292 952634384 410148463 664333503 913790287 445811287 771904751 97230971 891272771 907090107 626697179 753785395 681155376 924942992 948746524 972313912 495529236 539862812 568967180 911781300 906103172 199594724 133541656 302703519 911...
output:
squeezeboxes
result:
ok single line: 'squeezeboxes'
Test #16:
score: 100
Accepted
time: 1ms
memory: 3916kb
input:
Alisa embarrassment 10000 863907095 50900552 940385214 923016987 195384280 149329830 157040498 699365836 728151611 802183368 964476670 766353465 883068628 140698617 576455081 638837097 462505317 428012304 717738800 611701562 107433485 338374166 40322202 553171030 361969314 458428199 482891314 240678...
output:
1560 766353465 140698617 576455081 638837097 462505317 107433485 962465161 755482241 762857993 100448153 497452101 957069609 782283945 103697057 935457093 187683409 509062117 850105641 282049389 108135557 559766559 995340371 947456367 773741627 571035083 642923319 695741663 170148671 566456759 75792...
input:
Eva 784 766353465 576455081 638837097 962465161 755482241 782283945 103697057 187683409 509062117 282049389 108135557 559766559 995340371 947456367 571035083 170148671 757924143 722839735 81859635 638226087 98250179 699406189 439762961 424085309 483552845 990865249 457825353 933436905 699331133 7367...
output:
embarrassment
result:
ok single line: 'embarrassment'
Test #17:
score: 100
Accepted
time: 1ms
memory: 3840kb
input:
Alisa facelessnesses 10000 358815078 441702436 357306969 876232230 829173472 387236074 319588548 22588795 57315925 261669197 860052977 970248515 700859096 727417383 897121799 236588200 741288488 304680816 973597730 899737234 818651018 844515671 847720011 951605044 907126697 920420424 536760796 74546...
output:
1680 358815078 876232230 387236074 973597730 899737234 818651018 833618354 971606966 617913038 337815722 308996946 949057902 451864806 983016862 763090454 733487378 228034270 332120710 214887554 78110294 210219047 897421507 655945379 149575155 391901159 10468443 667317467 11984355 923661511 46810117...
input:
Eva 822 358815078 876232230 387236074 973597730 818651018 983016862 733487378 210219047 897421507 391901159 10468443 923661511 421128031 108935469 18759073 358223509 701717793 152313861 893584311 504109851 64864775 478347791 484536795 22701559 46021251 254497215 718130807 913536807 799425436 4793949...
output:
facelessnesses
result:
ok single line: 'facelessnesses'
Test #18:
score: 100
Accepted
time: 1ms
memory: 3848kb
input:
Alisa oxyphenbutazone 10000 798496889 591831196 689866887 718516037 939088236 750029536 32504325 524026335 454108713 535099022 19575145 267787878 714460751 824215363 128955594 411401580 370729264 520608037 586051245 545847182 156497495 298980033 263178383 961267578 735195675 768423754 868450776 3886...
output:
1800 535099022 267787878 128955594 545847182 961267578 768423754 501626122 283734934 701630638 390756734 588794058 258333682 338167678 591652418 426240018 645084266 635983842 396199322 226590546 274013650 785016479 633975419 450715647 892133927 738284531 311583667 701872567 261069307 291862955 25193...
input:
Eva 907 267787878 128955594 545847182 768423754 588794058 338167678 226590546 274013650 450715647 892133927 738284531 311583667 261069307 416636763 899223731 462017019 462515021 191880469 527289793 626500565 752968997 397016905 641914141 455275393 531009505 658048525 208865387 430970535 676545659 50...
output:
oxyphenbutazone
result:
ok single line: 'oxyphenbutazone'
Test #19:
score: 100
Accepted
time: 1ms
memory: 4128kb
input:
Alisa uncopyrightable 10000 40150886 763706492 122394813 807704159 536297792 750987557 115171123 810353340 610211761 244154724 969998196 16564183 375564698 574704451 798113067 379418611 35315906 832211290 55151894 916263535 105649044 475634989 856990225 797136254 921316465 143597900 736016212 474798...
output:
1800 40150886 375564698 35315906 832211290 55151894 797136254 670541334 620519062 820982238 42629106 1709262 718393762 383710682 709674454 326495862 205179962 339071434 196776078 820084462 588381142 33810119 991168295 700093219 951549071 739239219 14111751 760444231 504839851 13175643 564629627 7374...
input:
Eva 854 797136254 670541334 620519062 820982238 1709262 718393762 339071434 196776078 820084462 33810119 991168295 14111751 13175643 737472495 87925623 687380859 575754751 21067531 593796875 213276252 358411288 822259864 711967536 681361772 584857280 369908484 574923544 142235812 411624176 705802604...
output:
uncopyrightable
result:
ok single line: 'uncopyrightable'
Test #20:
score: 100
Accepted
time: 1ms
memory: 3916kb
input:
Alisa decommissioning 10000 382835686 679002417 815396195 614990250 316953010 510954891 755838644 474793416 636240104 959829812 549408397 315423690 730153926 758389557 768870797 263724012 174045815 452197876 232033487 368630330 17284226 524695595 234115558 27688098 683706858 79961009 751009094 73156...
output:
1800 755838644 474793416 636240104 959829812 263724012 452197876 166029760 810850136 937040072 225040312 440402836 398713956 305864924 155417828 740142308 23189112 241303912 159817552 793312080 331646120 335317559 911763215 822035995 404535543 104693851 703234727 95023955 400995387 56476419 2773043 ...
input:
Eva 899 755838644 474793416 636240104 263724012 452197876 166029760 810850136 225040312 440402836 398713956 305864924 155417828 740142308 159817552 404535543 104693851 703234727 10770883 87408713 322889649 616410061 460503793 443684317 981464071 510159295 496582007 606068891 174058551 656637691 5205...
output:
decommissioning
result:
ok single line: 'decommissioning'
Test #21:
score: 100
Accepted
time: 1ms
memory: 4128kb
input:
Alisa kindheartedness 10000 184401044 43479672 626522598 125256287 393936792 796090108 623375502 964392055 745191771 685632155 122244894 795113405 154816720 751814796 908762470 986021242 828628967 790557756 662677460 258829873 931275678 435309418 514192615 132684947 462635436 502645052 66049087 6164...
output:
1800 795113405 258829873 616488013 267474921 772534109 948580685 204085661 183047469 818691457 474796845 422966785 361256181 802964777 74426045 322602165 14646385 850765569 738081165 804127561 276463973 521208967 817316067 346233759 335356291 92592807 394584923 411529647 201979115 516321723 42484904...
input:
Eva 903 795113405 616488013 267474921 948580685 204085661 474796845 361256181 74426045 738081165 804127561 276463973 521208967 817316067 346233759 335356291 92592807 201979115 516321723 438886271 292647679 69479459 869136631 851910779 862435723 936905123 409416543 633518160 362073740 44065860 222494...
output:
kindheartedness
result:
ok single line: 'kindheartedness'
Test #22:
score: 100
Accepted
time: 1ms
memory: 3972kb
input:
Alisa appropriateness 10000 330513032 853761192 471913635 973083553 210304782 192323109 93400951 312902092 218527177 220141550 772849545 474554266 236840727 992261006 242750804 48564115 825470066 137963562 557516732 280829723 624831146 479324406 32347115 449750828 375369355 14352941 431101170 936947...
output:
1800 330513032 853761192 312902092 242750804 557516732 449750828 940446192 365351952 194748920 334277004 226750152 163330548 381076200 153633660 133229384 547548140 555056296 130573888 763525912 227110940 292982711 742301359 942477647 574706031 721772811 827386067 408923479 213353523 34603843 290142...
input:
Eva 910 312902092 242750804 449750828 334277004 163330548 381076200 153633660 133229384 555056296 574706031 721772811 827386067 408923479 922294283 239152611 51143856 574704604 688400428 223805900 330551788 289861632 733743776 748603187 920276831 818081371 716216007 102838735 257183907 265159851 119...
output:
appropriateness
result:
ok single line: 'appropriateness'