QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#84686#4827. Message Made of NoiseDr_GilbertAC ✓4ms4540kbC++141.2kb2023-03-06 16:56:032023-03-06 16:56:23

Judging History

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

  • [2023-08-10 23:21:45]
  • System Update: QOJ starts to keep a history of the judgings of all the submissions.
  • [2023-03-06 16:56:23]
  • 评测
  • 测评结果:AC
  • 用时:4ms
  • 内存:4540kb
  • [2023-03-06 16:56:03]
  • 提交

answer

#include <bits/stdc++.h>
using namespace std;
namespace alisa{
	const int N=1e4+10;
	int a[N],nxt[N][27];
	int main(){
		string s;int n,pos=1,lst=-1;cin>>s>>n;
		for (int i=1;i<=n;i++) cin>>a[i];
		for (int i=0;i<27;i++) nxt[n+1][i]=n+1;
		for (int i=n;i>=1;i--){
			for (int j=0;j<27;j++){
				if (a[i]%27!=j) nxt[i][j]=nxt[i+1][j];
				else nxt[i][j]=i;
			}
		}vector<int> vec;
		for (int i=0;i<(int)s.size();i++){
			int tar=-1;
			if (!i||s[i]!=s[i-1]||lst==26){
				tar=s[i]-'a';
			}else tar=26;
			for (int i=1;i<=22;i++){
				if (a[pos]%27!=tar) pos=nxt[pos][tar];
				vec.emplace_back(a[pos]);pos++;
				assert(pos<=n);
			}lst=tar;
		}cout<<vec.size()<<endl;
		for (int x:vec) cout<<x<<' ';
		cout<<endl;return 0;
	}
}
namespace eva{
	const int N=1e4+10;
	int a[N];
	int main(){
		int n;string s;cin>>n;
		for (int i=1;i<=n;i++){
			cin>>a[i];
		}for (int i=1;i<=n;i++){
			if (i==1||a[i]%27!=a[i-1]%27){
				if (a[i]%27==26) s+=s.back();
				else s+='a'+a[i]%27;
			}
		}cout<<s<<endl;return 0;
	}
}
int main(){
	ios::sync_with_stdio(0);
	cin.tie(nullptr);cout.tie(nullptr);
	string s;cin>>s;
	if (s=="Alisa") return alisa::main();
	else return eva::main();
}

Details

Tip: Click on the bar to expand more detailed information

Test #1:

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

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:

110
76365900 774838701 220543227 964868778 539813691 153415449 955107603 675395271 120288555 3385791 887100165 717590628 180893565 463899330 781616052 451134810 675013896 249663726 890635977 686444130 50040171 165308166 502406619 338427492 528748224 480491043 432942882 342936384 428147034 37247622 6...

input:

Eva
50
774838701 964868778 153415449 955107603 120288555 3385791 887100165 717590628 675013896 249663726 50040171 480491043 428147034 790751553 221537391 96629478 181368762 247447698 77174493 730413450 356594508 874150218 687892365 967204395 160949727 567611253 425294496 640988856 11355255 531721746...

output:

spark

result:

ok single line: 'spark'

Test #2:

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

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:

66
562986097 523223494 631726585 423355381 405570886 397922731 761583652 659042782 574674991 536156980 495980197 750621247 709124083 984815899 362411953 896969887 735139501 31235272 236835925 175352038 592582444 698386075 661979399 703105826 797171720 483857537 601792133 152634524 216866228 75935214...

input:

Eva
31
405570886 397922731 659042782 574674991 536156980 495980197 709124083 984815899 735139501 236835925 175352038 483857537 152634524 392209952 821566625 343368491 20209595 120622190 317723405 145448744 481274540 602365895 649277558 912457601 295911602 667938014 67297985 973821554 681406343 41911...

output:

zoo

result:

ok single line: 'zoo'

Test #3:

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

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:

44
912925836 341679249 264617901 744405525 615429576 141387012 955640241 373749363 861298137 600099975 819508401 29075895 923321133 921211326 527251221 447483690 563938065 310444866 819374238 416862504 982205406 296216298 907120396 413548678 212836564 474653026 49696570 578515033 167348287 667729864...

input:

Eva
24
341679249 264617901 744405525 615429576 141387012 955640241 600099975 29075895 923321133 527251221 563938065 310444866 296216298 907120396 413548678 474653026 223599169 872957620 242735095 957443266 702381475 241867396 446303080 289348516 

output:

at

result:

ok single line: 'at'

Test #4:

score: 100
Accepted
time: 3ms
memory: 4540kb

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:

44
774836180 933098003 488034647 785795102 892199483 773819009 34188326 435772124 72738926 214487711 518360021 866241008 530962595 478246742 533495816 237068243 596965121 792230849 417477707 749851298 649282346 116280854 984442874 722226002 978584873 433155335 513792185 459353597 586312403 120504137...

input:

Eva
24
773819009 34188326 435772124 72738926 214487711 518360021 866241008 237068243 596965121 792230849 417477707 749851298 984442874 433155335 513792185 459353597 120504137 803465492 21682814 974644007 967271927 885471512 44263184 156631757 

output:

if

result:

ok single line: 'if'

Test #5:

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

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:

66
313353796 275112589 979390822 981574825 173214751 71674366 752102743 955994674 260550679 947010100 631813558 326781652 87633337 429835684 459558796 45484231 883690267 227831593 220893484 406542325 151792897 295325005 662773724 136412882 104007833 148967369 448024526 624418010 534069962 330916589 ...

input:

Eva
30
752102743 955994674 260550679 631813558 326781652 87633337 459558796 883690267 406542325 151792897 136412882 624418010 534069962 656275931 117740492 930913424 99138599 380680829 846833507 265380812 882359849 56872163 538198301 899165675 868422449 985356857 910521794 824905496 423080642 162769...

output:

eel

result:

ok single line: 'eel'

Test #6:

score: 100
Accepted
time: 4ms
memory: 4424kb

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:

66
663421268 149356145 769131641 86882303 614349443 376370012 254059337 372796670 515367497 24484223 973652591 875584838 211565252 548009849 117107831 150265343 15568283 706316222 279790472 929793143 281230922 408570455 213893244 536590008 412308495 823094352 594546480 190843722 160605207 931892796 ...

input:

Eva
33
663421268 769131641 86882303 376370012 24484223 548009849 117107831 150265343 15568283 706316222 279790472 929793143 213893244 536590008 412308495 160605207 884670390 824344722 667351278 107250453 824801832 378090315 349913574 62694316 687543760 951859045 766546651 173437057 228371635 3400844...

output:

cat

result:

ok single line: 'cat'

Test #7:

score: 100
Accepted
time: 4ms
memory: 4448kb

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:

88
873526805 293645402 296052263 78636977 950791490 456412094 357099506 328981301 429627473 296003960 87513146 943025453 695644811 167288291 643264919 163893554 968774867 216011978 761433173 361145159 294059501 864848357 658650775 952880035 788373085 6246292 335883730 490114939 519377701 891832441 9...

input:

Eva
52
293645402 78636977 456412094 328981301 429627473 296003960 87513146 943025453 643264919 163893554 968774867 216011978 294059501 658650775 952880035 335883730 891832441 920583445 418543555 761888731 2290576 524102539 168142531 697155421 547738335 859188681 515458215 819256626 158474610 8507126...

output:

real

result:

ok single line: 'real'

Test #8:

score: 100
Accepted
time: 3ms
memory: 4500kb

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:

110
841320664 311899723 472733053 601092052 87813088 895758307 756362383 332394748 496359187 386793862 251180395 982471615 728792548 680992099 713604481 492898597 122181550 76256197 888536860 279150262 635086537 698655175 253500158 107807618 64896518 97091534 697219481 942996971 245064764 860650805 ...

input:

Eva
59
601092052 87813088 756362383 386793862 251180395 680992099 492898597 122181550 76256197 888536860 107807618 64896518 97091534 697219481 942996971 860650805 319996649 575968124 708513392 951625145 305918768 182121419 7353983 872291326 210279649 732355483 478675039 331033774 688246312 625181602...

output:

queue

result:

ok single line: 'queue'

Test #9:

score: 100
Accepted
time: 3ms
memory: 4412kb

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:

132
251563430 624785753 113188430 781043501 709623344 409578554 794232002 671563901 761479760 392284109 626918726 378912440 588618470 200979740 758860652 623662283 320656268 368191739 460789940 27476039 315874001 284691863 293537939 949760897 404283056 929626484 227979212 334486760 455016542 6214785...

input:

Eva
66
113188430 781043501 409578554 794232002 761479760 392284109 626918726 588618470 758860652 623662283 368191739 460789940 27476039 293537939 949760897 334486760 455016542 621478535 659279318 72912785 221523323 668692112 654001871 36606398 890916265 961570027 578935072 868082824 300604546 268240...

output:

cotton

result:

ok single line: 'cotton'

Test #10:

score: 100
Accepted
time: 3ms
memory: 4436kb

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:

154
527010676 69651412 29641732 561148288 544494850 432483487 156756976 544195906 225527218 176784253 644764642 856530016 926456047 950491339 891174796 267479224 347053381 901441492 267433459 358032499 228252733 450846646 451404742 182443189 658852708 389512588 273045172 936084199 755811301 33905925...

input:

Eva
80
527010676 29641732 432483487 156756976 544195906 225527218 926456047 950491339 267479224 347053381 358032499 228252733 451404742 658852708 273045172 936084199 755811301 770857051 201071974 587153803 39033175 778761733 980077671 705755025 670663044 214527771 638124372 875282058 694518813 25812...

output:

zealous

result:

ok single line: 'zealous'

Test #11:

score: 100
Accepted
time: 4ms
memory: 4540kb

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:

176
189003645 901303578 291423501 626403807 598987656 933934617 342043884 808848774 944446203 121506669 775381437 904752936 57261195 295844400 568796175 286666641 365672934 461714634 682609761 656780265 984366000 68637834 242209944 967368600 63121023 131293944 356284377 236629584 969692139 500419665...

input:

Eva
97
933934617 342043884 808848774 904752936 57261195 295844400 568796175 286666641 365672934 461714634 682609761 984366000 68637834 131293944 356284377 236629584 969692139 500419665 544664781 125531523 608654835 571921443 514454427 659798964 535501521 761959088 816608924 129238496 18486710 850564...

output:

assessee

result:

ok single line: 'assessee'

Test #12:

score: 100
Accepted
time: 4ms
memory: 4400kb

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:

198
565954838 703119428 434750957 947418209 500451893 432816758 983834675 516443561 107769320 461896784 691397675 710799875 189457550 875717549 516522293 694236320 375345746 230124518 587803292 759923918 66949856 270472157 213160422 854441607 709379247 697760931 843408084 917578947 972063327 3486645...

input:

Eva
105
432816758 983834675 107769320 461896784 189457550 875717549 516522293 694236320 375345746 230124518 587803292 759923918 66949856 270472157 854441607 709379247 697760931 843408084 917578947 972063327 904420335 147321300 42853413 137103582 938046864 270802047 704229537 494100309 264100296 8676...

output:

impatient

result:

ok single line: 'impatient'

Test #13:

score: 100
Accepted
time: 4ms
memory: 4484kb

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:

220
971377381 273152656 188051545 193947589 801862039 626584789 338020534 411790177 433048708 964502695 743038786 956536480 848372077 799099615 243263629 59453110 620969194 413329771 939569032 765629443 731330560 486294436 217421078 701858885 915576899 596277545 138559532 838845005 565840958 3890138...

input:

Eva
98
273152656 338020534 433048708 799099615 243263629 765629443 486294436 217421078 138559532 838845005 389013881 974340914 318246584 30768593 530891942 351277127 464080454 594896804 184634180 472474025 41591069 810261845 513798983 882575405 533509480 938669644 50929138 430028578 659655316 804293...

output:

bookkeeper

result:

ok single line: 'bookkeeper'

Test #14:

score: 100
Accepted
time: 4ms
memory: 4528kb

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:

242
663145652 55224965 714916559 372912932 373318418 147603953 29296622 748177535 248714093 157870001 86049380 272181656 860442266 651932525 763025537 556979519 427653002 502988969 345660212 786452114 372912311 615923543 700828322 179730320 58290314 703601573 845815298 241234727 337351595 823770311 ...

input:

Eva
124
663145652 714916559 372912932 748177535 86049380 272181656 651932525 763025537 556979519 427653002 502988969 372912311 615923543 179730320 58290314 703601573 845815298 337351595 823770311 494118563 605630966 361188032 232024055 241091546 894294230 905166213 435203781 836193687 388692987 6279...

output:

copyrighted

result:

ok single line: 'copyrighted'

Test #15:

score: 100
Accepted
time: 3ms
memory: 4436kb

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:

264
193333788 938174688 19472364 98516538 495529236 106681851 12079845 499079115 931127499 317126871 286970976 776459079 284562441 87266529 12340017 243305820 739335618 650602251 126094554 470890764 229426443 98021844 130699753 274965316 663328726 187325719 152435131 593850787 840264991 307309129 75...

input:

Eva
134
938174688 19472364 98516538 106681851 499079115 317126871 286970976 87266529 243305820 126094554 98021844 274965316 187325719 840264991 307309129 753234676 982656025 21222907 88666720 315661363 193441867 6433630 717519751 165218713 605830066 530197670 483584222 42415103 457594778 728922935 1...

output:

squeezeboxes

result:

ok single line: 'squeezeboxes'

Test #16:

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

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:

286
964476670 747463522 762511270 625716526 435738370 97991401 636860965 153310243 889027573 437326402 397200892 647655430 861063106 998652811 82807519 272421283 666709627 829672987 525925849 278086936 752776015 228298828 668864289 52007682 952636341 327719262 391060236 478078212 218406576 65033238 ...

input:

Eva
148
964476670 747463522 636860965 153310243 889027573 998652811 666709627 525925849 278086936 228298828 52007682 391060236 218406576 284857221 31448694 594250140 88982805 937936515 356361888 123213610 648625159 204587236 925324318 494191936 302682637 678670597 658656658 123360193 463817044 65323...

output:

embarrassment

result:

ok single line: 'embarrassment'

Test #17:

score: 100
Accepted
time: 3ms
memory: 4480kb

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:

308
970248515 741288488 973597730 844515671 971606966 230292941 760005644 733487378 430305377 416507918 897850337 78976301 423888044 755748041 323341232 842309825 891737159 645216548 27191111 85832681 522899150 578297885 622802898 509856336 183892545 64124433 596393712 155597139 890976645 214308396 ...

input:

Eva
149
973597730 844515671 971606966 430305377 78976301 423888044 323341232 842309825 509856336 183892545 64124433 596393712 890976645 322318359 312260049 740760984 19067751 747089622 748348119 591770558 108097958 966335645 392602736 967287071 24293468 610312997 811413668 357482245 816319624 301822...

output:

facelessnesses

result:

ok single line: 'facelessnesses'

Test #18:

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

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:

330
156497495 263178383 154300235 591652418 184501517 94611308 841599113 263642486 738284531 372775676 556674377 398428457 623432552 786798428 182945885 452947586 537720890 705367751 796020926 602262689 851342873 328336538 829764131 590710856 512484323 732305336 515991569 243485267 786193529 5704428...

input:

Eva
164
156497495 154300235 184501517 841599113 738284531 556674377 398428457 786798428 452947586 705367751 590710856 512484323 515991569 243485267 786193529 389457014 600821492 717390401 746370770 759941187 954054528 492252549 283613640 678822198 258573003 10834449 780644166 111564186 11962941 6455...

output:

oxyphenbutazone

result:

ok single line: 'oxyphenbutazone'

Test #19:

score: 100
Accepted
time: 4ms
memory: 4440kb

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:

330
55151894 143597900 893791172 769439891 383710682 547590908 672084128 172095914 7606217 825346415 916885703 207536087 584857280 827380190 693226748 307703441 40009538 841598849 157409453 382652552 440085359 766506152 757690618 507185077 674037004 524905582 139259074 766733053 564367837 744555064 ...

input:

Eva
160
55151894 143597900 769439891 672084128 172095914 825346415 827380190 693226748 307703441 40009538 157409453 766506152 674037004 139259074 564367837 488788006 356880046 513837580 9699358 785707816 101180029 183450433 375073715 25238576 773533775 944917463 843199013 905913128 268197887 6565582...

output:

uncopyrightable

result:

ok single line: 'uncopyrightable'

Test #20:

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

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:

330
758389557 27688098 720696693 125473161 447485286 900471171 217523046 258176568 753182418 725063133 926205816 474854484 933135636 794217234 684980580 501488202 74515116 492376512 124508586 767535186 448554648 947592759 967692910 130161091 853094920 993132202 171987277 45730849 178045861 732292033...

input:

Eva
161
447485286 217523046 725063133 794217234 684980580 492376512 947592759 853094920 993132202 230916208 647700196 651711937 114588841 357057832 519324025 892284367 396267286 565885550 786328643 712542449 698710565 43097024 463612169 544527308 480991043 142427243 323628737 639423410 341154545 509...

output:

decommissioning

result:

ok single line: 'decommissioning'

Test #21:

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

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:

330
616488013 289705312 335356291 205670269 872214922 397616671 533774782 866186281 12634012 886425670 485996257 116988715 877038445 36152065 411937417 474353290 877248775 822158407 615661327 285966676 518329621 366482701 353710673 810514601 411164729 535522895 668641265 913466114 956478194 48250682...

input:

Eva
160
205670269 872214922 397616671 533774782 12634012 485996257 116988715 877038445 36152065 411937417 474353290 877248775 518329621 353710673 411164729 535522895 913466114 956478194 307381022 675484550 50425019 896367797 486943577 484358980 132189502 843948328 389613280 45038794 269404042 119675...

output:

kindheartedness

result:

ok single line: 'kindheartedness'

Test #22:

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

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:

330
210304782 431101170 469278711 411274044 979976934 289861632 54920322 790481349 119220687 738558351 684888966 968193594 705420333 293761107 152986563 223583220 835937010 428935851 812743929 515521341 525151836 98754849 326645799 502069470 319467687 362694957 140172540 459668400 422137131 31678785...

input:

Eva
162
431101170 289861632 705420333 293761107 223583220 428935851 525151836 502069470 319467687 362694957 140172540 316787856 208871691 879253476 633805089 102264918 472137810 399697080 917252385 19376700 779901128 531566900 155040965 891922319 816879707 75265739 406022489 550540880 129315797 8925...

output:

appropriateness

result:

ok single line: 'appropriateness'