QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#294619#4827. Message Made of Noiseucup-team1631#AC ✓3ms4024kbC++204.6kb2023-12-30 15:01:502023-12-30 15:01:52

Judging History

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

  • [2023-12-30 15:01:52]
  • 评测
  • 测评结果:AC
  • 用时:3ms
  • 内存:4024kb
  • [2023-12-30 15:01:50]
  • 提交

answer

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

#define ll long long
#define elif else if
#define vi vector<int>
#define vll vector<ll>
#define vvi vector<vi>
#define pii pair<int,int>


#define repname(a, b, c, d, e, ...) e
#define rep(...)                    repname(__VA_ARGS__, rep3, rep2, rep1, rep0)(__VA_ARGS__)
#define rep0(x)                     for (int rep_counter = 0; rep_counter < (x); ++rep_counter)
#define rep1(i, x)                  for (int i = 0; i < (x); ++i)
#define rep2(i, l, r)               for (int i = (l); i < (r); ++i)
#define rep3(i, l, r, c)            for (int i = (l); i < (r); i += (c))





struct ScalarInput {
    template<class T>
    operator T(){
        T ret;
        cin >> ret;
        return ret;
    }
};
struct VectorInput {
    size_t n;
    VectorInput(size_t n): n(n) {}
    template<class T>
    operator vector<T>(){
        vector<T> ret(n);
        for(T &x : ret) cin >> x;
        return ret;
    }
};
ScalarInput input(){ return ScalarInput(); }
VectorInput input(size_t n){ return VectorInput(n); }

template<typename T>
void print(vector<T> a){
  for(int i=0;i<a.size();i++){
    cout<<a[i]<<" \n"[i+1==a.size()];
  }
}

template<class T>
void print(T x){
    cout << x << '\n';
}
 
template <class Head, class... Tail>
void print(Head&& head, Tail&&... tail){
  cout << head << ' ';
  print(forward<Tail>(tail)...);
}



vector<int> encode(string s, vector<int> a) {
    int n = 10000;
    int m = s.length();
    vector<int> size_inf;
    int R = n - 1;

    while (true) {
        if (a[R] % 16 == m) {
            size_inf.push_back(a[R]);
            if (size_inf.size() == 20) {
                break;
            }
        }
        R -= 1;
    }

    vector<int> a1(n), a2(n), a3(n), a4(n);
    for (int i = 0; i < n; ++i) {
        a1[i] = a[i] % 26;
        a2[i] = (a[i] / 100) % 26;
        a3[i] = (a[i] / 10000) % 26;
        a4[i] = (a[i] / 1000000) % 26;
    }

    int ng = R;
    int ok = 0;

    while (abs(ng - ok) > 1) {
        int mid = (ng + ok) / 2;
        int now = 0;
        int flag = 1;

        for (int i = 0; i < m; ++i) {
            int cnt = 0;

            while (cnt < mid && now < R) {
                if (a1[now] == s[i] - 'a' || a2[now] == s[i] - 'a' || a3[now] == s[i] - 'a' || a4[now] == s[i] - 'a') {
                    cnt += 1;
                }
                now += 1;
            }

            if (cnt != mid) {
                flag = 0;
            }
        }

        if (flag) {
            ok = mid;
        } else {
            ng = mid;
        }
    }

    vector<int> ans;
    int now = 0;

    for (int i = 0; i < m; ++i) {
        int cnt = 0;

        while (cnt < ok && now < R) {
            if (a1[now] == s[i] - 'a' || a2[now] == s[i] - 'a' || a3[now] == s[i] - 'a' || a4[now] == s[i] - 'a') {
                cnt += 1;
                ans.push_back(a[now]);
            }
            now += 1;
        }
    }

    ans.insert(ans.end(), size_inf.rbegin(), size_inf.rend());
    return ans;
}

string decode(vector<int> a) {
    int size = a.back() % 16;

    while (a.back() % 16 == size) {
        a.pop_back();
    }

    int n = a.size();
    vector<int> a2(n), a3(n), a4(n), a1(n);

    for (int i = 0; i < n; ++i) {
        a1[i] = a[i] % 26;
        a2[i] = (a[i] / 100) % 26;
        a3[i] = (a[i] / 10000) % 26;
        a4[i] = (a[i] / 1000000) % 26;
    }

    int t = (n + size / 2) / size;
    vector<char> ans;
    int now = 0;

    while (now < n) {
        int mx = -1;
        int res = -1;

        for (int i = 0; i < 26; ++i) {
            int cnt = 0;

            while (now + cnt < n) {
                if (a1[now + cnt] == i || a2[now + cnt] == i || a3[now + cnt] == i || a4[now + cnt] == i) {
                    cnt += 1;
                } else {
                    break;
                }
            }

            if (mx < cnt) {
                mx = cnt;
                res = i;
            }
        }

        for (int i = 0; i < max(1, mx + t / 2) / t; ++i) {
            ans.push_back('a' + res);
        }

        now += mx;
    }

    return string(ans.begin(), ans.end());
}


int main(){
  //ios::sync_with_stdio(false);
  //cin.tie(nullptr);
  string T;
  cin>>T;
  if(T[0]=='A'){
    string s;
    cin>>s;
    int n;
    cin>>n;
    vector<int>A(n);
    rep(i,n)cin>>A[i];
    vector<int>ans=encode(s,A);
    print(ans.size());
    print(ans);
  }
  else{
    int m;
    cin>>m;
    vector<int>B(m);
    rep(i,m)cin>>B[i];
    print(decode(B));
  }
}

Details

Tip: Click on the bar to expand more detailed information

Test #1:

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

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:

1435
16249270 76365900 819965104 408973036 16049452 585189166 891323449 772024919 278824512 223222498 562048456 398851770 356827945 46250649 150989386 590287605 686271886 821253204 591119688 460835344 316355772 206345694 415407403 805937878 624187961 96664890 758381486 661069492 14880260 299437546 7...

input:

Eva
719
76365900 819965104 398851770 356827945 46250649 150989386 590287605 686271886 821253204 206345694 415407403 805937878 96664890 758381486 661069492 299437546 70479013 18089312 340092056 592489880 917737020 643429478 498606294 44709999 351027760 793927445 980957968 978314231 237268972 95489759...

output:

spark

result:

ok single line: 'spark'

Test #2:

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

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:

1352
702519086 335656240 718691817 909268247 446984179 771120908 389311666 423355381 452431136 573552947 893367201 631065941 284078526 285550254 169439344 52387307 883068919 91772274 465913116 857840658 937120495 685559653 371793609 675821464 559371748 439253593 883634970 772973344 672091115 1553658...

input:

Eva
686
702519086 335656240 771120908 452431136 893367201 285550254 169439344 52387307 465913116 857840658 675821464 559371748 439253593 883634970 772973344 511152625 926411849 935296162 246588705 974424957 902909714 519394361 353048071 207118814 750621247 285727408 595876761 720191822 357016380 623...

output:

zoo

result:

ok single line: 'zoo'

Test #3:

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

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:

1454
809203668 387068110 758425306 988694760 832124663 334256011 218785710 520878577 778799424 910657169 353511622 260511429 463324553 747767571 159082638 941463463 954204846 260569252 962292167 676817648 159121875 832729641 619846213 83442866 992833 929279053 390497289 364217232 750851406 598908793...

input:

Eva
768
809203668 387068110 832124663 218785710 520878577 778799424 463324553 159082638 954204846 260569252 992833 390497289 364217232 750851406 598908793 960531085 615429576 497593207 661964522 644806326 283661402 227647810 54618226 558226241 182764928 723065413 249331134 359411008 260505546 153431...

output:

at

result:

ok single line: 'at'

Test #4:

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

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:

1438
141782843 8442020 536726783 649318938 319759251 454299048 455169851 374023372 892199483 155540635 273220384 710194038 440192176 996019435 580650212 34188326 528025597 435772124 996140605 107468395 230836657 618026008 280883430 321187465 202681294 255403098 970475813 752784374 922028417 37204156...

input:

Eva
710
8442020 536726783 649318938 319759251 374023372 273220384 710194038 440192176 996019435 580650212 34188326 996140605 618026008 202681294 752784374 922028417 372041560 294513139 124684958 325085426 212645870 963126065 818779372 502172527 866241008 186033986 904151022 632997546 346262778 75187...

output:

if

result:

ok single line: 'if'

Test #5:

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

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:

1379
524349772 884608815 266823236 290302134 160855644 911534454 331227422 760601014 662304218 519259416 696154918 136458430 992660803 595308432 316032362 814884670 969612804 252236857 706029822 394067484 636788544 343291467 447522861 511518908 190257266 342607064 576662616 205683837 202588609 45299...

input:

Eva
683
524349772 884608815 266823236 290302134 911534454 331227422 760601014 519259416 136458430 595308432 969612804 511518908 190257266 342607064 45299050 732454157 656425033 187008084 479916324 887216542 706868645 720499411 969840555 264188664 921489512 170861303 417609920 56635191 680949433 9142...

output:

eel

result:

ok single line: 'eel'

Test #6:

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

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:

1424
552131166 172400210 945586459 774210063 225852148 262302513 79396446 164933830 379714624 475820455 411226532 407792024 28502307 318473846 272524412 18742617 314203336 157008828 674985863 88169463 247123190 703870390 469322973 860296433 903180449 857649261 550969686 860823492 841557885 877110233...

input:

Eva
728
552131166 172400210 945586459 774210063 79396446 379714624 475820455 407792024 28502307 272524412 18742617 88169463 703870390 469322973 903180449 857649261 550969686 860823492 841557885 877110233 210759613 508126998 466341403 692804063 964309428 91642425 208115338 941379676 798748844 8377426...

output:

cat

result:

ok single line: 'cat'

Test #7:

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

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:

1424
673316503 350209747 979603608 131416445 823176479 556453764 317144579 997533368 76301382 525860365 36831102 846910120 66994825 552937684 146032666 631714387 453818083 69448354 43456416 743930139 69022367 519840537 358339089 694653015 931532411 973531121 296052263 447864031 946574406 894057344 8...

input:

Eva
705
317144579 66994825 146032666 69448354 743930139 69022367 358339089 973531121 296052263 946574406 894057344 933053521 121408187 623398159 818954952 401092831 857486465 285913716 11683597 953396179 849705246 687738176 621604590 296055563 389659307 582039111 416995869 235874409 135119799 791400...

output:

real

result:

ok single line: 'real'

Test #8:

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

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:

1435
532065691 649125958 260164633 138347607 44402868 404469464 185306240 627459657 198989461 796797027 957743591 109191852 396031033 250773388 634820764 825793348 672521829 476656092 428546472 953741410 87871224 742695918 274780058 620242340 250251678 439087704 883102184 306447388 876978794 6927983...

input:

Eva
714
532065691 649125958 260164633 44402868 185306240 957743591 109191852 672521829 476656092 953741410 274780058 439087704 883102184 692798334 32407944 858168109 756500303 770653338 774444424 608043889 736064238 351589251 728792548 450343858 88414992 484343059 926819321 224683662 94359636 555728...

output:

queue

result:

ok single line: 'queue'

Test #9:

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

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:

1346
731920779 770005896 586325250 809408942 279787411 300849439 229198005 574708202 153160058 806845548 340439478 314268564 626953064 555128826 227495077 405027248 836290218 957087007 269446056 132653489 535054291 694127443 796144675 340806634 215910190 701247626 387684347 522929318 54312174 678773...

input:

Eva
658
586325250 574708202 340439478 314268564 555128826 405027248 836290218 957087007 269446056 132653489 701247626 80178097 626918726 938920942 788349964 440727660 446901860 935368445 291624012 614367216 662065354 683893899 259267015 704855246 550965583 845491584 578393532 589377622 496684396 494...

output:

cotton

result:

ok single line: 'cotton'

Test #10:

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

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:

1427
510581655 720263881 734759558 571073749 337556133 183548533 586487127 924848547 527010676 389094853 801873643 764061989 2773185 461047469 252437847 536374959 852795770 657091577 653727125 227853531 597118721 38664574 467238823 623304618 715805918 147672022 490829767 935519778 222420665 85792254...

input:

Eva
737
734759558 571073749 924848547 527010676 764061989 852795770 657091577 653727125 227853531 38664574 623304618 715805918 490829767 222420665 857922546 287362325 695143739 872812034 642861153 55490759 796137133 729055527 285656472 753818422 181163773 155270544 79562560 765185979 241181115 68795...

output:

zealous

result:

ok single line: 'zealous'

Test #11:

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

1364
406338426 743529855 434989606 394175644 160168105 138588621 874827204 294985689 910995837 622468672 546036476 561204865 228820820 74889073 624216200 780913365 722543977 598987656 364343882 258908086 458562017 394516256 182368614 304311904 667903662 595404952 520592126 778775496 500697688 927681...

input:

Eva
694
406338426 160168105 138588621 874827204 910995837 622468672 546036476 561204865 624216200 722543977 598987656 394516256 182368614 667903662 595404952 520592126 500697688 979948016 652376454 427993358 327022566 767009376 91556036 260156607 33802815 342043884 408969730 718700996 156229523 5274...

output:

assessee

result:

ok single line: 'assessee'

Test #12:

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

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:

1406
710732825 606346197 311527633 430249178 223455200 155303726 764783076 996856296 359669230 455552008 164631128 554231241 95852483 212220624 846922275 969106835 746632431 169601909 805467828 919702011 450974675 92854796 190832243 595861097 268290013 562980705 347320956 398204233 948109009 9223005...

input:

Eva
720
311527633 430249178 155303726 996856296 164631128 554231241 846922275 969106835 805467828 450974675 92854796 190832243 595861097 398204233 948109009 683129728 241626528 195175196 242841371 392944717 762238895 44286408 710799875 618103326 267517414 629028146 521644961 190997553 802126897 6322...

output:

impatient

result:

ok single line: 'impatient'

Test #13:

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

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:

1400
631530615 963220561 351277306 429078261 822918258 971377381 781083603 911552576 755925854 140676032 886831585 337330761 337797375 513869303 859622837 547034839 313986411 839551630 759167657 885906349 364993487 169828205 445392485 582698819 290961581 524691373 495055031 650334933 565461185 45356...

input:

Eva
746
631530615 963220561 351277306 781083603 911552576 755925854 337797375 513869303 885906349 169828205 582698819 290961581 524691373 495055031 453562334 77766125 919622185 66059394 307327989 798907388 149897307 755045669 781751955 103757905 66837884 705835174 64427091 735555373 312553901 560440...

output:

bookkeeper

result:

ok single line: 'bookkeeper'

Test #14:

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

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:

1406
739557444 964326887 887910648 652009792 808177617 786885062 598284472 2747070 979008240 608323224 782831341 912692408 656009953 872523830 372912932 444802122 924102168 477685209 860269387 444510332 964299485 389412609 983377493 411773078 804469750 421745796 567087681 339838956 262077425 4493083...

input:

Eva
712
739557444 887910648 808177617 786885062 979008240 608323224 782831341 656009953 372912932 477685209 860269387 964299485 389412609 983377493 411773078 421745796 567087681 339838956 595717415 888125812 611265433 928751878 934720525 122223264 753240964 542122842 725135582 860442266 808504066 54...

output:

copyrighted

result:

ok single line: 'copyrighted'

Test #15:

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

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:

1400
456220129 699989485 146306211 810341108 823700027 675927206 122087182 776113044 616414004 806004442 82344198 556159804 393973728 928728651 966867118 269957316 493142946 616894446 486371170 619504660 70251997 225804246 954228421 434332357 504701020 393491042 90925097 681155376 300223433 76372979...

input:

Eva
721
456220129 699989485 823700027 122087182 616414004 82344198 486371170 70251997 225804246 393491042 300223433 763729790 797031815 131817782 720036782 876974832 226490882 718826669 176987904 288179078 987312292 376182852 954181291 549413714 894784766 406304450 654837826 437566295 476245636 8246...

output:

squeezeboxes

result:

ok single line: 'squeezeboxes'

Test #16:

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

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:

1372
940385214 157040498 576455081 611701562 361969314 458428199 789077722 916288016 600996322 192996002 452968378 935457093 698108279 990844840 862668903 108135557 806268289 351452352 90662428 769419980 238664008 108678453 929336724 154761884 220005009 160465188 96121562 414487384 39428666 79304932...

input:

Eva
684
940385214 157040498 452968378 862668903 108135557 806268289 351452352 90662428 238664008 154761884 220005009 160465188 96121562 414487384 39428666 793049328 189845612 707298830 319233672 437880395 115485473 82748069 82380157 80860426 540327964 511292292 82807519 956061151 395512432 646435092...

output:

embarrassment

result:

ok single line: 'embarrassment'

Test #17:

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

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:

1490
57315925 833618354 369493539 949057902 230292941 161468049 733487378 655945379 391901159 109047272 603039284 421128031 838089728 280153645 554379105 941995540 447335011 75824065 220797208 661759206 5224284 684119960 832836996 421543385 270572174 490034537 915730410 751195766 277462168 129424495...

input:

Eva
755
57315925 833618354 369493539 230292941 161468049 655945379 109047272 603039284 421128031 838089728 280153645 554379105 941995540 75824065 661759206 684119960 832836996 421543385 490034537 915730410 853095547 74693367 702801343 372772847 967601862 37236297 872878546 682558609 669752733 752393...

output:

facelessnesses

result:

ok single line: 'facelessnesses'

Test #18:

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

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:

1445
454108713 128955594 586051245 735195675 768423754 617425264 873065828 435738668 963966189 92190619 742554505 949406945 634549287 560346745 274013650 535912586 855726964 799796362 480273453 738284531 196830640 794897890 291862955 768874740 950838801 802763127 899223731 145743169 300177326 681269...

input:

Eva
724
735195675 768423754 617425264 435738668 92190619 742554505 949406945 634549287 274013650 535912586 855726964 799796362 738284531 794897890 768874740 950838801 802763127 899223731 300177326 684064512 924306206 430970535 717199198 432521755 222424494 249362582 454907818 716357899 712268867 751...

output:

oxyphenbutazone

result:

ok single line: 'oxyphenbutazone'

Test #19:

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

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:

1415
105649044 670541334 890709753 620519062 793016816 849175099 852170012 947734548 798149351 37922164 422010627 891488613 951549071 739239219 319786429 760444231 727421069 202633310 303071072 280916718 181801692 539892075 687380859 111473720 547590908 659723449 24440176 649689530 411254444 5228048...

input:

Eva
698
105649044 670541334 793016816 849175099 852170012 947734548 798149351 891488613 739239219 319786429 202633310 303071072 280916718 181801692 539892075 687380859 111473720 659723449 411254444 566444109 822259864 516041715 711967536 584857280 457817823 938427847 965328164 4368070 202782897 4214...

output:

uncopyrightable

result:

ok single line: 'uncopyrightable'

Test #20:

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

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:

1415
679002417 815396195 474793416 549408397 315423690 758389557 263724012 731566703 201790745 601535347 55195623 809059095 699435986 740142308 7755855 107109169 159817552 270614633 400439766 619775939 249913667 430297772 769786137 185445221 172294125 393892631 775310877 117262239 114481955 45647214...

input:

Eva
686
815396195 758389557 55195623 740142308 159817552 270614633 249913667 430297772 769786137 185445221 172294125 393892631 775310877 117262239 114481955 456472149 976423919 281098460 601244927 139653783 575315430 510159295 30436669 530889166 709572233 601821022 715164112 871236926 530540794 1076...

output:

decommissioning

result:

ok single line: 'decommissioning'

Test #21:

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

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:

1445
986021242 790557756 514192615 948580685 114077906 273363770 440805136 74426045 452389219 322602165 121492472 738081165 959294452 346949900 297547148 345483874 411986858 903860273 438886271 243916254 152864696 901876030 57949864 945110020 510428474 558166445 470452800 44065860 153473874 58900100...

input:

Eva
715
790557756 514192615 273363770 121492472 738081165 959294452 297547148 243916254 152864696 901876030 945110020 558166445 470452800 44065860 589001007 400800383 707593698 458228021 852639886 889107814 459009335 636449840 493369257 619738298 99274251 556489629 223591508 36152065 657839426 87485...

output:

kindheartedness

result:

ok single line: 'kindheartedness'

Test #22:

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

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:

1430
312902092 624831146 936947858 722024683 194748920 862825626 667713849 111544489 489327098 431786238 26802186 832652454 546537989 515895354 130573888 518767210 761784270 742301359 110175018 65075192 708401486 754189602 968501021 247150811 542175473 858797695 618806455 860542856 546223668 7906415...

input:

Eva
711
312902092 624831146 722024683 194748920 862825626 431786238 26802186 832652454 515895354 761784270 742301359 110175018 65075192 754189602 968501021 858797695 546223668 548090409 242327488 208897455 307014266 946926488 494303027 736354840 504687976 474202742 589430443 42312485 320369420 24121...

output:

appropriateness

result:

ok single line: 'appropriateness'