QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#294514#4827. Message Made of Noiseucup-team1525#AC ✓2ms4144kbC++201.2kb2023-12-30 14:18:002023-12-30 14:18:02

Judging History

你现在查看的是最新测评结果

  • [2023-12-30 14:18:02]
  • 评测
  • 测评结果:AC
  • 用时:2ms
  • 内存:4144kb
  • [2023-12-30 14:18:00]
  • 提交

answer

#include <bits/stdc++.h>
using namespace std;
using ll = __int128_t;

const int N = 1e4 + 100;
const int B=1000000000/75;
char s[N+5];
int f[N+5];
int n;
int a[N+5];
void work_alisa() {
    scanf("%s",s);
    memset(f,0,sizeof f);
    for(int i=0;i<15;i++)
        if(s[i]>='a'){
            int x=s[i]-'a'+1;
            for(int j=0;j<5;j++,x>>=1)
                if(x&1) f[i*5+j]=1;
        }
    scanf("%d",&n);
    for(int i=1;i<=n;i++){
        scanf("%d",&a[i]);
        if(!f[a[i]/B]){
            i--; n--;
        }
    }
    printf("%d\n",n);
    for(int i=1;i<=n;i++)
        printf("%d ",a[i]);
    puts("");
}

void work_eva() {
    scanf("%d",&n);
    memset(f,0,sizeof f);
    for(int i=1;i<=n;i++){
        scanf("%d",&a[i]);
        f[a[i]/B]=1;
    }
    for(int i=0;i<15;i++){
        s[i]=0;
        for(int j=4;j>=0;j--)
            s[i]=(s[i]<<1)|f[i*5+j];
        //printf("%d ",s[i]);
        if(s[i]>0) s[i]+='a'-1;
    }
    printf("%s\n",s);
}
int main() {
    string who;
    cin >> who;
    if (who[0] == 'A')
        work_alisa();
    else if (who[0] == 'E')
        work_eva();
    return 0;
}

详细

Test #1:

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

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:

1312
16249270 16049452 259074194 270621761 288500028 220543227 278824512 223222498 54563393 669886 24637497 256633293 265316057 2534511 316355772 62904480 258275276 308861325 59866724 6368928 133132523 216703396 215309603 4398577 6715545 120288555 7856746 64834212 15369962 268140735 308667227 785059...

input:

Eva
683
220543227 54563393 669886 59866724 133132523 6715545 15369962 268140735 139122870 65547185 54235136 3385791 131064265 61534582 131833659 18089312 255052965 306769612 5225356 9306817 9017626 313465576 215243624 5539401 219851276 278462685 224733432 269159210 138056003 25781670 292059782 26376...

output:

spark

result:

ok single line: 'spark'

Test #2:

score: 100
Accepted
time: 1ms
memory: 3832kb

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:

1504
67159452 115576737 47770507 159696911 179929327 166469421 145505274 18820398 66827410 100964799 149622747 17800139 144917315 119092421 152884009 147511061 70052126 141055273 118445835 150992024 86907784 162569582 109700412 64337224 69767978 41654257 86888478 169439344 52387307 46182630 23201267...

input:

Eva
751
115576737 159696911 179929327 145505274 18820398 149622747 119092421 70052126 150992024 86907784 41654257 86888478 169439344 52387307 83967867 135898642 155365852 61823143 90076539 170464611 61554879 59324319 61022066 69414533 65148428 182698224 157082984 153718191 147878713 58390309 6746313...

output:

zoo

result:

ok single line: 'zoo'

Test #3:

score: 100
Accepted
time: 1ms
memory: 3820kb

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:

411
129093356 4513443 100535228 97468360 992833 123898324 105133321 124745992 9755554 121874537 4489963 126497387 130945553 1578632 129176746 130260677 959707 99573798 2861161 124349728 3621121 128207607 125913267 9804385 126469598 103505428 125580360 127755395 6494029 98872751 93455852 2034159 1202...

input:

Eva
205
4513443 992833 124745992 9755554 4489963 126497387 129176746 99573798 3621121 128207607 125913267 9804385 103505428 125580360 6494029 98872751 93455852 2034159 120283462 117411 105654692 99363539 10358511 99239132 96715805 124083962 2995411 105166342 106197813 8102188 93436580 8730711 111193...

output:

at

result:

ok single line: 'at'

Test #4:

score: 100
Accepted
time: 1ms
memory: 4116kb

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:

504
8442020 43222992 97764215 98801882 44419495 3039158 52560372 46634694 2085401 42130043 105938076 101802943 7908718 486404 45838351 2320078 2905351 93609677 106513012 89192263 52995564 6913591 104016823 104759162 9194865 94377621 100386118 6947984 52359505 94282336 49328640 49764127 94564930 8837...

input:

Eva
259
98801882 3039158 52560372 2085401 105938076 486404 45838351 2320078 2905351 93609677 52995564 104016823 104759162 94377621 6947984 52359505 49328640 49764127 94564930 88378792 1246170 7842701 48936016 48186570 94696107 93187928 2567756 102595520 91125452 45349952 93640459 86033897 89770818 5...

output:

if

result:

ok single line: 'if'

Test #5:

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

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:

846
29434206 79329274 31822931 33237607 2543460 160855644 173214751 71674366 12244358 175408665 10429916 184961737 163473519 165574825 101687855 161725328 35657502 164155563 70696095 180350520 7346859 183819000 7885188 170861303 8825215 79066161 27606614 177583885 102327785 162635425 93645714 738862...

input:

Eva
434
79329274 71674366 175408665 10429916 184961737 101687855 161725328 164155563 180350520 7346859 183819000 7885188 170861303 79066161 27606614 93645714 73886210 5279053 104007833 106510327 184933706 35794175 182907136 100917687 162319331 175928086 183655124 32858961 167438633 7499979 99655027 ...

output:

eel

result:

ok single line: 'eel'

Test #6:

score: 100
Accepted
time: 2ms
memory: 4076kb

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:

685
172400210 186885255 199527239 79396446 162209287 164933830 918906 78337903 188415308 26519921 3434543 18742617 170924428 9525660 198972318 10615276 171264146 169531944 73397036 24484223 67470127 8561344 8679122 193389626 77997574 77404346 193526246 187830523 168810042 8178668 15568283 1512663 19...

input:

Eva
366
164933830 78337903 188415308 9525660 198972318 24484223 193389626 77404346 193526246 187830523 168810042 15568283 1512663 167796477 75617106 172370176 73373761 190843722 160605207 1030557 26632467 5596979 165719718 195117425 66765424 187048441 11442880 1125582 160985994 21975210 14133827 186...

output:

cat

result:

ok single line: 'cat'

Test #7:

score: 100
Accepted
time: 1ms
memory: 4060kb

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:

924
96341370 140880339 134063852 249681691 76301382 66994825 228558413 146032666 69448354 61778549 249453093 146437752 13975889 69022367 231434846 144125264 14303191 241125244 236930114 70710663 78636977 59413974 230301529 60535214 139174311 55134468 69308956 103086460 233157850 70691851 59449008 24...

input:

Eva
440
134063852 76301382 66994825 146032666 69448354 249453093 13975889 69022367 231434846 144125264 78636977 60535214 103086460 70691851 59449008 144138625 234550278 242349042 233021801 135119799 75223715 67227582 56703738 101011305 145997824 96558270 103638048 20295050 22155607 241658361 6181812...

output:

real

result:

ok single line: 'real'

Test #8:

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

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:

1521
99807076 262423745 259842796 62623567 260164633 235948513 138347607 79504177 123022553 128584401 134570058 268844882 123962414 304533077 126939597 99208824 126708582 11987759 144859893 55359037 259914014 274780058 66663633 255366336 269163911 104997919 75501831 102977328 212810339 264272620 239...

input:

Eva
761
99807076 259842796 260164633 79504177 268844882 126939597 99208824 126708582 274780058 255366336 269163911 104997919 75501831 212810339 138331051 306447388 79004241 69622464 66287126 256820492 204658969 144098684 202397298 104335297 10107509 123475358 294217573 262976474 6369269 201767092 20...

output:

queue

result:

ok single line: 'queue'

Test #9:

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

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:

2251
316465148 256775663 264757675 259841890 279787411 300849439 269112903 229198005 115798934 375641873 15593193 113188430 229579945 85622307 116236035 314268564 193443170 25820105 278915168 227495077 290812771 309368561 25108562 293695031 73154814 84821562 269446056 13089651 362184803 281835262 38...

input:

Eva
1130
316465148 259841890 300849439 269112903 229579945 314268564 278915168 227495077 309368561 25108562 73154814 84821562 13089651 281835262 381035560 378663287 198272701 119313960 80178097 275367430 195756426 271263644 8715562 290397932 262187764 166875222 102853398 164040280 75709465 378912440...

output:

cotton

result:

ok single line: 'cotton'

Test #10:

score: 100
Accepted
time: 1ms
memory: 3892kb

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:

2336
137615418 418390680 305723222 62346534 287661911 417567479 45895518 337556133 389094853 294674063 463400775 461047469 69651412 454924068 346007695 252437847 302614874 334028792 339514157 240370041 270820374 251241361 250321425 272372984 227853531 245911196 145865734 100217556 104277613 25166807...

input:

Eva
1173
418390680 337556133 461047469 69651412 454924068 339514157 270820374 250321425 100217556 251668074 57753101 287362325 56680935 390661386 300966398 16030417 341449059 409151669 140626638 286597590 236425229 55490759 344513913 316666724 312689979 336318835 340029619 317786507 367308746 388943...

output:

zealous

result:

ok single line: 'zealous'

Test #11:

score: 100
Accepted
time: 1ms
memory: 3824kb

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:

2515
406338426 400471250 236775269 501030902 190385769 278651171 7840279 9961946 434989606 189003645 287235143 411058199 410590529 159178109 207965116 394175644 138588621 202490045 193149101 356134762 229005844 335567045 75053760 498431812 431582349 132092985 287581566 291423501 198068786 146536673 ...

input:

Eva
1272
406338426 236775269 501030902 190385769 278651171 7840279 434989606 189003645 410590529 159178109 207965116 335567045 75053760 204258224 395154871 138137586 120159289 213229607 276838394 66927579 141748567 500697688 132314565 280990518 324771737 405393510 427993358 192552870 12202297 124257...

output:

assessee

result:

ok single line: 'assessee'

Test #12:

score: 100
Accepted
time: 1ms
memory: 4108kb

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:

2422
565954838 341841933 324152699 11246482 51831295 115940571 501318928 302386475 566865598 430249178 99854281 403210182 434316101 433851013 7327541 95852483 212220624 434750957 431513958 49052841 496250092 410324181 46315223 487725484 408112753 40159499 76880692 412089817 373940356 573136654 51283...

input:

Eva
1198
324152699 115940571 302386475 430249178 433851013 7327541 95852483 212220624 431513958 49052841 487725484 412089817 373940356 573136654 512830588 562993508 569815411 508150984 190832243 405536664 377737486 111934685 295140277 432816758 375641353 488206665 114661288 403838138 500691041 51644...

output:

impatient

result:

ok single line: 'impatient'

Test #13:

score: 100
Accepted
time: 1ms
memory: 4084kb

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:

3131
85957489 138708871 340297641 243932822 429078261 211789688 543437870 88310983 207098164 311048788 290490664 654233229 140676032 430657496 428156490 213112123 540569375 337330761 337797375 249034334 288219867 210490704 620365404 273152656 215492648 273182854 141678668 313986411 244338765 5303962...

input:

Eva
1579
138708871 429078261 211789688 311048788 290490664 140676032 430657496 213112123 540569375 337330761 210490704 620365404 273152656 244338765 530396280 23090124 411636286 311526170 364993487 169828205 527491980 526234230 430429171 104258339 657959430 626584789 290961581 151340761 568187197 13...

output:

bookkeeper

result:

ok single line: 'bookkeeper'

Test #14:

score: 100
Accepted
time: 1ms
memory: 3912kb

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:

3031
330252893 630901069 101206711 330613970 116527570 563138990 510000102 263757925 205250741 636946200 598284472 2747070 199634544 253971064 290176285 608323224 408988247 570934109 76847134 199126224 13712234 257347141 594097401 285557856 570621624 519391961 591480972 256210862 386171682 590768799...

input:

Eva
1493
330252893 330613970 205250741 636946200 598284472 2747070 199634544 608323224 408988247 570934109 257347141 594097401 519391961 590768799 289346702 516771279 567683497 560373676 17861689 567087681 339838956 386015243 570096025 595717415 111714123 73014043 98313261 248714093 117971925 286318...

output:

copyrighted

result:

ok single line: 'copyrighted'

Test #15:

score: 100
Accepted
time: 1ms
memory: 4048kb

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:

3862
400831284 389372449 193333788 390911465 699989485 745192528 146306211 227793494 161046218 9894134 533347828 643559595 675927206 667746143 122087182 739750405 741533048 759166806 733774446 556159804 387012374 354247660 706597473 410148463 393973728 675829491 664333503 19472364 693537757 41297821...

input:

Eva
1986
389372449 699989485 146306211 227793494 161046218 9894134 533347828 675927206 667746143 122087182 739750405 741533048 733774446 556159804 706597473 675829491 693537757 412978217 561227021 269957316 493142946 78270217 374240386 432452201 486371170 758232802 228694472 70251997 646862924 14553...

output:

squeezeboxes

result:

ok single line: 'squeezeboxes'

Test #16:

score: 100
Accepted
time: 1ms
memory: 3840kb

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:

3738
863907095 149329830 157040498 699365836 766353465 638837097 611701562 107433485 553171030 482891314 755482241 635536407 762857993 747463522 100448153 762511270 701955747 600996322 388993603 782283945 98435800 103697057 10334160 27962175 698108279 282049389 528544460 862668903 753778407 10813555...

input:

Eva
1858
863907095 766353465 638837097 611701562 482891314 755482241 762857993 600996322 388993603 10334160 27962175 282049389 837831342 559766559 351452352 355094606 774734801 642923319 695741663 769419980 8029109 108678453 612546943 526096826 350957528 635881006 289084829 548504394 699406189 71444...

output:

embarrassment

result:

ok single line: 'embarrassment'

Test #17:

score: 100
Accepted
time: 2ms
memory: 4124kb

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:

4408
876232230 829173472 319588548 22588795 727417383 236588200 741288488 304680816 920420424 74546605 19605240 833618354 318785704 204867309 26504236 369493539 337815722 308996946 299859603 230292941 751936844 797695435 520766480 733487378 149469711 228034270 78110294 210219047 882339501 308303722 ...

input:

Eva
2192
876232230 829173472 319588548 236588200 74546605 318785704 26504236 337815722 308996946 299859603 230292941 751936844 520766480 149469711 228034270 78110294 210219047 884611849 138179955 675261841 492289963 16753234 603039284 832165590 68655846 683888293 203985028 747219685 557306188 522129...

output:

facelessnesses

result:

ok single line: 'facelessnesses'

Test #18:

score: 100
Accepted
time: 1ms
memory: 3864kb

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:

4681
798496889 591831196 939088236 750029536 32504325 535099022 19575145 824215363 128955594 370729264 545847182 263178383 961267578 784846824 107990211 748000104 483303351 892164348 972151240 435738668 963966189 538045657 919819551 834111021 27010837 17891156 6692665 334690271 588794058 679680736 2...

input:

Eva
2300
591831196 750029536 32504325 535099022 824215363 128955594 545847182 263178383 784846824 107990211 748000104 483303351 892164348 972151240 435738668 963966189 538045657 919819551 17891156 6692665 679680736 338167678 591652418 756030795 636585308 426240018 788803593 445897889 37153577 218411...

output:

oxyphenbutazone

result:

ok single line: 'oxyphenbutazone'

Test #19:

score: 100
Accepted
time: 2ms
memory: 4096kb

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:

4242
536297792 115171123 244154724 969998196 375564698 379418611 35315906 55151894 916263535 105649044 475634989 143597900 736016212 474798923 963237867 470797141 893791172 155378383 386884791 820982238 221022920 95155839 399761119 55631517 1709262 100792632 37922164 456458163 383710682 62583692 422...

input:

Eva
2103
536297792 969998196 375564698 55151894 916263535 474798923 470797141 155378383 386884791 37922164 456458163 422010627 34082263 746332635 339071434 820084462 8963657 139539412 912083012 376316933 905544757 938907480 13175643 536238821 208812784 564629627 202633310 739022246 737472495 8792562...

output:

uncopyrightable

result:

ok single line: 'uncopyrightable'

Test #20:

score: 100
Accepted
time: 2ms
memory: 4144kb

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:

5352
382835686 679002417 316953010 755838644 474793416 959829812 549408397 315423690 758389557 768870797 452197876 232033487 368630330 524695595 234115558 27688098 683706858 79961009 751009094 69615957 215653354 201790745 850228149 601535347 204982757 810850136 937040072 809059095 521887406 22504031...

input:

Eva
2695
316953010 549408397 452197876 524695595 683706858 69615957 215653354 201790745 850228149 601535347 937040072 809059095 521887406 440402836 776795449 482572263 671528414 900474642 337917699 31296145 851075439 402045835 944773786 593726018 603300054 689775963 217523046 96863050 249913667 7797...

output:

decommissioning

result:

ok single line: 'decommissioning'

Test #21:

score: 100
Accepted
time: 1ms
memory: 3860kb

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:

4113
184401044 43479672 154816720 751814796 828628967 931275678 73015482 408192 772534109 870080292 948580685 402780935 107260788 183047469 766124407 527873723 114077906 67377887 831754311 531406076 363236703 361256181 565956787 802964777 74426045 14646385 346531542 810179555 760070767 959294452 804...

input:

Eva
2084
43479672 154816720 828628967 931275678 772534109 870080292 948580685 183047469 67377887 531406076 361256181 802964777 346531542 760070767 959294452 521208967 335356291 148031466 938418505 758837834 69479459 345243175 8220885 869136631 152864696 11882438 936905123 523899417 588346779 5210474...

output:

kindheartedness

result:

ok single line: 'kindheartedness'

Test #22:

score: 100
Accepted
time: 1ms
memory: 3864kb

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:

3916
471913635 192323109 312902092 218527177 220141550 772849545 474554266 992261006 280829723 479324406 936947858 940446192 952021989 766647603 194748920 926688721 679091357 417894249 673008614 627589871 665389255 999391759 667713849 469278711 319481831 387567438 7057526 764934461 301532391 1332293...

input:

Eva
1972
471913635 192323109 312902092 220141550 992261006 479324406 940446192 952021989 766647603 679091357 665389255 999391759 667713849 469278711 319481831 387567438 133229384 694348166 926392503 874490486 546537989 127897135 679826002 763525912 292982711 761784270 827386067 877841920 213353523 9...

output:

appropriateness

result:

ok single line: 'appropriateness'