QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#656908#6617. Encoded Strings Idaoqi#AC ✓11ms4448kbC++201.2kb2024-10-19 13:50:552024-10-19 13:50:55

Judging History

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

  • [2024-10-19 13:50:55]
  • 评测
  • 测评结果:AC
  • 用时:11ms
  • 内存:4448kb
  • [2024-10-19 13:50:55]
  • 提交

answer

#include<bits/stdc++.h>

using i64 = long long;

void DAOQI() {
    int n;
    std::string s;
    std::cin >> n >> s;
    std::vector<int> pos(26, -1), doc;
    std::vector<std::string> ans;
    for (int i = 0; i < n; i++) {
        std::string tmp = s.substr(0, i + 1);
        int lst = pos[s[i] - 'a'];
        pos[s[i] - 'a'] = i;
        if (std::binary_search(doc.begin(), doc.end(), lst)) {
            for (int j = 0; j < doc.size(); j++) {
                if (doc[j] == lst) {
                    doc[j] = i;
                    break;
                }
            }
        } else {
            doc.push_back(i);
        }
        std::sort(doc.begin(), doc.end());
        for (int j = 0; j < tmp.size(); j++) {
            int p = std::lower_bound(doc.begin(), doc.end(), pos[tmp[j] - 'a']) - doc.begin();
            p = doc.size() - p-1;
            tmp[j] = p + 'a';
        }
        ans.push_back(tmp);
    }
    std::sort(ans.begin(), ans.end(), std::greater<>());
    std::cout << ans[0] << "\n";
}

signed main() {
    std::ios::sync_with_stdio(false);
    std::cin.tie(nullptr);
    int T = 1;
    //std::cin >> T;
    while (T--) DAOQI();
    return 0;
}

这程序好像有点Bug,我给组数据试试?

详细

Test #1:

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

input:

4
aacc

output:

bbaa

result:

ok single line: 'bbaa'

Test #2:

score: 0
Accepted
time: 0ms
memory: 3640kb

input:

3
aca

output:

ba

result:

ok single line: 'ba'

Test #3:

score: 0
Accepted
time: 0ms
memory: 3872kb

input:

1
t

output:

a

result:

ok single line: 'a'

Test #4:

score: 0
Accepted
time: 0ms
memory: 3860kb

input:

12
bcabcabcbcbb

output:

cbacba

result:

ok single line: 'cbacba'

Test #5:

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

input:

1000
bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb...

output:

aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa...

result:

ok single line: 'aaaaaaaaaaaaaaaaaaaaaaaaaaaaaa...aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa'

Test #6:

score: 0
Accepted
time: 2ms
memory: 4448kb

input:

1000
ggkkkggggggkgggkgkgkkkkkggkkkgggkgkgggkkgkkgkgkgkgkgggkgkkkkgkgkkgkggkgggkgggkgkkgggggkkgkgkkkkgkkkkkkgkkggkkkkggkkkgkgggkggkkgkkgkgggkkggggkkggggkggkkggkgkgkgkkkgkkgkgkkgkkgkgkggkgggkgkkkgkkkgkkggkkggkkgkgkgkkkkkgkkggkgggkkkkgggkggkgggkkkgkkkkggggkkggkkkkgkkggkkkkkkgkgggkkkkkgggggggkgggkkkggkg...

output:

bbaaabbbbbbabbbababaaaaabbaaabbbababbbaabaabababababbbabaaaababaababbabbbabbbabaabbbbbaababaaaabaaaaaabaabbaaaabbaaababbbabbaabaababbbaabbbbaabbbbabbaabbabababaaabaababaabaabababbabbbabaaabaaabaabbaabbaabababaaaaabaabbabbbaaaabbbabbabbbaaabaaaabbbbaabbaaaabaabbaaaaaababbbaaaaabbbbbbbabbbaaabbabbaabb...

result:

ok single line: 'bbaaabbbbbbabbbababaaaaabbaaab...bbbbabbabababaabbbbbababaababaa'

Test #7:

score: 0
Accepted
time: 3ms
memory: 4140kb

input:

1000
edbbbbedddbeebedeedbddebddddbedbbdddeddeeddeebdedbbbdedddeeddbdddbbebbbdbeddbbbbbdeedebdddbbbebebbbdebebbeebbeeddddebdbdedbedddeebedebbddbededbdeebbbbbdbebddbebdbddebbddddbdeebbbddddbedddbedbeebdeeebdedbdededdbdebbedbbbeedbbedebddebbeebddebbebbdebeebddbdeddbdebdebebbdbebdddedbbdbedbbdbebbbddddd...

output:

cbaaaacbbbaccacbccbabbcabbbbacbaabbbcbbccbbccabcbaaabcbbbccbbabbbaacaaabacbbaaaaabccbcabbbaaacacaaabcacaaccaaccbbbbcababcbacbbbccacbcaabbacbcbabccaaaaabacabbacababbcaabbbbabccaaabbbbacbbbacbaccabcccabcbabcbcbbabcaacbaaaccbaacbcabbcaaccabbcaacaabcaccabbabcbbabcabcacaabacabbbcbaabacbaabacaaabbbbbbabba...

result:

ok single line: 'cbaaaacbbbaccacbccbabbcabbbbac...babcbbabccacbccbaaacabcbcccbbaa'

Test #8:

score: 0
Accepted
time: 5ms
memory: 4144kb

input:

1000
hhqjhgqqjhqhqhgggqhgqghhjjgjjqqqhhjhhjqqjqqjqqhghghjhqhghhqhgjgjhqhjjjqjqgjgjgqhqqgjgqghgqjjhqjjgqghjqjhqjhghhghgqjqjhggjjhhjjqhqgqhjjhqqjqjghjjhjhqghqggjqjqjghjqhqjqgjqqjjqjjhjjqghqjjhhjhghhjggqqjjqgjqgqjhqhjqhjqqgjqhghghhjqqhhhjhjjgjjgjqgjqqqggjggqhqgjhqhqqgggqqhqqqjhqgjghhhqgghqqjgjhjqjhhqgh...

output:

ddcbdaccbdcdcdaaacdacaddbbabbcccddbddbccbccbccdadadbdcdaddcdababdcdbbbcbcababacdccabacadacbbdcbbacadbcbdcbdaddadacbcbdaabbddbbcdcacdbbdccbcbadbbdbdcadcaabcbcbadbcdcbcabccbbcbbdbbcadcbbddbdaddbaaccbbcabcacbdcdbcdbccabcdadaddbccdddbdbbabbabcabcccaabaacdcabdcdccaaaccdcccbdcabadddcaadccbabdbcbddcaddacdd...

result:

ok single line: 'ddcbdaccbdcdcdaaacdacaddbbabbc...accdbabaaaaaabababcabbabcdadcba'

Test #9:

score: 0
Accepted
time: 6ms
memory: 4152kb

input:

1000
cceooojojcecesjojsssesjojccoecceoojecsscojsosoccojscjcjssococjscssosecooeejoosojeecjceoeeojcocosjcecocoesjceejjecssjejccjsjosjsjcjesjojcojocjjeooeccojjosjcjjcjoecseecsjccojcoessecejcocosecsojeoceejeccejeoosssscecjcssooojoseeccosocoeejjecsjeoecejsoojessoescecjjsscecoccjsjsscccssjoeejsscoesecssco...

output:

eedcccbcbededabcbaaadabcbeecdeedccbdeaaecbacaceecbaebebaacecebaeaacadeccddbccacbddebedcddcbececabedececdabeddbbdeaabdbeebabcababebdabcbecbcebbdccdeecbbcabebbebcdeaddeabeecbecdaadedbececadeacbdceddbdeedbdccaaaaedebeaacccbcaddeecacecddbbdeabdcdedbaccbdaacdaedebbaaedeceebabaaeeeaabcddbaaecdadeaaecebdcb...

result:

ok single line: 'eedcccbcbededabcbaaadabcbeecde...acbebaaecdddeadeeaeaaeeabdbcbba'

Test #10:

score: 0
Accepted
time: 3ms
memory: 4148kb

input:

1000
mmmfqfmpqrccmqfcrprpfppcpcffqcrcrcqmmmqmrfmrpqffppcmqpqqrfqqcffpmqqfmcmpmcfcqcffqmrmqrmmqmffpqqpfqrcppmmpmrqffmfcfffqmrprfcpfqffrrrmcqmpfmpfmprmcrrqqrmcrcmpcffmpfcprmcpmcfmpcfprrqrpcqccpcmmqcqqfmrcrrqrqcmcpqcrcqcrrpmpmfccqcffrrfmpfqqmqcpmfpmqpcmqpmfqpffmqpcrmcmqrqfqqcrfffcfqprcprrmfppfpqqmmrcmc...

output:

fffedefcdbaafdeabcbceccacaeedababadfffdfbefbcdeeccafdcddbeddaeecfddefafcfaeadaeedfbfdbffdfeecddcedbaccffcfbdeefeaeeedfbcbeacedeebbbfadfcefcefcbfabbddbfabafcaeefceacbfacfaefcaecbbdbcadaacaffdaddefbabbdbdafacdabadabbcfcfeaadaeebbefceddfdacfecfdcafdcfedceefdcabfafdbdeddabeeeaedcba

result:

ok single line: 'fffedefcdbaafdeabcbceccacaeeda...fedceefdcabfafdbdeddabeeeaedcba'

Test #11:

score: 0
Accepted
time: 8ms
memory: 4240kb

input:

1000
hljikoiljhkhhikjihlhokhjnjlijjhkhinohnioklilhonihliiiohllkniiokjiihkokkkhnijkkkijnnjljoihiljlnjhllnjlhojnjojnnjhllilnnoloiijioiohkononkijhniihjiinononokjjokljjkinonhkojknohijhlilhjjlhkhjoonojlknjnljniklohinhinnnkhnkljjknkjhhlhlkllihhihnlkjklhokkihlhlikjhkjokhkniooljkojjiiljjjnojkiojnkniljnkoljn...

output:

gfedcbdfegcggdcedgfgbcgeaefdeegcgdabgadbcfdfgbadgfdddbgffcaddbceddgcbcccgadecccdeaaefebdgdfefaegffaefgbeaebeaaegffdfaabfbddedbdbgcbabacdegaddgeddabababceebcfeecdabagcbecabgdegfdfgeefgcgebbabefcaeafeadcfbgdagdaaacgacfeecaceggfgfcffdggdgafcecfgbccdgfgfdcegcebcgcadbbfecbeeddfeeeabecdbeacadfeacbfeacbfac...

result:

ok single line: 'gfedcbdfegcggdcedgfgbcgeaefdee...cdeedgccfddabeafeaeeeeecdbbcbba'

Test #12:

score: 0
Accepted
time: 8ms
memory: 4372kb

input:

1000
cbpfmafbflfblamcccmcbbfqqfpbaaqfpccqqbqfcabmlbbmfqcpfqmcpqcfffacqbpbllappmbmcfpqqfqlcbcaclbbfqmqfqlammbcqblbccqcpabapcbbfcmpfcmmcpccbcbcfblfclmflpfaqppqbfppfpacmfqqafcmlmbqcbbfqaqffpafcbcqfpqmpcabfmcqcqpblfccmffplcbbaamcallbblmbcmammaablfmbfqqlcqacpqfaqpfcbamamcqcmqqffqfcbcffmabcfplabbmfqcampqc...

output:

hgfceacgcbcgbaehhhehggcddcfgaadcfhhddgdchagebggecdhfcdehfdhcccahdgfgbbaffegehcfddcdbhghahbggcdedcdbaeeghdgbghhdhfagafhggchefcheehfhhghghcgbchbecbfcadffdgcffcfahecddachebegdhggcdadccfachghdcfdefhagcehdhdfgbchheccfbhggaaehabbggbegheaeeaagbcegcddbhdahfdcadfchgaeaehdheddccdchghcceaghcfbaggecdhaefdhhehbf...

result:

ok single line: 'hgfceacgcbcgbaehhhehggcddcfgaa...ahhahgdghbegegbhdeagdeafeadcbaa'

Test #13:

score: 0
Accepted
time: 8ms
memory: 4144kb

input:

1000
oikrbsjdjjsrcdbroobidjojkdjikbirccicdiicbskkciijkssjirjokcjosbbkcdkbrdroirsooiibsjokircbkjbrbkoobkrddcbossoskosbiksodsjkkocoricjkdscdickjdisiddbsdiikdisdcjdkddscdjjrkkddjbbbdidkidddijbibdisbicjokodrcbjkkcrokiciijssjjbscrssccckdjdirbbcocjkobrijssijjcjrcskdobrjcscbocoobdocobrorosiidoscrijjorsrirk...

output:

ihgdaefbffedcba

result:

ok single line: 'ihgdaefbffedcba'

Test #14:

score: 0
Accepted
time: 9ms
memory: 4152kb

input:

1000
cmctnhnrhchdnnaitttiirathamrkhtahnmrttkrhdimhatrttatrtmkiminahadihkdkrdthrkrhiandtmhtrdtiinicrmmirinnarkanadnhaatkkakarirnahrtcndarniihkdnddkhitkmdrtarhinirccaitdccnncnmnanhmtrdthkrmakdkktnimictdanrcmrhtcakmcmnahcrahkhtmadmhkrriinakkrhhddmnaknacchtacaktdnmaihnhcmtcchrdmihritatkactmmhattcrkknnkr...

output:

jijhbebfejeabbcdhhhddfchecifgehcebifhhgfeadiechfhhchfhigdidbcecadegagfahefgfedcba

result:

ok single line: 'jijhbebfejeabbcdhhhddfchecifge...chfhigdidbcecadegagfahefgfedcba'

Test #15:

score: 0
Accepted
time: 9ms
memory: 4404kb

input:

1000
nlptkhpknhcldctjtdfcilithddhcpcplfjijtpnijiiiikcccifljnfijidnlkihpncddjnlncnpttdhiihcpithpiljjcjilinpkfchpdpjpcdpccncncjnfcklcccltclcldhpllijdplnjkijljddikcihnjpclcpiffhppnnfpnjtfhphpipctffhkjlkfnchphhnkdpcdttcijnlhcppnptlhphiktknnjfntipftdnffhhjhciphlnijltnttndpninttjciikfchjkpkhtfkdnhhnijcitt...

output:

kjhfidhikdajgafcfgbaejefdggdahahjbcecfhkeceeeeiaaaebjckbecegkjiedhkaggckjkakhffgdeedahefdhejccacejekhibadhghchaghaakakackbaijaaajfajajgdhjjecghjkciecjcggeiaedkchajahebbdhhkkbhkcfbdhdhehafbbdicjibkadhddkighagffaeckjdahhkhfjdhdeifikkcbkfehbfgkbbddcdaehdjkecjfkffkghkekffcaeeibadcihidfbigkddkecaeffecafi...

result:

ok single line: 'kjhfidhikdajgafcfgbaejefdggdah...igehhcbbbjkdbgkhagajihfgafedcba'

Test #16:

score: 0
Accepted
time: 6ms
memory: 4152kb

input:

1000
bcqeheddhchrddimchmikdfsmimikchdmmbreskiqfbikcdfhhmfbmqrmsibihciqqqsefmebmrbmcedhmdkmiqbdhsmkcqkifmiddhfieqersmksfiidqesisffhhrsbkiddbkbksrchchccifqkciidibqssihmmfrmfbeffhhqdbhmmdsisqkhqmhsmhckbccfreihdreiqqfcdsfffdbhsicbqfirhhchemfihedrbbkekhsfcccfmmieqfrrimsfddbqmkemciqfqrfbsresbhsiceffebfkfd...

output:

lkihjhaajkjgaabfkjfbeacdfbfbekjafflghdebiclbekacjjfclfigfdblbjkbiiidhcfhlfglfkhajfaefbilajdfekiebcfbaajcbhihgdfedcbba

result:

ok single line: 'lkihjhaajkjgaabfkjfbeacdfbfbek...ilajdfekiebcfbaajcbhihgdfedcbba'

Test #17:

score: 0
Accepted
time: 10ms
memory: 4148kb

input:

1000
pdipkeekpamgdiiafeigfaaoktngfpmkggmkdmaicekcoggpattofngagapfaifodftdmkfoctpdkkomkttgpotdggeeonkdieocdcdnffiittompaopieonamnpiigienpenieaigfiieaeiiftmpkaaegopdeamatngamagapfnppkgciptpnmpcmiagfdoaiemftddddenikaiidmmdopfapgnmefdidgdkegofmeofnetktinipopkfdpkikcodtkapngefetkaffgppkkieikmfadottcceipk...

output:

mlcmkddkmjbilccjhdcihjjekagihmbkiibklbjcfdkfeiimjaaehgijijmhjchelhalbkhefamlkkebkaaimealiiddegklcdeflflghhccaaebmjemcdegjbgmccicdgmdgcdjcihccdjdcchabmkjjdiemldjbjagijbjijmhgmmkifcmamgbmfbcjihlejcdbhalllldgckjcclbblemhjmigbdhlclilkdiehbdehgdakacgcmemkhlmkckfelakjmgidhdakjhhimmkkcdckbhjleaaffdcmkaigdk...

result:

ok single line: 'mlcmkddkmjbilccjhdcihjjekagihm...gcklglkjhjjfhjccbbfbihegfecdcba'

Test #18:

score: 0
Accepted
time: 10ms
memory: 4184kb

input:

1000
redfdnprmcbbhfdlmepnolpfotdhlrrlbedeccnrdblprfbdptohmbldthoorcrnceelhochsrppfbotmlchhsftlemfhbcnpdltofescnhmdhombpcddpscfhnmrnordbehnpdlrbbbfcdsoohpbhtcpsrhffobpehhdtmfcmmsbnpcedtmpfcpfporehfbfbotcpbeobnlednofedbpldcrosfcfnplnhbdlohfedrpsosmrpedenpfrrnsbehslloeldemsoeenfrsssppldtnfelrlboepptlpo...

output:

nlecekjndbaafcehdljkmhjcmiefhnnhalelbbkneahjncaejimfdaheifmmnbnkbllhfmbfgnjjcamidhbffgcihldcfabkjehimclgbkfdefmdajbeejgbcfkdnkmnealfkjehnaaacbegmmfjafibjgnfccmajlffeidcbddgakjbleidjcbjcjmnlfcacamibjalmakhlekmcleajhebnmgcbckjhkfaehmfclenjgmgdnjlelkjcnnkgalfghhmlheldgmllkcngggjjheikclhnhamljjihjmlljae...

result:

ok single line: 'nlecekjndbaafcehdljkmhjcmiefhn...dcchlhkkjadjgbidfhhbhcegfebdcba'

Test #19:

score: 0
Accepted
time: 10ms
memory: 4212kb

input:

1000
hegsdmeapjipglsnfmianparlaersaragrlepapooflllgnsiggjdjdpraslojdfdaaesfpllhnihselidejrgrfmmaldfnrejophlanehrdsjrrsidomemhmeafrgrrajrrfrjjgpfmgsprifnolfglhmnfapljamsldgrfsomopfedsegdadmojparrssjpfsfaporljfhsfhhgrnilmhdlppoldhaomrjprnfirlmnnhfseofjenrohflfndfiimmsirjopeeipafhphogsafrngjjiprnifeila...

output:

omjgbnmaidkijfglcnkaliahfamhgahajhfmiaieecfffjlgkjjdbdbihagfedbcbaa

result:

ok single line: 'omjgbnmaidkijfglcnkaliahfamhga...iaieecfffjlgkjjdbdbihagfedbcbaa'

Test #20:

score: 0
Accepted
time: 10ms
memory: 4400kb

input:

1000
dgenmltemgsnbimnhicfomcbbliddfhllohldnthotglfeoobtohilblglibclhdlmmfgseslgseiimkhhbflfekildtgllfdkjolnilbtscnfjklfidbknhlljkokodbtmoccbiigicgnfdfbhktcomilkbijisdhmjcmgbkomojjfmdnjltbmnnsbslbtflkkbsofehhnndmjtifsisggeocdbtolimtnlhcoekedjsnhoobbjnhihbbtkomnjomiskfobilkjkbocdmhnffglfogtosndsitecdf...

output:

pnmcdgbmdnjcaodckohifdhaagoppikggfkgpcbkfbngimffabfkogagngoahgkpgddinjmjgnjmoodlkkaigimlogpbnggiplefgcogabjhcielgiopalckggelflfpabdfhhaoonohncipiaklbhfdoglaoeojpkdehdnalfdfeeidpcegbadccjajgabigllajfimkkccpdeboijojnnmfhpabfgodbcgkhfmlmpejckffaaeckokaablfdcefdojlifaoglelafhpdkciingifnbfjcpjobmhpinhepd...

result:

ok single line: 'pnmcdgbmdnjcaodckohifdhaagoppi...jbldlkgbbhfjhkeffjfaihgafeedcba'

Test #21:

score: 0
Accepted
time: 7ms
memory: 4436kb

input:

1000
chkkcqdcggjsjadhtrjqgntecdhgrsqsbkqqqsodfkfcblqntsjrjnfcteghkafgjqtaaabdddakcbnabaqtoqdkogfgqaebrsdcdqkadkeqoleknokgfhshkqdhhsjddatblonnlnkllordrbgjjsjdedhlgsdsodcbcbojaehanhqetgnasocghtcrdbqdclegfscnqcelofffckefedohhadlhhnadnffbkreeletoknrrhrffrogrcgghaeglcefhbaaefggaabohttrstfgfqgcnnbeqjdklqr...

output:

qoeeqbnqjjdidknohldbjchfqnojlibimebbbipngegqmabchidldcgqhfjoekgjdbhkkkmnnnkeqmckmkbhpbnepjgjbkfmlinqnbeknefbpafecpejgoioebnooidnnkhmapccaceaaplnlmjddidnfnoajinipnqmqmpdkfokcobfhjckipqjohqlnmbnqafjgiqcbqfapgggqefgfnpooknaoockncggmelffafhpecllolgglpjlqjjokfjaqfgomkkfgjjkkmpohhlihgjgbjqccmfbdneablpondg...

result:

ok single line: 'qoeeqbnqjjdidknohldbjchfqnojli...jegimmjlbdlhlkjhbehfihgfedbbcba'

Test #22:

score: 0
Accepted
time: 11ms
memory: 4092kb

input:

1000
mmimrctldielpadeocgmaifcafkhjccnaktgmsejehgcoialclsopnrokmamnahangmhfmgcrmlatislecsgiaaarkpssscshtcrncptsoijirnogggititpohtgcaegdaaeoegmioridoggttsorppehjhiondejafeanspotcngepscflcseeikasopdmdthgnasdnfedkookrnkjcsinkejkiskasoecnlnkigrdfktopfcoehlsednknimtshljrdlnnainrfskmddegerildgcnkmfoapefalm...

output:

rrormilfcodfkpcdhinrpojipjbgqiiapblnredqdgnihopfifehkamhbrprapgpanrgjrnimrfploefdienopppmbkeeeieglimaiklehoqomahnnnololkhglnipdncppdhdnrohmochnnllehmkkdgqgohacdqpjdpaekhliandkeijfieddobpehkcrclgnapecajdcbhhbmabqieoabdqboebpehdiafabonmcjblhkjihdgfedcaba

result:

ok single line: 'rrormilfcodfkpcdhinrpojipjbgqi...bpehdiafabonmcjblhkjihdgfedcaba'

Test #23:

score: 0
Accepted
time: 11ms
memory: 4148kb

input:

1000
qdjplrlfkgqbnncnglcfdijiifboesenqmfjilnqrppabmntsgdefcjrkotiejacrdmqqoegtspofdejngqmddjatlfakscdcfdfjfrqkfllmoteldgnirkmpmbjfpkkiblsnjsqjijposifejtoliolrfionfiirqrdojcfqipraenpfeqfqcegkfctssmrrbdjkkrbctqiqejsfsqcgdnoaelcfaslegtrcefleqqjbtgjpbjrdqtmajcfgotetrkeeoqptnsbkgoaedsqorniralmeklcigocfal...

output:

srlkhphdbiscqqeqihedroloodcjmgmqsadlohqspkkncaqfgirmdelpbjfomlneprassjmifgkjdrmlqisarrlnfhdnbgeredrdldpsbdhhajfmhriqopbakacldkbbochgqlgslolkjgodmlfjhojhpdojqdoopsprjledsokpnmqkdmsdsemibdefggappcrlbbpcefsosmlgdgseirqjnmhednghmifpemdhmsslcfilkclprsfanledijfmfpbmmjskfqgcbijnmrgsjpqopnhambheoijednhhkrph...

result:

ok single line: 'srlkhphdbiscqqeqihedroloodcjmg...polnlkjkdmllafkhbjbihgeafecdcba'

Test #24:

score: 0
Accepted
time: 3ms
memory: 4188kb

input:

1000
jtjjjjjjjjjjjjjjjjjjjjtjjjjtjjjjjjjjjjjjjjtjjjjjjjjjjjjtjjjjjjajjjjjjjjjjjjjjjjjjjjjjjjjjjjjtjjjtjjjjjjtjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjtjjjjtjjjjjjjjjjjjjjjjjtjjjjjtjatjjjjtjtjjjjjajjjjjtjjtjtajjjjtjjjjjjjjjtajjjjjjjjtjjjjjjjjjjjjttjjjtjjjjjjatttjjjtjjtjjjtjjtjtjjajjjttjajtjjtjttjjjjktjjjt...

output:

sossssssssssssssssssssossssossssssssssssssossssssssssssossssssqsssssssssssssssssssssssssssssosssossssssossssssssssssssssssssssssssssssssssssossssosssssssssssssssssosssssosqossssososssssqsssssossosoqssssosssssssssoqssssssssossssssssssssoosssossssssqooosssossosssossosossqsssoosqsossosoosssstosssoooosq...

result:

ok single line: 'sossssssssssssssssssssossssoss...adgiebdheadaegdagdacefecedbdcba'

Test #25:

score: 0
Accepted
time: 5ms
memory: 4208kb

input:

1000
frffrffffffffffpfrffffpfffrfrfffffrrfrffffpffffrfpfrffffrfprfffpfrfffffffrfrffffffrfffrfpffffrpfffffrfrfffffffffffrffffpffrrffpfafffsffffffpfsfrfrfrfrffffffrfkffsffffffrffrfaaffafrrfffprffrprrfffrrfpfffrffrfffpifffrsrfipffpfprfrsffafffprffifrapfrrrrrrpffrfrfrspffsarffrfrfrppffparfsffrrfpfpaafaf...

output:

rsrrsrrrrrrrrrrtrsrrrrtrrrsrsrrrrrssrsrrrrtrrrrsrtrsrrrrsrtsrrrtrsrrrrrrrsrsrrrrrrsrrrsrtrrrrstrrrrrsrsrrrrrrrrrrrsrrrrtrrssrrtrlrrrnrrrrrrtrnrsrsrsrsrrrrrrsrmrrnrrrrrrsrrsrllrrlrssrrrtsrrstssrrrssrtrrrsrrsrrrtorrrsnsrotrrtrtsrsnrrlrrrtsrrorsltrsssssstrrsrsrsntrrnlsrrsrsrsttrrtlsrnrrssrtrtllrlrnsstr...

result:

ok single line: 'rsrrsrrrrrrrrrrtrsrrrrtrrrsrsr...faiceccaidfheaeeacecbfegcfedcba'

Test #26:

score: 0
Accepted
time: 3ms
memory: 4148kb

input:

1000
ssrsaodoododddodadeosisdsdddodsddoodrdsodadsodpodadorosrrdrodddobabdorodddoddodaoodoaoadeodaaddosoososoarossdsmroodsoddsdddsiddordsddrsadooodsooerdoroorpdooriosrdddosaoddrddodridoboirsdiirdosdsamoseaiododordsoosdaipososasoesiddsopddddddrsdbopdorsadaaooedbioddcmmaerooesdooaopadmarsodasmseedlmaio...

output:

rrprtqsqqsqsssqstsoqrnrsrsssqsrssqqspsrqstsrqsmqstsqpqrppspqsssqhthsqpqsssqssqstqqsqtqtsoqsttssqrqqrqrqtpqrrsrlpqqsrqssrsssrnssqpsrssprtsqqqsrqqopsqpqqpmsqqpnqrpsssqrtqsspssqspnsqhqnprsnnpsqrsrtlqrotnqsqsqpsrqqrstnmqrqrtrqornssrqmssssssprshqmsqprtsttqqoshnqssklltopqqorsqqtqmtsltprqstrlroosjltnqstsst...

result:

ok single line: 'rrprtqsqqsqsssqstsoqrnrsrsssqs...gcgffbbdfdficffhcedbcfgfeeddcba'

Test #27:

score: 0
Accepted
time: 9ms
memory: 4036kb

input:

1000
istacriaaimhkashicshismmsnihcnramchstiacniasscsricnchsccsiscssisacitassmnsakinsabhhctssfsiciaiaarsiisicissshcbqciaiknrscaaatnaarcmafsicmabialsncnacricsicakicciitnsicqanqaissthsbamismbaicmaantmmbairnrmhrcrcmhrisassmihcrnbnisfbirtgitbacrnhmbsasashmcmfccbminksammsspmnmmaiceabsitcttintqmacksbmaaias...

output:

rtpmqirmmrnosmtorqtortnntkroqkimnqotprmqkrmttqtirqkqotqqtrtqttrtmqrpmttnktmsrktmcooqpttftrqrmrmmitrrtrqrtttoqchqrmrskitqmmmpkmmiqnmftrqnmcrmltkqkmqirqtrqmsrqqrrpktrqhmkhmrttpotcmnrtncmrqnmmkpnncmrikinoiqiqnoirtmttnroqikckrtfcripbrpcmqikonctmtmtonqnfqqcnrkstmnnttanknnmrqgmctrpqpprkphnmqstcnmmrmtknnck...

result:

ok single line: 'rtpmqirmmrnosmtorqtortnntkroqk...hgjneamgflbllckbjdaiebhgfbedcba'

Test #28:

score: 0
Accepted
time: 11ms
memory: 4384kb

input:

1000
ihtnhaatmfnnjhmnflannfttfsjaiqmqjddqqrlfhmmjnmhqlthqmfhhftfiffftttmchnifohnhfmftrmadqhjdhtnffnmfjnctaccadamdqnmefdnhrchdqssihjnqmomrmlohnnqdlnmahatdahmhqffodnfttairantloriaqnqhnqmihasahdihnjnbcdrtndjqdlcqhbmajislhntiatttcfhfadcacolchfhfnmnanqajthfmjpqimihqqhkeocahrafhlfomffrftnnmtcfqrhntirhbceh...

output:

tpsmprrshlmmgphmlnrmmlsslegrtihigjjiiknlphhgmhpinspihlpplsltlllssshqpmtlopmplhlskhrjipgjpsmllmhlgmqsrqqrjrhjimhdljmpkqpjieetpgmihohkhnopmmijnmhrprsjrphpillojmlssrtkrmsnoktrimipmihtprerpjtpmgmfqjksmjgijnqipfhrgtenpmstrsssqlplrjqrqonqplplmhmrmirgsplhgbithtpiipadoqrpkrlpnlohllklsmmhsqlikpmstkpfqdpdntai...

result:

ok single line: 'tpsmprrshlmmgphmlnrmmlsslegrti...aefgmelkhjdhafffaiihgfdebdbccba'

Test #29:

score: 0
Accepted
time: 7ms
memory: 4244kb

input:

1000
opaqmbjhoctlnmefoocaqnqtecgbnirdjjhqkhiftktbslrpbacpjbrbreapkptlrcpjqpfobtiiqqtjpsrpitbljanmfdfbhldlplsniffflegrtckqjdarlhleffsalnjgmfrpasfgatgfffraheohidlolipksnskjjfaihidesjnlasitccjbbhpheglpdertnqqlgsfafikpneglbokpfaejipaeolmdrinnafpntfichatljgiqlaqhfmsmggdohcncpihiinqbssjnaleiripnbgllhcnnha...

output:

trhmcsektopgfcjbttohmfmpjodsfqaleekmnkqbpnpsigarshoresasajhrnrpgaoremrbtspqqmmperiarqpsgehfcblbskglgrgifqbbbgjdaponmelhagkgjbbihgfedcba

result:

ok single line: 'trhmcsektopgfcjbttohmfmpjodsfq...qbbbgjdaponmelhagkgjbbihgfedcba'

Test #30:

score: 0
Accepted
time: 10ms
memory: 4148kb

input:

1000
imkissilgtjrjrspldhdfeoeknmgfndooeebenddotbsidlfjtffirrgqkjhhcapnjokhphrrcfqhtgfdpgfbboqpioknijgddtkjksnlboqrapfhljhlnhegacqbhfnjlfhbkqhrlkonjolspipkcoclnertlbpacdkmrpdpobgologfiokrprnorltfdaljfmdtpsarctbgahcfsckofhrhrfgnehkfangfmfpbgithhfpfdrhcnhfriihbhfngghtprhnhmngfgbpfqngmcpgoihqoakgrgskghf...

output:

stpsooskiqamamolkrdrcjnjpbticbrnnjjejbrrnqeosrkcaqccsmmifpaddghlbanpdldmmgcfdqicrliceenflsnpbsairrqpapobkenfmhlcdkadkbdjihgfedcba

result:

ok single line: 'stpsooskiqamamolkrdrcjnjpbticb...qpapobkenfmhlcdkadkbdjihgfedcba'

Test #31:

score: 0
Accepted
time: 5ms
memory: 4440kb

input:

1000
nhoklkcjhfljgqlrfkpendbcscimicfqsqsdtlrrmktnphhcrfaoipamstiokficaqrpsnbsjecrtprseqkidffqthljgfglfpcemrjhjfbgqlrossdkiosqfslrsfnjqhbjbsigoklqnfjjjjebonmbhfipppinbqogdbmsbhhonhjofjbdsgrljjjkbjigbsjlsophibpooobffpqiqoslsdssljohkifjljdbsopbjsodblrsdqjlrdqbbrfojjspjgilfbppdjbribbsorbqqqqompobgoqsopo...

output:

smfhdhplmadljedcahqosikpbpgngpaebebirdccnhrsqmmpcatfgqtnbrgfhagptecqbskblopcrqcboehgiaaermdljajdaqponclmlakjedcfbbihgfbeabdcba

result:

ok single line: 'smfhdhplmadljedcahqosikpbpgngp...daqponclmlakjedcfbbihgfbeabdcba'

Test #32:

score: 0
Accepted
time: 6ms
memory: 4148kb

input:

1000
rcaiopeihfibnahpinlspnlpfqgaptnfqsgmtmfaamtrpgophergqdrrhrqqijgfqpilbbelgkddktfrofeaetqibeegqtkllgaeltredajqqtqbfrqdlbcifelfltoerilflnedeofdqifeforrddeqfqdqlrfplqelfqtjfqldqqdadqqqqlfordiqqeolirdrldqdgefaqfrflqeaffdrdarrqqrffqllfqaqtfdfeqdtdfraodllqeddqdkaifqfeqddleqlqqqlflrpigfdeldfdfddlladkfe...

output:

qpikohnklfkmgilhkgjdhgjhfecihbgfedcaba

result:

ok single line: 'qpikohnklfkmgilhkgjdhgjhfecihbgfedcaba'

Test #33:

score: 0
Accepted
time: 0ms
memory: 4200kb

input:

1000
lctfejbslbflpmmrkkmqklrkdhbgirfctcpghhklbtantbhihgmtokoibhrokrblprbamblkgbkttnlklpnrlpbhgpbiblnrkhbolloookhrblilokbktoblkrkhkkikbgrkkbkkgkkltobglbklkrbbkgklbokkrrklklbkglklgkkkobbkkkkgbgkrbkkglbbkgbklkkblgtkkkkkbbkklblolbbkkrkbbgkbklgbklkrkrbbkblkkrbkllkbbbkkglllgkoklkkkkkkblkolkrblkkkkkkkllbkk...

output:

lngotserleolmhhcaahqalcapdeifcongnmiddalegkjgedfdihgbabfedcba

result:

ok single line: 'lngotserleolmhhcaahqalcapdeifcongnmiddalegkjgedfdihgbabfedcba'

Test #34:

score: 0
Accepted
time: 3ms
memory: 4372kb

input:

1000
bnktqidsiockjnaaggrkajmnrkgabnijjbkgabbnrknnjjgarbaantbaskanbabgrbanbnbnasgaaabbbaraaaakaabbaraggaaraabbnbabranabganbanbabaanrabbbabrkajaarkababbaaabrgbbaaaaaaarbaaabaaaaagaanabaaabaaaaabbbbaaaaaaaaaaanraaaaabaabaaabbabaarbaabaarbaaaaaaaaanaabaaaaaaaaaaaabnbaaaaaaaabaaaaabaaabnaaaraaabaaaaabaaa...

output:

ogdnmjlkjihdbgccffedcba

result:

ok single line: 'ogdnmjlkjihdbgccffedcba'

Test #35:

score: 0
Accepted
time: 1ms
memory: 4252kb

input:

1000
qqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqq...

output:

aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa...

result:

ok single line: 'aaaaaaaaaaaaaaaaaaaaaaaaaaaaaa...aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa'

Test #36:

score: 0
Accepted
time: 1ms
memory: 4208kb

input:

1000
nnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnn...

output:

aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa...

result:

ok single line: 'aaaaaaaaaaaaaaaaaaaaaaaaaaaaaa...aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa'

Test #37:

score: 0
Accepted
time: 1ms
memory: 4204kb

input:

1000
ttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttt...

output:

aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa...

result:

ok single line: 'aaaaaaaaaaaaaaaaaaaaaaaaaaaaaa...aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa'

Test #38:

score: 0
Accepted
time: 1ms
memory: 4240kb

input:

1000
mmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmm...

output:

aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa...

result:

ok single line: 'aaaaaaaaaaaaaaaaaaaaaaaaaaaaaa...aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa'

Test #39:

score: 0
Accepted
time: 1ms
memory: 4144kb

input:

1000
kkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkk...

output:

aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa...

result:

ok single line: 'aaaaaaaaaaaaaaaaaaaaaaaaaaaaaa...aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa'

Test #40:

score: 0
Accepted
time: 1ms
memory: 4200kb

input:

1000
ppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppp...

output:

aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa...

result:

ok single line: 'aaaaaaaaaaaaaaaaaaaaaaaaaaaaaa...aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa'

Test #41:

score: 0
Accepted
time: 1ms
memory: 4212kb

input:

1000
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa...

output:

aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa...

result:

ok single line: 'aaaaaaaaaaaaaaaaaaaaaaaaaaaaaa...aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa'

Test #42:

score: 0
Accepted
time: 0ms
memory: 4152kb

input:

1000
cgjmhtkrdsnoeqiplbafcgjmhtkrdsnoeqiplbafcgjmhtkrdsnoeqiplbafcgjmhtkrdsnoeqiplbafcgjmhtkrdsnoeqiplbafcgjmhtkrdsnoeqiplbafcgjmhtkrdsnoeqiplbafcgjmhtkrdsnoeqiplbafcgjmhtkrdsnoeqiplbafcgjmhtkrdsnoeqiplbafcgjmhtkrdsnoeqiplbafcgjmhtkrdsnoeqiplbafcgjmhtkrdsnoeqiplbafcgjmhtkrdsnoeqiplbafcgjmhtkrdsnoeqi...

output:

tsrqponmlkjihgfedcbatsrqponmlkjihgfedcbatsrqponmlkjihgfedcbatsrqponmlkjihgfedcbatsrqponmlkjihgfedcbatsrqponmlkjihgfedcbatsrqponmlkjihgfedcbatsrqponmlkjihgfedcbatsrqponmlkjihgfedcbatsrqponmlkjihgfedcbatsrqponmlkjihgfedcbatsrqponmlkjihgfedcbatsrqponmlkjihgfedcbatsrqponmlkjihgfedcbatsrqponmlkjihgfedcba...

result:

ok single line: 'tsrqponmlkjihgfedcbatsrqponmlk...kjihgfedcbatsrqponmlkjihgfedcba'

Test #43:

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

input:

1000
pblmadhofstjkniqgercpblmadhofstjkniqgercpblmadhofstjkniqgercpblmadhofstjkniqgercpblmadhofstjkniqgercpblmadhofstjkniqgercpblmadhofstjkniqgercpblmadhofstjkniqgercpblmadhofstjkniqgercpblmadhofstjkniqgercpblmadhofstjkniqgercpblmadhofstjkniqgercpblmadhofstjkbiqgercpblmadhofstjkniqgercpblmadhofstjkni...

output:

tsrqponmlkjihgfedcbatsrqponmlkjihgfedcbatsrqponmlkjihgfedcbatsrqponmlkjihgfedcbatsrqponmlkjihgfedcbatsrqponmlkjihgfedcbatsrqponmlkjihgfedcbatsrqponmlkjihgfedcbatsrqponmlkjihgfedcbatsrqponmlkjihgfedcbatsrqponmlkjihgfedcbatsrqponmlkjihgfedcbatsrqponmlkjihsfedcbatsrqponmlkjihgfedcbatsrqponmlkjihgfedcba...

result:

ok single line: 'tsrqponmlkjihgfedcbatsrqponmlk...kjihgfedcbatsrqponmlkjihgfedcba'

Test #44:

score: 0
Accepted
time: 4ms
memory: 4144kb

input:

1000
fjphtqmasenidorgcblkfjphtqmasenidorgcblkfjmhtqmasenidorgcblkfjphtqmasenidorgcblkfjphtqmasesidorgcblkfjphtqmasenidorgcblkfjphtqmasenidorgcblkfjphtqmasenidorgcblkfjphtqmasenidorgcblkfjphtqmasenidorgcblkfjphtqmasenidorgcblkfjphtqmasenidorgcblkfjphtqmasenidorgcblkfjphtqmasenidorgcblkfjphtqmasenidor...

output:

tsrqponmlkjihgfedcbatsrqponmlkjihgfedcbatsnqponmlkjihgfedcbatsrqponmlkjihgfedcbatsrqponmlklihgfedcbatsrqponmlkjihgfedcbatsrqponmlkjihgfedcbatsrqponmlkjihgfedcbatsrqponmlkjihgfedcbatsrqponmlkjihgfedcbatsrqponmlkjihgfedcbatsrqponmlkjihgfedcbatsrqponmlkjihgfedcbatsrqponmlkjihgfedcbatsrqponmlkjihgfedcba...

result:

ok single line: 'tsrqponmlkjihgfedcbatsrqponmlk...kjihgfedcbatsrqponmlkjihgfedcba'

Test #45:

score: 0
Accepted
time: 0ms
memory: 4148kb

input:

1000
calpitqnksdejhrfmgbocalpitqnksdejhrfmgbocalpitqnksdejhrfmgbocalpitqnksdejhrfmgbocalpitqnksdejhrfmgbocalpitqnksdejhrfmgbocalpitqnksdejhrfmgbocalpitqnksdejhrfmgbocalpitqnksdejhrfmgbocalpitqnksdejhrfmgbocalpitqnksdejhrfmgbocalpitqnksdeghrfmgbocalpitqnksdejhrfmgbocalpitqnksdejhrfmgbocalpitqnksdejhr...

output:

tsrqponmlkjihgfedcbatsrqponmlkjihgfedcbatsrqponmlkjihgfedcbatsrqponmlkjihgfedcbatsrqponmlkjihgfedcbatsrqponmlkjihgfedcbatsrqponmlkjihgfedcbatsrqponmlkjihgfedcbatsrqponmlkjihgfedcbatsrqponmlkjihgfedcbatsrqponmlkjihgfedcbatsrqponmlkjicgfedcbatsrqponmlkjihgfedcbatsrqponmlkjihgfedcbatsrqponmlkjihgfedcba...

result:

ok single line: 'tsrqponmlkjihgfedcbatsrqponmlk...kjihgfedcbatsrqponmlkjihgfedcba'

Test #46:

score: 0
Accepted
time: 4ms
memory: 4092kb

input:

1000
mirjngelafpcbkosthqdmirjngelafpcbkosthqdmirjngelafpcbkoskhqdmirjngelafpcbkosthqdmirjngelafpcbkosthqdmirjngelafpcbkosthqdmirjngelafpcbkosthldmirjngelafpcbkosthqdmirjngelafpcbkosthqdmirjngegafpcbkosthqdmirjngelafpcbkosthqdmirjngecafpcbkosthqdmirjngelafpcqkosthqdmirjngelafpcbkosthqdmirjngelafpcbko...

output:

tsrqponmlkjihgfedcbatsrqponmlkjihgfedcbatsrqponmlkjihgfegcbatsrqponmlkjihgfedcbatsrqponmlkjihgfedcbatsrqponmlkjihgfedcbatsrqponmlkjihgfedcmatsrqponmlkjihgfedcbatsrqponmlkjihgfedcbatsrqponolkjihgfedcbatsrqponmlkjihgfedcbatsrqponilkjihgfedcbatsrqponmlkjibgfedcbatsrqponmlkjihgfedcbatsrqponmlkjihgfedcba...

result:

ok single line: 'tsrqponmlkjihgfedcbatsrqponmlk...kjihgfedcbatsrqponmlkjihgfedcba'

Test #47:

score: 0
Accepted
time: 0ms
memory: 4208kb

input:

1000
edkkghfnlomcbspaqrtiedkcghfnlomcbspaqrtiedkjghfnlomcbspaqrtiedkjghfnlomcbspaqrtiedkjghfnlomcbspaqrtiedkjghfnlomcbspaqrtiedkjqhfnlcmcbspaqrtiedkjghfnlomcbspaqrtildhjgofnlomcbsparrtielkjghfnlomcbspaqrtiedkjghfnlomcbspaqrcoedkjghfnlgmcdspaqrtiedkjlhfnlomcbspaqrtiedkjghfnlomcbspaqrtiedkjghfnlodcbsp...

output:

tsrrponmlkjihgfedcbatsriponmlkjihgfedcbatsrqponmlkjihgfedcbatsrqponmlkjihgfedcbatsrqponmlkjihgfedcbatsrqponmlkjihgfedcbatsrqdonmlijihgfedcbatsrqponmlkjihgfedcbalsoqpknmlkjihgfeccbatlrqponmlkjihgfedcbatsrqponmlkjihgfedciktsrqponmlpjisgfedcbatsrqlonmlkjihgfedcbatsrqponmlkjihgfedcbatsrqponmlksihgfedcba...

result:

ok single line: 'tsrrponmlkjihgfedcbatsriponmlk...kjihgfadcbatsrqponmlkjihgfedcba'

Test #48:

score: 0
Accepted
time: 6ms
memory: 4372kb

input:

1000
bigqkhkngpjftodemalrbipqchonfpjftodomqlrbigqchknspjhlodemalrbitqchknspjftodemalrbngqchknspjftodemalrbigqchknspjftodemalrbigqchknsptftodemalrbigqchknspjftodefalqbigqchdnspjftodemglmbigqchknspjftodemalrbigqctknspjftodemcljbigqchknspjfjodemalrbigqchcnspjftodemadrbigqckknspjftodemalrbigqchknspjftod...

output:

tsrqnonmrkjihgfedcbatskqpogmikjihgfgdqbatsrqponmlkjobgfedcbatshqponmlkjihgfedcbatmrqponmlkjihgfedcbatsrqponmlkjihgfedcbatsrqponmlkhihgfedcbatsrqponmlkjihgfeicbqtsrqpofmlkjihgfedrbdtsrqponmlkjihgfedcbatsrqphnmlkjihgfedpbjtsrqponmlkjijgfedcbatsrqpopmlkjihgfedcfatsrqpnnmlkjihgfedcbatsrqponmlkjihgfndcba...

result:

ok single line: 'tsrqnonmrkjihgfedcbatskqpogmik...kjihgfedcbatsrqponmlkjihgfedcba'