QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#296132#4827. Message Made of Noisephtniit#AC ✓1ms4004kbC++142.3kb2024-01-02 10:36:132024-01-02 10:36:13

Judging History

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

  • [2024-01-02 10:36:13]
  • 评测
  • 测评结果:AC
  • 用时:1ms
  • 内存:4004kb
  • [2024-01-02 10:36:13]
  • 提交

answer

#include <bits/stdc++.h>

using namespace std;

typedef long double ldb;
typedef long long i64;
typedef unsigned long long u64;
typedef unsigned int u32;
typedef pair<int, int> pii;

std::mt19937_64 rng(std::chrono::steady_clock::now().time_since_epoch().count());
// priority_queue<int, vector<int>, greater<int>> minq;
// ios::sync_with_stdio(0);cin.tie(0);cout.tie(0);
// fflush(stdout);

const int inf = 1000000007;
const i64 prm = 998244353;
const i64 inf2 = ((i64)inf) * inf;
const int maxn = 1100010; // 1.1e6

inline int read(){
  int x=0,f=0; char ch=getchar();
  while(!isdigit(ch)) f|=(ch==45),ch=getchar();
  while(isdigit(ch)) x=(x<<3)+(x<<1)+(ch^48),ch=getchar();
  return f?-x:x;
}

const int B = 12;
const int L = 27;

const int b = 13;
const int d = 6;

auto getc(vector<int>& a, int c) {
  vector<int> vt;
  while (a.size()) {
    if (a.back() % L == c) {
      vt.push_back(a.back());
    }
    a.pop_back();
    if (vt.size() == B) {
      break;
    }
  }
  return vt;
}
int main() {
  string s;
  cin >> s;
  if (s[0] == 'A') {
    cin >> s;
    int n = read();
    vector<int> a(n);
    for (int i = 0; i < n; ++i) a[i] = read();
    vector<int> res;
    while (s.size()) {
      auto vt = getc(a, s.back()-'a');
      s.pop_back();
      res.insert(res.end(), vt.begin(), vt.end());
      if (s.size()) {
        vt = getc(a, 26);
        res.insert(res.end(), vt.begin(), vt.end());
      }
    }
    reverse(res.begin(), res.end());

    cout << res.size() << endl;
    for (auto e: res) {
      printf("%d ", e);
    }
    puts("");

    /*
    puts("Eva");
    vector<int> ans;
    for (auto e: res) if (rng() & 1) {
      ans.push_back(e);
    }
    cout <<ans.size() << endl;
    for (auto e: ans) {
      printf("%d ", e);
    }
    puts("");
    */
  } else {
    int n = read();
    vector<int> a(n);
    for (int i = 0; i <n; ++i) a[i] = read();
    for (int i = 0; i < n; ++i) {
      int j = i;
      while (j < n && a[i] % L == a[j] % L) {
        j++;
      }
      if (a[i] % L == 26) continue;
      putchar((a[i] % L) + 'a');
      /*
      int len = j-i;
      int k = (len + d) / b;
      char c = (a[i] % 26) + 'a';
      while (k--) putchar(c);
      */
      i = j-1;
    }
    puts("");
  }
  return 0;
}

詳細信息

Test #1:

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

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:

108
785914047 234645840 388649115 406261836 473341068 853315443 229776363 464491683 86605299 68252697 882377298 570310407 313066970 512335610 276863561 275813909 561580748 50551694 861097823 240810137 181654271 926350991 22156280 331579358 65531418 965344191 527464941 549665961 556737207 774045519 5...

input:

Eva
57
234645840 388649115 853315443 464491683 882377298 570310407 276863561 275813909 50551694 861097823 926350991 65531418 965344191 549665961 774045519 757051989 985215354 48290109 18687050 506208878 778102631 68970554 453846239 893670245 25324083 295080354 625225716 775855071 38102535 599930388 ...

output:

spark

result:

ok single line: 'spark'

Test #2:

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

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:

60
719098882 916260442 892601098 481455007 475951300 788917237 357461908 839963950 823816492 456540703 101770288 612641608 83907953 703346327 998277209 433408616 452705165 494446031 149636510 980261702 531924812 805765346 811019195 30967109 919957730 859716437 363235820 987837755 997623770 360182390...

input:

Eva
42
719098882 916260442 475951300 788917237 839963950 823816492 83907953 703346327 998277209 452705165 149636510 980261702 805765346 811019195 919957730 859716437 997623770 360182390 303282077 80612861 974188823 10898321 654174305 909354140 551430476 727229555 264930668 830214683 431537516 648522...

output:

zoo

result:

ok single line: 'zoo'

Test #3:

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

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:

36
542063637 670958019 814730427 897797169 816110721 372716964 914138730 904601844 815136507 917423226 757974078 629300718 3715469 950932331 29607173 843406802 275822144 603069920 35831915 494214398 613257614 130050845 83228471 341354276 349208866 895265020 457138126 315479143 461242828 160206814 51...

input:

Eva
19
542063637 670958019 814730427 897797169 914138730 904601844 815136507 917423226 629300718 29607173 843406802 130050845 341354276 349208866 461242828 160206814 513692056 777818773 951879025 

output:

at

result:

ok single line: 'at'

Test #4:

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

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:

36
346289318 257845688 391562756 199292327 937828943 136249703 315183401 134487494 439253288 702291824 469830275 409196618 344315339 393514172 699569702 564825419 671502176 570226526 551710601 417198059 853671824 980559728 259077095 548478296 588408602 773220119 557013974 447738170 859059761 4507782...

input:

Eva
17
346289318 257845688 439253288 469830275 409196618 393514172 699569702 564825419 551710601 980559728 548478296 588408602 557013974 859059761 231582920 454458443 612700313 

output:

if

result:

ok single line: 'if'

Test #5:

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

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:

60
469135561 993539389 552240319 47365213 644211283 513238252 874172605 298534414 293205127 882291208 625283851 548071006 44628164 516164939 492121871 135384857 329085233 39129425 337104125 410723513 325765394 901428587 607527026 323773199 422319019 296069719 870402676 965346799 51751768 30705997 63...

input:

Eva
32
469135561 644211283 513238252 298534414 293205127 882291208 625283851 548071006 44628164 516164939 492121871 410723513 901428587 607527026 323773199 422319019 870402676 965346799 601502543 713726261 990198836 206908937 496319642 802263419 570499037 466535360 513952139 502366817 49136933 50883...

output:

eel

result:

ok single line: 'eel'

Test #6:

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

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:

60
1957070 445499651 198925040 414589916 996932882 20478260 266238038 964885232 590185982 1413344 875042678 159242546 531375416 851911883 141174548 526926275 737359469 198282032 886888628 662230727 953226467 394240526 928199546 240441236 62588268 511509222 781665849 908370855 134244459 353833056 810...

input:

Eva
30
198925040 996932882 964885232 1413344 851911883 141174548 526926275 737359469 662230727 953226467 394240526 928199546 781665849 908370855 81000108 440046945 53097363 528401906 8740142 106353242 15520436 625599530 122996906 67437197 966673486 370418878 414653761 907191892 268476949 727678774 

output:

cat

result:

ok single line: 'cat'

Test #7:

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

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:

84
870058493 119555045 144115244 514697102 209112398 698757803 263156435 628378064 878959151 102445955 718188623 643959521 836041040 591324488 751999733 109259630 571292378 979725725 914274350 332078642 916192133 310076693 882151613 101692961 295624138 90083965 972367339 500920744 242954185 66698563...

input:

Eva
43
870058493 144115244 698757803 878959151 102445955 836041040 751999733 109259630 571292378 979725725 914274350 332078642 882151613 90083965 972367339 500920744 242954185 66698563 611508262 554918584 815784317 294517322 354250637 61493255 691844921 572698161 273101031 330823008 931315158 775903...

output:

real

result:

ok single line: 'real'

Test #8:

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

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:

108
641663170 113829235 610756675 509453485 846225538 801364822 320368786 715392556 831818797 69676243 318072814 970345591 424774475 458900018 130801715 538727678 97645769 467960516 119184506 645579881 974910032 682479566 692317907 32917778 115391243 199611398 638447879 870467087 673301801 747712856...

input:

Eva
52
641663170 610756675 509453485 846225538 801364822 831818797 318072814 424774475 458900018 130801715 97645769 645579881 115391243 199611398 870467087 673301801 747712856 269189237 407512073 585476720 611165654 236352842 189010610 698256989 445978439 946017904 760572913 530470192 182114248 3626...

output:

queue

result:

ok single line: 'queue'

Test #9:

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

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
756185384 940899269 608182454 781730813 88229684 680595509 416918261 960460526 254552924 258434390 227769653 162905825 315031058 885360320 65510423 200075858 843383798 369579887 294515729 881668016 418188878 648694439 856009025 336587615 304677302 574835414 762759005 40153118 135022235 133505591...

input:

Eva
72
756185384 940899269 608182454 781730813 88229684 680595509 254552924 258434390 227769653 315031058 885360320 65510423 200075858 843383798 881668016 418188878 856009025 336587615 304677302 574835414 762759005 40153118 926642579 572453312 817827785 875435282 216695330 193137074 542522825 260406...

output:

cotton

result:

ok single line: 'cotton'

Test #10:

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

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:

156
449720611 772224946 148677145 119065219 747681622 122474428 542312872 688299847 828402172 987640180 2926258 125100367 967729679 289816973 777000032 423122291 403759619 130565222 692399393 226410794 735081290 203629922 852399125 277285382 94743355 754153609 590999413 739497847 177882484 591107143...

input:

Eva
81
772224946 747681622 542312872 987640180 967729679 423122291 130565222 226410794 735081290 203629922 852399125 754153609 590999413 185425852 833184985 358081456 845906813 463217939 848954654 588025898 298198961 827871893 914606235 128713536 366913989 789870285 990262125 365943744 523767789 743...

output:

zealous

result:

ok single line: 'zealous'

Test #11:

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

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:

180
237747312 670621761 536633451 461869020 232212096 337152699 46911366 522348129 86950692 809763939 880868979 808983288 577598228 792408959 933840791 488674538 233731979 6363656 601920584 584035109 426781871 133840376 647329103 930695372 600741459 743916681 961177905 20628558 266949801 709888716 3...

input:

Eva
106
237747312 670621761 461869020 232212096 337152699 46911366 522348129 880868979 808983288 577598228 933840791 233731979 6363656 601920584 930695372 743916681 961177905 20628558 266949801 709888716 340548804 842907321 298326042 83759958 205895708 662924546 849609053 46199159 160644815 78956010...

output:

assessee

result:

ok single line: 'assessee'

Test #12:

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

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:

204
462949460 656985770 757085030 146875121 466954289 596584718 837063593 96659387 213696476 705736781 699608078 300543569 476774531 637638155 66891635 858186062 389365649 783387827 317775689 928803941 946189862 583870868 111844340 291266414 283622241 758101665 445484190 573300354 185630790 6644010 ...

input:

Eva
103
656985770 757085030 466954289 596584718 213696476 705736781 300543569 637638155 389365649 928803941 283622241 445484190 185630790 919969527 837718131 579744660 348437861 999586358 143186588 724564898 61832580 31573815 801842802 22759935 142266606 359682270 877443288 790467 374202816 10016610...

output:

impatient

result:

ok single line: 'impatient'

Test #13:

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

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:

228
980938270 308285218 34851871 597917917 349430221 813087937 605229517 948752326 546438421 181370206 282807802 145302688 697510655 956969747 123494678 146382686 995107139 914440373 912957317 181897757 885805550 590504849 704331827 839983175 682409246 842224325 719735585 376013327 145633667 4908045...

input:

Eva
120
308285218 34851871 597917917 813087937 546438421 282807802 697510655 956969747 123494678 914440373 181897757 885805550 704331827 839983175 682409246 719735585 376013327 145633667 385598759 266600012 525595433 965319308 604005983 619400573 944551814 936212999 593198168 510665513 879447146 397...

output:

bookkeeper

result:

ok single line: 'bookkeeper'

Test #14:

score: 100
Accepted
time: 1ms
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:

252
111076517 344911394 869988413 715555136 879519008 592757516 547677695 487873154 658313516 444213317 417771461 60780242 166867748 739795706 252575117 647351324 646765559 175441544 74997818 622461023 572711768 824769566 75428468 758035367 463888283 498534602 722561432 368806973 160063763 637122173...

input:

Eva
106
111076517 869988413 879519008 417771461 60780242 739795706 252575117 646765559 175441544 75428468 368806973 353661593 606263063 227800958 683296397 825226865 669616793 730441313 574577927 2777489 543188969 978993906 211502166 252027735 59824536 954259163 601318727 789134345 584427986 7032030...

output:

copyrighted

result:

ok single line: 'copyrighted'

Test #15:

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

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:

276
72838242 660104550 414532233 40384836 978552432 345825387 554103333 487785204 631773450 146017449 531512487 756415062 510087320 607435496 994795748 527151860 231741674 32080913 988067375 758088611 683527004 934153289 126174104 413448434 895153723 813262696 438137413 407706550 157402996 834574903...

input:

Eva
116
72838242 660104550 345825387 510087320 994795748 231741674 758088611 683527004 126174104 813262696 438137413 407706550 157402996 281268439 79626391 777053617 64583270 731849687 985555484 872700506 287444807 852014261 476330537 396032078 187544450 42765482 962292332 573264155 240669515 921572...

output:

squeezeboxes

result:

ok single line: 'squeezeboxes'

Test #16:

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

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:

300
196204576 254463799 560995285 671030086 912431767 846851683 859617418 374882665 343160068 760394308 118407613 949436779 999973106 756006398 465171524 481019876 614125043 808835003 130136678 828506258 840182813 299566430 223443413 28299239 899464026 488189550 39898425 420914460 44281173 852851415...

input:

Eva
135
196204576 560995285 912431767 118407613 465171524 614125043 828506258 488189550 44281173 484555998 149952747 203660202 612012644 46121291 128887793 745155692 91338920 166287086 259767728 261069751 479742562 251359120 299161000 29431972 955553111 291565007 213281450 529383572 673283933 567862...

output:

embarrassment

result:

ok single line: 'embarrassment'

Test #17:

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

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:

324
107075876 243701411 74876243 351835817 386510297 979727351 365549225 574794554 503584079 808771019 283302473 410759321 352403378 13121243 420006491 689172839 989064998 216454031 206470889 268308908 100639043 485028620 759100355 964243898 443533968 430860195 329029263 650771334 895189509 47279513...

input:

Eva
154
107075876 74876243 351835817 365549225 503584079 352403378 420006491 689172839 989064998 216454031 206470889 268308908 485028620 650771334 642726495 1499607 638103366 495402291 279619586 482672384 204668936 231965666 321867512 779470235 636189770 715890665 514963442 710637437 595272161 79655...

output:

facelessnesses

result:

ok single line: 'facelessnesses'

Test #18:

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

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:

348
263178383 154300235 591652418 184501517 94611308 841599113 263642486 738284531 372775676 556674377 398428457 623432552 630465740 309472730 321799283 904194521 362442059 539238896 840468446 327285953 858647141 586841435 821059334 638541656 243485267 786193529 570442847 74553989 615790859 60442731...

input:

Eva
194
591652418 94611308 841599113 738284531 372775676 623432552 309472730 321799283 539238896 840468446 327285953 858647141 821059334 638541656 243485267 570442847 604427315 389457014 11390378 861536951 572794577 61553438 795518036 655329365 186319088 46284209 283613640 973817502 258573003 108344...

output:

oxyphenbutazone

result:

ok single line: 'oxyphenbutazone'

Test #19:

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

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:

348
307703441 40009538 841598849 157409453 382652552 440085359 766506152 285314771 647446844 300839393 420497075 158620349 825484715 778218083 7986788 50118479 148908617 871850114 972538622 529457903 216365309 441053747 756340280 488814668 660700624 829286437 992136694 781694158 492923191 140819620 ...

input:

Eva
162
40009538 841598849 440085359 766506152 285314771 148908617 871850114 972538622 529457903 216365309 488814668 660700624 992136694 781694158 140819620 767000474 656722133 499592474 432439721 782561711 46824104 88038416 404332157 615309725 638965181 804037511 360801107 702855008 570362120 21769...

output:

uncopyrightable

result:

ok single line: 'uncopyrightable'

Test #20:

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

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:

348
725063133 926205816 474854484 933135636 794217234 684980580 501488202 74515116 492376512 124508586 767535186 448554648 944901935 371297114 756049598 142671860 262915712 300551984 41987024 325858571 172386764 712847897 856454255 137779109 292905184 519324025 691704931 88659904 31717795 471264565 ...

input:

Eva
166
725063133 474854484 448554648 944901935 756049598 142671860 262915712 41987024 325858571 712847897 856454255 519324025 691704931 31717795 892284367 396267286 884990587 916581775 964985885 380664710 761108723 344987261 379911707 514542914 599157026 296843480 301239890 463612169 333516746 4809...

output:

decommissioning

result:

ok single line: 'decommissioning'

Test #21:

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

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:

348
205670269 872214922 397616671 533774782 866186281 12634012 886425670 485996257 116988715 877038445 36152065 411937417 700544051 453187790 285054713 823560830 57070493 833675759 295885601 590288255 663229349 877840091 728656046 912034484 956478194 482506829 768400973 286946801 307381022 585692189...

input:

Eva
177
872214922 397616671 533774782 116988715 877038445 453187790 285054713 823560830 833675759 590288255 663229349 877840091 912034484 956478194 768400973 286946801 307381022 585692189 20059064 53167697 210637475 768163634 900376316 710933516 964743236 994320197 436204372 416488756 944986000 9483...

output:

kindheartedness

result:

ok single line: 'kindheartedness'

Test #22:

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

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:

348
968193594 705420333 293761107 152986563 223583220 835937010 428935851 812743929 515521341 525151836 98754849 652069575 779933339 976045706 734620886 285647228 798866873 685366919 560954186 945293732 496242503 309115331 575226602 998660258 514480317 633805089 102264918 472137810 399697080 9172523...

input:

Eva
175
152986563 223583220 812743929 515521341 525151836 652069575 779933339 976045706 685366919 560954186 496242503 575226602 998660258 514480317 633805089 890028663 153438072 766667267 75265739 468687734 583224488 923649938 491368139 189892943 233199663 320634168 466856799 691204767 568482936 841...

output:

appropriateness

result:

ok single line: 'appropriateness'