QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#152440 | #6617. Encoded Strings I | LFCode# | AC ✓ | 22ms | 4268kb | C++14 | 1.7kb | 2023-08-28 08:35:54 | 2023-08-28 08:35:54 |
Judging History
answer
#include <algorithm>
#include <iostream>
#include <cstring>
#include <cstdio>
#include <string>
#include <vector>
#define DEBUG(x) std::cerr << #x << " = " << x << std::endl;
#define forall(G, i_) for (int i_ = 0, __for_siz__ = (int) G.size(); i_ < __for_siz__; ++i_)
#define ALL(x) (x).begin(), (x).end()
typedef long long int lli;
using std::cin;
using std::cout;
using std::endl;
inline int read() {
int s = 0, x = 1; char ch = getchar();
while (!isdigit(ch)) { if (ch == '-') x = -x; ch = getchar(); }
while (isdigit(ch)) { s = s * 10 + ch - '0'; ch = getchar(); }
return s * x;
}
inline int readll() {
long long int s = 0, x = 1; char ch = getchar();
while (!isdigit(ch)) { if (ch == '-') x = -x; ch = getchar(); }
while (isdigit(ch)) { s = s * 10ll + ch - '0'; ch = getchar(); }
return s * x;
}
const int MAXCH = 20 + 2;
const int MAXN = 1000 + 10;
int n;
char sss[MAXN];
int calc[MAXCH];
int g[MAXCH];
std::vector<std::string> resss;
void encode(char *ss, int len) {
memset(g, 0, sizeof g);
for (int i = 0; i < 21; ++i) {
// calc G(s);
memset(calc, 0, sizeof calc);
for (int j = len - 1; j >= 0; --j) {
if (ss[j] - 'a' == i) break;
calc[ss[j] - 'a']++;
}
for (int j = 0; j < 21; ++j) {
g[i] += (calc[j] != 0);
}
}
std::string res;
for (int i = 0; i < len; ++i) res += g[ss[i] - 'a'] + 'a';
resss.push_back(res);
}
int main() {
scanf("%d", &n); scanf("%s", sss);
int len = strlen(sss);
for (int i = 0; i < len; ++i) {
encode(sss, i + 1);
} std::sort(resss.begin(), resss.end());
printf("%s\n", resss[resss.size() - 1].c_str());
return 0;
}
这程序好像有点Bug,我给组数据试试?
Details
Tip: Click on the bar to expand more detailed information
Test #1:
score: 100
Accepted
time: 1ms
memory: 3668kb
input:
4 aacc
output:
bbaa
result:
ok single line: 'bbaa'
Test #2:
score: 0
Accepted
time: 1ms
memory: 3596kb
input:
3 aca
output:
ba
result:
ok single line: 'ba'
Test #3:
score: 0
Accepted
time: 1ms
memory: 3568kb
input:
1 t
output:
a
result:
ok single line: 'a'
Test #4:
score: 0
Accepted
time: 1ms
memory: 3596kb
input:
12 bcabcabcbcbb
output:
cbacba
result:
ok single line: 'cbacba'
Test #5:
score: 0
Accepted
time: 22ms
memory: 4144kb
input:
1000 bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb...
output:
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa...
result:
ok single line: 'aaaaaaaaaaaaaaaaaaaaaaaaaaaaaa...aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa'
Test #6:
score: 0
Accepted
time: 13ms
memory: 4268kb
input:
1000 ggkkkggggggkgggkgkgkkkkkggkkkgggkgkgggkkgkkgkgkgkgkgggkgkkkkgkgkkgkggkgggkgggkgkkgggggkkgkgkkkkgkkkkkkgkkggkkkkggkkkgkgggkggkkgkkgkgggkkggggkkggggkggkkggkgkgkgkkkgkkgkgkkgkkgkgkggkgggkgkkkgkkkgkkggkkggkkgkgkgkkkkkgkkggkgggkkkkgggkggkgggkkkgkkkkggggkkggkkkkgkkggkkkkkkgkgggkkkkkgggggggkgggkkkggkg...
output:
bbaaabbbbbbabbbababaaaaabbaaabbbababbbaabaabababababbbabaaaababaababbabbbabbbabaabbbbbaababaaaabaaaaaabaabbaaaabbaaababbbabbaabaababbbaabbbbaabbbbabbaabbabababaaabaababaabaabababbabbbabaaabaaabaabbaabbaabababaaaaabaabbabbbaaaabbbabbabbbaaabaaaabbbbaabbaaaabaabbaaaaaababbbaaaaabbbbbbbabbbaaabbabbaabb...
result:
ok single line: 'bbaaabbbbbbabbbababaaaaabbaaab...bbbbabbabababaabbbbbababaababaa'
Test #7:
score: 0
Accepted
time: 10ms
memory: 4204kb
input:
1000 edbbbbedddbeebedeedbddebddddbedbbdddeddeeddeebdedbbbdedddeeddbdddbbebbbdbeddbbbbbdeedebdddbbbebebbbdebebbeebbeeddddebdbdedbedddeebedebbddbededbdeebbbbbdbebddbebdbddebbddddbdeebbbddddbedddbedbeebdeeebdedbdededdbdebbedbbbeedbbedebddebbeebddebbebbdebeebddbdeddbdebdebebbdbebdddedbbdbedbbdbebbbddddd...
output:
cbaaaacbbbaccacbccbabbcabbbbacbaabbbcbbccbbccabcbaaabcbbbccbbabbbaacaaabacbbaaaaabccbcabbbaaacacaaabcacaaccaaccbbbbcababcbacbbbccacbcaabbacbcbabccaaaaabacabbacababbcaabbbbabccaaabbbbacbbbacbaccabcccabcbabcbcbbabcaacbaaaccbaacbcabbcaaccabbcaacaabcaccabbabcbbabcabcacaabacabbbcbaabacbaabacaaabbbbbbabba...
result:
ok single line: 'cbaaaacbbbaccacbccbabbcabbbbac...babcbbabccacbccbaaacabcbcccbbaa'
Test #8:
score: 0
Accepted
time: 8ms
memory: 4228kb
input:
1000 hhqjhgqqjhqhqhgggqhgqghhjjgjjqqqhhjhhjqqjqqjqqhghghjhqhghhqhgjgjhqhjjjqjqgjgjgqhqqgjgqghgqjjhqjjgqghjqjhqjhghhghgqjqjhggjjhhjjqhqgqhjjhqqjqjghjjhjhqghqggjqjqjghjqhqjqgjqqjjqjjhjjqghqjjhhjhghhjggqqjjqgjqgqjhqhjqhjqqgjqhghghhjqqhhhjhjjgjjgjqgjqqqggjggqhqgjhqhqqgggqqhqqqjhqgjghhhqgghqqjgjhjqjhhqgh...
output:
ddcbdaccbdcdcdaaacdacaddbbabbcccddbddbccbccbccdadadbdcdaddcdababdcdbbbcbcababacdccabacadacbbdcbbacadbcbdcbdaddadacbcbdaabbddbbcdcacdbbdccbcbadbbdbdcadcaabcbcbadbcdcbcabccbbcbbdbbcadcbbddbdaddbaaccbbcabcacbdcdbcdbccabcdadaddbccdddbdbbabbabcabcccaabaacdcabdcdccaaaccdcccbdcabadddcaadccbabdbcbddcaddacdd...
result:
ok single line: 'ddcbdaccbdcdcdaaacdacaddbbabbc...accdbabaaaaaabababcabbabcdadcba'
Test #9:
score: 0
Accepted
time: 7ms
memory: 4108kb
input:
1000 cceooojojcecesjojsssesjojccoecceoojecsscojsosoccojscjcjssococjscssosecooeejoosojeecjceoeeojcocosjcecocoesjceejjecssjejccjsjosjsjcjesjojcojocjjeooeccojjosjcjjcjoecseecsjccojcoessecejcocosecsojeoceejeccejeoosssscecjcssooojoseeccosocoeejjecsjeoecejsoojessoescecjjsscecoccjsjsscccssjoeejsscoesecssco...
output:
eedcccbcbededabcbaaadabcbeecdeedccbdeaaecbacaceecbaebebaacecebaeaacadeccddbccacbddebedcddcbececabedececdabeddbbdeaabdbeebabcababebdabcbecbcebbdccdeecbbcabebbebcdeaddeabeecbecdaadedbececadeacbdceddbdeedbdccaaaaedebeaacccbcaddeecacecddbbdeabdcdedbaccbdaacdaedebbaaedeceebabaaeeeaabcddbaaecdadeaaecebdcb...
result:
ok single line: 'eedcccbcbededabcbaaadabcbeecde...acbebaaecdddeadeeaeaaeeabdbcbba'
Test #10:
score: 0
Accepted
time: 9ms
memory: 4144kb
input:
1000 mmmfqfmpqrccmqfcrprpfppcpcffqcrcrcqmmmqmrfmrpqffppcmqpqqrfqqcffpmqqfmcmpmcfcqcffqmrmqrmmqmffpqqpfqrcppmmpmrqffmfcfffqmrprfcpfqffrrrmcqmpfmpfmprmcrrqqrmcrcmpcffmpfcprmcpmcfmpcfprrqrpcqccpcmmqcqqfmrcrrqrqcmcpqcrcqcrrpmpmfccqcffrrfmpfqqmqcpmfpmqpcmqpmfqpffmqpcrmcmqrqfqqcrfffcfqprcprrmfppfpqqmmrcmc...
output:
fffedefcdbaafdeabcbceccacaeedababadfffdfbefbcdeeccafdcddbeddaeecfddefafcfaeadaeedfbfdbffdfeecddcedbaccffcfbdeefeaeeedfbcbeacedeebbbfadfcefcefcbfabbddbfabafcaeefceacbfacfaefcaecbbdbcadaacaffdaddefbabbdbdafacdabadabbcfcfeaadaeebbefceddfdacfecfdcafdcfedceefdcabfafdbdeddabeeeaedcba
result:
ok single line: 'fffedefcdbaafdeabcbceccacaeeda...fedceefdcabfafdbdeddabeeeaedcba'
Test #11:
score: 0
Accepted
time: 7ms
memory: 4160kb
input:
1000 hljikoiljhkhhikjihlhokhjnjlijjhkhinohnioklilhonihliiiohllkniiokjiihkokkkhnijkkkijnnjljoihiljlnjhllnjlhojnjojnnjhllilnnoloiijioiohkononkijhniihjiinononokjjokljjkinonhkojknohijhlilhjjlhkhjoonojlknjnljniklohinhinnnkhnkljjknkjhhlhlkllihhihnlkjklhokkihlhlikjhkjokhkniooljkojjiiljjjnojkiojnkniljnkoljn...
output:
gfedcbdfegcggdcedgfgbcgeaefdeegcgdabgadbcfdfgbadgfdddbgffcaddbceddgcbcccgadecccdeaaefebdgdfefaegffaefgbeaebeaaegffdfaabfbddedbdbgcbabacdegaddgeddabababceebcfeecdabagcbecabgdegfdfgeefgcgebbabefcaeafeadcfbgdagdaaacgacfeecaceggfgfcffdggdgafcecfgbccdgfgfdcegcebcgcadbbfecbeeddfeeeabecdbeacadfeacbfeacbfac...
result:
ok single line: 'gfedcbdfegcggdcedgfgbcgeaefdee...cdeedgccfddabeafeaeeeeecdbbcbba'
Test #12:
score: 0
Accepted
time: 6ms
memory: 4232kb
input:
1000 cbpfmafbflfblamcccmcbbfqqfpbaaqfpccqqbqfcabmlbbmfqcpfqmcpqcfffacqbpbllappmbmcfpqqfqlcbcaclbbfqmqfqlammbcqblbccqcpabapcbbfcmpfcmmcpccbcbcfblfclmflpfaqppqbfppfpacmfqqafcmlmbqcbbfqaqffpafcbcqfpqmpcabfmcqcqpblfccmffplcbbaamcallbblmbcmammaablfmbfqqlcqacpqfaqpfcbamamcqcmqqffqfcbcffmabcfplabbmfqcampqc...
output:
hgfceacgcbcgbaehhhehggcddcfgaadcfhhddgdchagebggecdhfcdehfdhcccahdgfgbbaffegehcfddcdbhghahbggcdedcdbaeeghdgbghhdhfagafhggchefcheehfhhghghcgbchbecbfcadffdgcffcfahecddachebegdhggcdadccfachghdcfdefhagcehdhdfgbchheccfbhggaaehabbggbegheaeeaagbcegcddbhdahfdcadfchgaeaehdheddccdchghcceaghcfbaggecdhaefdhhehbf...
result:
ok single line: 'hgfceacgcbcgbaehhhehggcddcfgaa...ahhahgdghbegegbhdeagdeafeadcbaa'
Test #13:
score: 0
Accepted
time: 6ms
memory: 4136kb
input:
1000 oikrbsjdjjsrcdbroobidjojkdjikbirccicdiicbskkciijkssjirjokcjosbbkcdkbrdroirsooiibsjokircbkjbrbkoobkrddcbossoskosbiksodsjkkocoricjkdscdickjdisiddbsdiikdisdcjdkddscdjjrkkddjbbbdidkidddijbibdisbicjokodrcbjkkcrokiciijssjjbscrssccckdjdirbbcocjkobrijssijjcjrcskdobrjcscbocoobdocobrorosiidoscrijjorsrirk...
output:
ihgdaefbffedcba
result:
ok single line: 'ihgdaefbffedcba'
Test #14:
score: 0
Accepted
time: 3ms
memory: 4224kb
input:
1000 cmctnhnrhchdnnaitttiirathamrkhtahnmrttkrhdimhatrttatrtmkiminahadihkdkrdthrkrhiandtmhtrdtiinicrmmirinnarkanadnhaatkkakarirnahrtcndarniihkdnddkhitkmdrtarhinirccaitdccnncnmnanhmtrdthkrmakdkktnimictdanrcmrhtcakmcmnahcrahkhtmadmhkrriinakkrhhddmnaknacchtacaktdnmaihnhcmtcchrdmihritatkactmmhattcrkknnkr...
output:
jijhbebfejeabbcdhhhddfchecifgehcebifhhgfeadiechfhhchfhigdidbcecadegagfahefgfedcba
result:
ok single line: 'jijhbebfejeabbcdhhhddfchecifge...chfhigdidbcecadegagfahefgfedcba'
Test #15:
score: 0
Accepted
time: 6ms
memory: 4132kb
input:
1000 nlptkhpknhcldctjtdfcilithddhcpcplfjijtpnijiiiikcccifljnfijidnlkihpncddjnlncnpttdhiihcpithpiljjcjilinpkfchpdpjpcdpccncncjnfcklcccltclcldhpllijdplnjkijljddikcihnjpclcpiffhppnnfpnjtfhphpipctffhkjlkfnchphhnkdpcdttcijnlhcppnptlhphiktknnjfntipftdnffhhjhciphlnijltnttndpninttjciikfchjkpkhtfkdnhhnijcitt...
output:
kjhfidhikdajgafcfgbaejefdggdahahjbcecfhkeceeeeiaaaebjckbecegkjiedhkaggckjkakhffgdeedahefdhejccacejekhibadhghchaghaakakackbaijaaajfajajgdhjjecghjkciecjcggeiaedkchajahebbdhhkkbhkcfbdhdhehafbbdicjibkadhddkighagffaeckjdahhkhfjdhdeifikkcbkfehbfgkbbddcdaehdjkecjfkffkghkekffcaeeibadcihidfbigkddkecaeffecafi...
result:
ok single line: 'kjhfidhikdajgafcfgbaejefdggdah...igehhcbbbjkdbgkhagajihfgafedcba'
Test #16:
score: 0
Accepted
time: 5ms
memory: 4232kb
input:
1000 bcqeheddhchrddimchmikdfsmimikchdmmbreskiqfbikcdfhhmfbmqrmsibihciqqqsefmebmrbmcedhmdkmiqbdhsmkcqkifmiddhfieqersmksfiidqesisffhhrsbkiddbkbksrchchccifqkciidibqssihmmfrmfbeffhhqdbhmmdsisqkhqmhsmhckbccfreihdreiqqfcdsfffdbhsicbqfirhhchemfihedrbbkekhsfcccfmmieqfrrimsfddbqmkemciqfqrfbsresbhsiceffebfkfd...
output:
lkihjhaajkjgaabfkjfbeacdfbfbekjafflghdebiclbekacjjfclfigfdblbjkbiiidhcfhlfglfkhajfaefbilajdfekiebcfbaajcbhihgdfedcbba
result:
ok single line: 'lkihjhaajkjgaabfkjfbeacdfbfbek...ilajdfekiebcfbaajcbhihgdfedcbba'
Test #17:
score: 0
Accepted
time: 2ms
memory: 4228kb
input:
1000 pdipkeekpamgdiiafeigfaaoktngfpmkggmkdmaicekcoggpattofngagapfaifodftdmkfoctpdkkomkttgpotdggeeonkdieocdcdnffiittompaopieonamnpiigienpenieaigfiieaeiiftmpkaaegopdeamatngamagapfnppkgciptpnmpcmiagfdoaiemftddddenikaiidmmdopfapgnmefdidgdkegofmeofnetktinipopkfdpkikcodtkapngefetkaffgppkkieikmfadottcceipk...
output:
mlcmkddkmjbilccjhdcihjjekagihmbkiibklbjcfdkfeiimjaaehgijijmhjchelhalbkhefamlkkebkaaimealiiddegklcdeflflghhccaaebmjemcdegjbgmccicdgmdgcdjcihccdjdcchabmkjjdiemldjbjagijbjijmhgmmkifcmamgbmfbcjihlejcdbhalllldgckjcclbblemhjmigbdhlclilkdiehbdehgdakacgcmemkhlmkckfelakjmgidhdakjhhimmkkcdckbhjleaaffdcmkaigdk...
result:
ok single line: 'mlcmkddkmjbilccjhdcihjjekagihm...gcklglkjhjjfhjccbbfbihegfecdcba'
Test #18:
score: 0
Accepted
time: 2ms
memory: 4256kb
input:
1000 redfdnprmcbbhfdlmepnolpfotdhlrrlbedeccnrdblprfbdptohmbldthoorcrnceelhochsrppfbotmlchhsftlemfhbcnpdltofescnhmdhombpcddpscfhnmrnordbehnpdlrbbbfcdsoohpbhtcpsrhffobpehhdtmfcmmsbnpcedtmpfcpfporehfbfbotcpbeobnlednofedbpldcrosfcfnplnhbdlohfedrpsosmrpedenpfrrnsbehslloeldemsoeenfrsssppldtnfelrlboepptlpo...
output:
nlecekjndbaafcehdljkmhjcmiefhnnhalelbbkneahjncaejimfdaheifmmnbnkbllhfmbfgnjjcamidhbffgcihldcfabkjehimclgbkfdefmdajbeejgbcfkdnkmnealfkjehnaaacbegmmfjafibjgnfccmajlffeidcbddgakjbleidjcbjcjmnlfcacamibjalmakhlekmcleajhebnmgcbckjhkfaehmfclenjgmgdnjlelkjcnnkgalfghhmlheldgmllkcngggjjheikclhnhamljjihjmlljae...
result:
ok single line: 'nlecekjndbaafcehdljkmhjcmiefhn...dcchlhkkjadjgbidfhhbhcegfebdcba'
Test #19:
score: 0
Accepted
time: 5ms
memory: 4268kb
input:
1000 hegsdmeapjipglsnfmianparlaersaragrlepapooflllgnsiggjdjdpraslojdfdaaesfpllhnihselidejrgrfmmaldfnrejophlanehrdsjrrsidomemhmeafrgrrajrrfrjjgpfmgsprifnolfglhmnfapljamsldgrfsomopfedsegdadmojparrssjpfsfaporljfhsfhhgrnilmhdlppoldhaomrjprnfirlmnnhfseofjenrohflfndfiimmsirjopeeipafhphogsafrngjjiprnifeila...
output:
omjgbnmaidkijfglcnkaliahfamhgahajhfmiaieecfffjlgkjjdbdbihagfedbcbaa
result:
ok single line: 'omjgbnmaidkijfglcnkaliahfamhga...iaieecfffjlgkjjdbdbihagfedbcbaa'
Test #20:
score: 0
Accepted
time: 5ms
memory: 4120kb
input:
1000 dgenmltemgsnbimnhicfomcbbliddfhllohldnthotglfeoobtohilblglibclhdlmmfgseslgseiimkhhbflfekildtgllfdkjolnilbtscnfjklfidbknhlljkokodbtmoccbiigicgnfdfbhktcomilkbijisdhmjcmgbkomojjfmdnjltbmnnsbslbtflkkbsofehhnndmjtifsisggeocdbtolimtnlhcoekedjsnhoobbjnhihbbtkomnjomiskfobilkjkbocdmhnffglfogtosndsitecdf...
output:
pnmcdgbmdnjcaodckohifdhaagoppikggfkgpcbkfbngimffabfkogagngoahgkpgddinjmjgnjmoodlkkaigimlogpbnggiplefgcogabjhcielgiopalckggelflfpabdfhhaoonohncipiaklbhfdoglaoeojpkdehdnalfdfeeidpcegbadccjajgabigllajfimkkccpdeboijojnnmfhpabfgodbcgkhfmlmpejckffaaeckokaablfdcefdojlifaoglelafhpdkciingifnbfjcpjobmhpinhepd...
result:
ok single line: 'pnmcdgbmdnjcaodckohifdhaagoppi...jbldlkgbbhfjhkeffjfaihgafeedcba'
Test #21:
score: 0
Accepted
time: 4ms
memory: 4260kb
input:
1000 chkkcqdcggjsjadhtrjqgntecdhgrsqsbkqqqsodfkfcblqntsjrjnfcteghkafgjqtaaabdddakcbnabaqtoqdkogfgqaebrsdcdqkadkeqoleknokgfhshkqdhhsjddatblonnlnkllordrbgjjsjdedhlgsdsodcbcbojaehanhqetgnasocghtcrdbqdclegfscnqcelofffckefedohhadlhhnadnffbkreeletoknrrhrffrogrcgghaeglcefhbaaefggaabohttrstfgfqgcnnbeqjdklqr...
output:
qoeeqbnqjjdidknohldbjchfqnojlibimebbbipngegqmabchidldcgqhfjoekgjdbhkkkmnnnkeqmckmkbhpbnepjgjbkfmlinqnbeknefbpafecpejgoioebnooidnnkhmapccaceaaplnlmjddidnfnoajinipnqmqmpdkfokcobfhjckipqjohqlnmbnqafjgiqcbqfapgggqefgfnpooknaoockncggmelffafhpecllolgglpjlqjjokfjaqfgomkkfgjjkkmpohhlihgjgbjqccmfbdneablpondg...
result:
ok single line: 'qoeeqbnqjjdidknohldbjchfqnojli...jegimmjlbdlhlkjhbehfihgfedbbcba'
Test #22:
score: 0
Accepted
time: 5ms
memory: 4140kb
input:
1000 mmimrctldielpadeocgmaifcafkhjccnaktgmsejehgcoialclsopnrokmamnahangmhfmgcrmlatislecsgiaaarkpssscshtcrncptsoijirnogggititpohtgcaegdaaeoegmioridoggttsorppehjhiondejafeanspotcngepscflcseeikasopdmdthgnasdnfedkookrnkjcsinkejkiskasoecnlnkigrdfktopfcoehlsednknimtshljrdlnnainrfskmddegerildgcnkmfoapefalm...
output:
rrormilfcodfkpcdhinrpojipjbgqiiapblnredqdgnihopfifehkamhbrprapgpanrgjrnimrfploefdienopppmbkeeeieglimaiklehoqomahnnnololkhglnipdncppdhdnrohmochnnllehmkkdgqgohacdqpjdpaekhliandkeijfieddobpehkcrclgnapecajdcbhhbmabqieoabdqboebpehdiafabonmcjblhkjihdgfedcaba
result:
ok single line: 'rrormilfcodfkpcdhinrpojipjbgqi...bpehdiafabonmcjblhkjihdgfedcaba'
Test #23:
score: 0
Accepted
time: 4ms
memory: 4120kb
input:
1000 qdjplrlfkgqbnncnglcfdijiifboesenqmfjilnqrppabmntsgdefcjrkotiejacrdmqqoegtspofdejngqmddjatlfakscdcfdfjfrqkfllmoteldgnirkmpmbjfpkkiblsnjsqjijposifejtoliolrfionfiirqrdojcfqipraenpfeqfqcegkfctssmrrbdjkkrbctqiqejsfsqcgdnoaelcfaslegtrcefleqqjbtgjpbjrdqtmajcfgotetrkeeoqptnsbkgoaedsqorniralmeklcigocfal...
output:
srlkhphdbiscqqeqihedroloodcjmgmqsadlohqspkkncaqfgirmdelpbjfomlneprassjmifgkjdrmlqisarrlnfhdnbgeredrdldpsbdhhajfmhriqopbakacldkbbochgqlgslolkjgodmlfjhojhpdojqdoopsprjledsokpnmqkdmsdsemibdefggappcrlbbpcefsosmlgdgseirqjnmhednghmifpemdhmsslcfilkclprsfanledijfmfpbmmjskfqgcbijnmrgsjpqopnhambheoijednhhkrph...
result:
ok single line: 'srlkhphdbiscqqeqihedroloodcjmg...polnlkjkdmllafkhbjbihgeafecdcba'
Test #24:
score: 0
Accepted
time: 6ms
memory: 4208kb
input:
1000 jtjjjjjjjjjjjjjjjjjjjjtjjjjtjjjjjjjjjjjjjjtjjjjjjjjjjjjtjjjjjjajjjjjjjjjjjjjjjjjjjjjjjjjjjjjtjjjtjjjjjjtjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjtjjjjtjjjjjjjjjjjjjjjjjtjjjjjtjatjjjjtjtjjjjjajjjjjtjjtjtajjjjtjjjjjjjjjtajjjjjjjjtjjjjjjjjjjjjttjjjtjjjjjjatttjjjtjjtjjjtjjtjtjjajjjttjajtjjtjttjjjjktjjjt...
output:
sossssssssssssssssssssossssossssssssssssssossssssssssssossssssqsssssssssssssssssssssssssssssosssossssssossssssssssssssssssssssssssssssssssssossssosssssssssssssssssosssssosqossssososssssqsssssossosoqssssosssssssssoqssssssssossssssssssssoosssossssssqooosssossosssossosossqsssoosqsossosoosssstosssoooosq...
result:
ok single line: 'sossssssssssssssssssssossssoss...adgiebdheadaegdagdacefecedbdcba'
Test #25:
score: 0
Accepted
time: 7ms
memory: 4264kb
input:
1000 frffrffffffffffpfrffffpfffrfrfffffrrfrffffpffffrfpfrffffrfprfffpfrfffffffrfrffffffrfffrfpffffrpfffffrfrfffffffffffrffffpffrrffpfafffsffffffpfsfrfrfrfrffffffrfkffsffffffrffrfaaffafrrfffprffrprrfffrrfpfffrffrfffpifffrsrfipffpfprfrsffafffprffifrapfrrrrrrpffrfrfrspffsarffrfrfrppffparfsffrrfpfpaafaf...
output:
rsrrsrrrrrrrrrrtrsrrrrtrrrsrsrrrrrssrsrrrrtrrrrsrtrsrrrrsrtsrrrtrsrrrrrrrsrsrrrrrrsrrrsrtrrrrstrrrrrsrsrrrrrrrrrrrsrrrrtrrssrrtrlrrrnrrrrrrtrnrsrsrsrsrrrrrrsrmrrnrrrrrrsrrsrllrrlrssrrrtsrrstssrrrssrtrrrsrrsrrrtorrrsnsrotrrtrtsrsnrrlrrrtsrrorsltrsssssstrrsrsrsntrrnlsrrsrsrsttrrtlsrnrrssrtrtllrlrnsstr...
result:
ok single line: 'rsrrsrrrrrrrrrrtrsrrrrtrrrsrsr...faiceccaidfheaeeacecbfegcfedcba'
Test #26:
score: 0
Accepted
time: 4ms
memory: 4124kb
input:
1000 ssrsaodoododddodadeosisdsdddodsddoodrdsodadsodpodadorosrrdrodddobabdorodddoddodaoodoaoadeodaaddosoososoarossdsmroodsoddsdddsiddordsddrsadooodsooerdoroorpdooriosrdddosaoddrddodridoboirsdiirdosdsamoseaiododordsoosdaipososasoesiddsopddddddrsdbopdorsadaaooedbioddcmmaerooesdooaopadmarsodasmseedlmaio...
output:
rrprtqsqqsqsssqstsoqrnrsrsssqsrssqqspsrqstsrqsmqstsqpqrppspqsssqhthsqpqsssqssqstqqsqtqtsoqsttssqrqqrqrqtpqrrsrlpqqsrqssrsssrnssqpsrssprtsqqqsrqqopsqpqqpmsqqpnqrpsssqrtqsspssqspnsqhqnprsnnpsqrsrtlqrotnqsqsqpsrqqrstnmqrqrtrqornssrqmssssssprshqmsqprtsttqqoshnqssklltopqqorsqqtqmtsltprqstrlroosjltnqstsst...
result:
ok single line: 'rrprtqsqqsqsssqstsoqrnrsrsssqs...gcgffbbdfdficffhcedbcfgfeeddcba'
Test #27:
score: 0
Accepted
time: 4ms
memory: 4132kb
input:
1000 istacriaaimhkashicshismmsnihcnramchstiacniasscsricnchsccsiscssisacitassmnsakinsabhhctssfsiciaiaarsiisicissshcbqciaiknrscaaatnaarcmafsicmabialsncnacricsicakicciitnsicqanqaissthsbamismbaicmaantmmbairnrmhrcrcmhrisassmihcrnbnisfbirtgitbacrnhmbsasashmcmfccbminksammsspmnmmaiceabsitcttintqmacksbmaaias...
output:
rtpmqirmmrnosmtorqtortnntkroqkimnqotprmqkrmttqtirqkqotqqtrtqttrtmqrpmttnktmsrktmcooqpttftrqrmrmmitrrtrqrtttoqchqrmrskitqmmmpkmmiqnmftrqnmcrmltkqkmqirqtrqmsrqqrrpktrqhmkhmrttpotcmnrtncmrqnmmkpnncmrikinoiqiqnoirtmttnroqikckrtfcripbrpcmqikonctmtmtonqnfqqcnrkstmnnttanknnmrqgmctrpqpprkphnmqstcnmmrmtknnck...
result:
ok single line: 'rtpmqirmmrnosmtorqtortnntkroqk...hgjneamgflbllckbjdaiebhgfbedcba'
Test #28:
score: 0
Accepted
time: 4ms
memory: 4208kb
input:
1000 ihtnhaatmfnnjhmnflannfttfsjaiqmqjddqqrlfhmmjnmhqlthqmfhhftfiffftttmchnifohnhfmftrmadqhjdhtnffnmfjnctaccadamdqnmefdnhrchdqssihjnqmomrmlohnnqdlnmahatdahmhqffodnfttairantloriaqnqhnqmihasahdihnjnbcdrtndjqdlcqhbmajislhntiatttcfhfadcacolchfhfnmnanqajthfmjpqimihqqhkeocahrafhlfomffrftnnmtcfqrhntirhbceh...
output:
tpsmprrshlmmgphmlnrmmlsslegrtihigjjiiknlphhgmhpinspihlpplsltlllssshqpmtlopmplhlskhrjipgjpsmllmhlgmqsrqqrjrhjimhdljmpkqpjieetpgmihohkhnopmmijnmhrprsjrphpillojmlssrtkrmsnoktrimipmihtprerpjtpmgmfqjksmjgijnqipfhrgtenpmstrsssqlplrjqrqonqplplmhmrmirgsplhgbithtpiipadoqrpkrlpnlohllklsmmhsqlikpmstkpfqdpdntai...
result:
ok single line: 'tpsmprrshlmmgphmlnrmmlsslegrti...aefgmelkhjdhafffaiihgfdebdbccba'
Test #29:
score: 0
Accepted
time: 4ms
memory: 4200kb
input:
1000 opaqmbjhoctlnmefoocaqnqtecgbnirdjjhqkhiftktbslrpbacpjbrbreapkptlrcpjqpfobtiiqqtjpsrpitbljanmfdfbhldlplsniffflegrtckqjdarlhleffsalnjgmfrpasfgatgfffraheohidlolipksnskjjfaihidesjnlasitccjbbhpheglpdertnqqlgsfafikpneglbokpfaejipaeolmdrinnafpntfichatljgiqlaqhfmsmggdohcncpihiinqbssjnaleiripnbgllhcnnha...
output:
trhmcsektopgfcjbttohmfmpjodsfqaleekmnkqbpnpsigarshoresasajhrnrpgaoremrbtspqqmmperiarqpsgehfcblbskglgrgifqbbbgjdaponmelhagkgjbbihgfedcba
result:
ok single line: 'trhmcsektopgfcjbttohmfmpjodsfq...qbbbgjdaponmelhagkgjbbihgfedcba'
Test #30:
score: 0
Accepted
time: 0ms
memory: 4124kb
input:
1000 imkissilgtjrjrspldhdfeoeknmgfndooeebenddotbsidlfjtffirrgqkjhhcapnjokhphrrcfqhtgfdpgfbboqpioknijgddtkjksnlboqrapfhljhlnhegacqbhfnjlfhbkqhrlkonjolspipkcoclnertlbpacdkmrpdpobgologfiokrprnorltfdaljfmdtpsarctbgahcfsckofhrhrfgnehkfangfmfpbgithhfpfdrhcnhfriihbhfngghtprhnhmngfgbpfqngmcpgoihqoakgrgskghf...
output:
stpsooskiqamamolkrdrcjnjpbticbrnnjjejbrrnqeosrkcaqccsmmifpaddghlbanpdldmmgcfdqicrliceenflsnpbsairrqpapobkenfmhlcdkadkbdjihgfedcba
result:
ok single line: 'stpsooskiqamamolkrdrcjnjpbticb...qpapobkenfmhlcdkadkbdjihgfedcba'
Test #31:
score: 0
Accepted
time: 5ms
memory: 4128kb
input:
1000 nhoklkcjhfljgqlrfkpendbcscimicfqsqsdtlrrmktnphhcrfaoipamstiokficaqrpsnbsjecrtprseqkidffqthljgfglfpcemrjhjfbgqlrossdkiosqfslrsfnjqhbjbsigoklqnfjjjjebonmbhfipppinbqogdbmsbhhonhjofjbdsgrljjjkbjigbsjlsophibpooobffpqiqoslsdssljohkifjljdbsopbjsodblrsdqjlrdqbbrfojjspjgilfbppdjbribbsorbqqqqompobgoqsopo...
output:
smfhdhplmadljedcahqosikpbpgngpaebebirdccnhrsqmmpcatfgqtnbrgfhagptecqbskblopcrqcboehgiaaermdljajdaqponclmlakjedcfbbihgfbeabdcba
result:
ok single line: 'smfhdhplmadljedcahqosikpbpgngp...daqponclmlakjedcfbbihgfbeabdcba'
Test #32:
score: 0
Accepted
time: 7ms
memory: 4268kb
input:
1000 rcaiopeihfibnahpinlspnlpfqgaptnfqsgmtmfaamtrpgophergqdrrhrqqijgfqpilbbelgkddktfrofeaetqibeegqtkllgaeltredajqqtqbfrqdlbcifelfltoerilflnedeofdqifeforrddeqfqdqlrfplqelfqtjfqldqqdadqqqqlfordiqqeolirdrldqdgefaqfrflqeaffdrdarrqqrffqllfqaqtfdfeqdtdfraodllqeddqdkaifqfeqddleqlqqqlflrpigfdeldfdfddlladkfe...
output:
qpikohnklfkmgilhkgjdhgjhfecihbgfedcaba
result:
ok single line: 'qpikohnklfkmgilhkgjdhgjhfecihbgfedcaba'
Test #33:
score: 0
Accepted
time: 7ms
memory: 4148kb
input:
1000 lctfejbslbflpmmrkkmqklrkdhbgirfctcpghhklbtantbhihgmtokoibhrokrblprbamblkgbkttnlklpnrlpbhgpbiblnrkhbolloookhrblilokbktoblkrkhkkikbgrkkbkkgkkltobglbklkrbbkgklbokkrrklklbkglklgkkkobbkkkkgbgkrbkkglbbkgbklkkblgtkkkkkbbkklblolbbkkrkbbgkbklgbklkrkrbbkblkkrbkllkbbbkkglllgkoklkkkkkkblkolkrblkkkkkkkllbkk...
output:
lngotserleolmhhcaahqalcapdeifcongnmiddalegkjgedfdihgbabfedcba
result:
ok single line: 'lngotserleolmhhcaahqalcapdeifcongnmiddalegkjgedfdihgbabfedcba'
Test #34:
score: 0
Accepted
time: 11ms
memory: 4120kb
input:
1000 bnktqidsiockjnaaggrkajmnrkgabnijjbkgabbnrknnjjgarbaantbaskanbabgrbanbnbnasgaaabbbaraaaakaabbaraggaaraabbnbabranabganbanbabaanrabbbabrkajaarkababbaaabrgbbaaaaaaarbaaabaaaaagaanabaaabaaaaabbbbaaaaaaaaaaanraaaaabaabaaabbabaarbaabaarbaaaaaaaaanaabaaaaaaaaaaaabnbaaaaaaaabaaaaabaaabnaaaraaabaaaaabaaa...
output:
ogdnmjlkjihdbgccffedcba
result:
ok single line: 'ogdnmjlkjihdbgccffedcba'
Test #35:
score: 0
Accepted
time: 17ms
memory: 4148kb
input:
1000 qqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqq...
output:
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa...
result:
ok single line: 'aaaaaaaaaaaaaaaaaaaaaaaaaaaaaa...aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa'
Test #36:
score: 0
Accepted
time: 22ms
memory: 4120kb
input:
1000 nnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnn...
output:
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa...
result:
ok single line: 'aaaaaaaaaaaaaaaaaaaaaaaaaaaaaa...aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa'
Test #37:
score: 0
Accepted
time: 22ms
memory: 4168kb
input:
1000 ttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttt...
output:
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa...
result:
ok single line: 'aaaaaaaaaaaaaaaaaaaaaaaaaaaaaa...aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa'
Test #38:
score: 0
Accepted
time: 22ms
memory: 4120kb
input:
1000 mmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmm...
output:
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa...
result:
ok single line: 'aaaaaaaaaaaaaaaaaaaaaaaaaaaaaa...aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa'
Test #39:
score: 0
Accepted
time: 18ms
memory: 4264kb
input:
1000 kkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkk...
output:
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa...
result:
ok single line: 'aaaaaaaaaaaaaaaaaaaaaaaaaaaaaa...aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa'
Test #40:
score: 0
Accepted
time: 22ms
memory: 4104kb
input:
1000 ppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppp...
output:
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa...
result:
ok single line: 'aaaaaaaaaaaaaaaaaaaaaaaaaaaaaa...aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa'
Test #41:
score: 0
Accepted
time: 22ms
memory: 4124kb
input:
1000 aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa...
output:
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa...
result:
ok single line: 'aaaaaaaaaaaaaaaaaaaaaaaaaaaaaa...aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa'
Test #42:
score: 0
Accepted
time: 1ms
memory: 4248kb
input:
1000 cgjmhtkrdsnoeqiplbafcgjmhtkrdsnoeqiplbafcgjmhtkrdsnoeqiplbafcgjmhtkrdsnoeqiplbafcgjmhtkrdsnoeqiplbafcgjmhtkrdsnoeqiplbafcgjmhtkrdsnoeqiplbafcgjmhtkrdsnoeqiplbafcgjmhtkrdsnoeqiplbafcgjmhtkrdsnoeqiplbafcgjmhtkrdsnoeqiplbafcgjmhtkrdsnoeqiplbafcgjmhtkrdsnoeqiplbafcgjmhtkrdsnoeqiplbafcgjmhtkrdsnoeqi...
output:
tsrqponmlkjihgfedcbatsrqponmlkjihgfedcbatsrqponmlkjihgfedcbatsrqponmlkjihgfedcbatsrqponmlkjihgfedcbatsrqponmlkjihgfedcbatsrqponmlkjihgfedcbatsrqponmlkjihgfedcbatsrqponmlkjihgfedcbatsrqponmlkjihgfedcbatsrqponmlkjihgfedcbatsrqponmlkjihgfedcbatsrqponmlkjihgfedcbatsrqponmlkjihgfedcbatsrqponmlkjihgfedcba...
result:
ok single line: 'tsrqponmlkjihgfedcbatsrqponmlk...kjihgfedcbatsrqponmlkjihgfedcba'
Test #43:
score: 0
Accepted
time: 0ms
memory: 4268kb
input:
1000 pblmadhofstjkniqgercpblmadhofstjkniqgercpblmadhofstjkniqgercpblmadhofstjkniqgercpblmadhofstjkniqgercpblmadhofstjkniqgercpblmadhofstjkniqgercpblmadhofstjkniqgercpblmadhofstjkniqgercpblmadhofstjkniqgercpblmadhofstjkniqgercpblmadhofstjkniqgercpblmadhofstjkbiqgercpblmadhofstjkniqgercpblmadhofstjkni...
output:
tsrqponmlkjihgfedcbatsrqponmlkjihgfedcbatsrqponmlkjihgfedcbatsrqponmlkjihgfedcbatsrqponmlkjihgfedcbatsrqponmlkjihgfedcbatsrqponmlkjihgfedcbatsrqponmlkjihgfedcbatsrqponmlkjihgfedcbatsrqponmlkjihgfedcbatsrqponmlkjihgfedcbatsrqponmlkjihgfedcbatsrqponmlkjihsfedcbatsrqponmlkjihgfedcbatsrqponmlkjihgfedcba...
result:
ok single line: 'tsrqponmlkjihgfedcbatsrqponmlk...kjihgfedcbatsrqponmlkjihgfedcba'
Test #44:
score: 0
Accepted
time: 3ms
memory: 4248kb
input:
1000 fjphtqmasenidorgcblkfjphtqmasenidorgcblkfjmhtqmasenidorgcblkfjphtqmasenidorgcblkfjphtqmasesidorgcblkfjphtqmasenidorgcblkfjphtqmasenidorgcblkfjphtqmasenidorgcblkfjphtqmasenidorgcblkfjphtqmasenidorgcblkfjphtqmasenidorgcblkfjphtqmasenidorgcblkfjphtqmasenidorgcblkfjphtqmasenidorgcblkfjphtqmasenidor...
output:
tsrqponmlkjihgfedcbatsrqponmlkjihgfedcbatsnqponmlkjihgfedcbatsrqponmlkjihgfedcbatsrqponmlklihgfedcbatsrqponmlkjihgfedcbatsrqponmlkjihgfedcbatsrqponmlkjihgfedcbatsrqponmlkjihgfedcbatsrqponmlkjihgfedcbatsrqponmlkjihgfedcbatsrqponmlkjihgfedcbatsrqponmlkjihgfedcbatsrqponmlkjihgfedcbatsrqponmlkjihgfedcba...
result:
ok single line: 'tsrqponmlkjihgfedcbatsrqponmlk...kjihgfedcbatsrqponmlkjihgfedcba'
Test #45:
score: 0
Accepted
time: 4ms
memory: 4208kb
input:
1000 calpitqnksdejhrfmgbocalpitqnksdejhrfmgbocalpitqnksdejhrfmgbocalpitqnksdejhrfmgbocalpitqnksdejhrfmgbocalpitqnksdejhrfmgbocalpitqnksdejhrfmgbocalpitqnksdejhrfmgbocalpitqnksdejhrfmgbocalpitqnksdejhrfmgbocalpitqnksdejhrfmgbocalpitqnksdeghrfmgbocalpitqnksdejhrfmgbocalpitqnksdejhrfmgbocalpitqnksdejhr...
output:
tsrqponmlkjihgfedcbatsrqponmlkjihgfedcbatsrqponmlkjihgfedcbatsrqponmlkjihgfedcbatsrqponmlkjihgfedcbatsrqponmlkjihgfedcbatsrqponmlkjihgfedcbatsrqponmlkjihgfedcbatsrqponmlkjihgfedcbatsrqponmlkjihgfedcbatsrqponmlkjihgfedcbatsrqponmlkjicgfedcbatsrqponmlkjihgfedcbatsrqponmlkjihgfedcbatsrqponmlkjihgfedcba...
result:
ok single line: 'tsrqponmlkjihgfedcbatsrqponmlk...kjihgfedcbatsrqponmlkjihgfedcba'
Test #46:
score: 0
Accepted
time: 1ms
memory: 4116kb
input:
1000 mirjngelafpcbkosthqdmirjngelafpcbkosthqdmirjngelafpcbkoskhqdmirjngelafpcbkosthqdmirjngelafpcbkosthqdmirjngelafpcbkosthqdmirjngelafpcbkosthldmirjngelafpcbkosthqdmirjngelafpcbkosthqdmirjngegafpcbkosthqdmirjngelafpcbkosthqdmirjngecafpcbkosthqdmirjngelafpcqkosthqdmirjngelafpcbkosthqdmirjngelafpcbko...
output:
tsrqponmlkjihgfedcbatsrqponmlkjihgfedcbatsrqponmlkjihgfegcbatsrqponmlkjihgfedcbatsrqponmlkjihgfedcbatsrqponmlkjihgfedcbatsrqponmlkjihgfedcmatsrqponmlkjihgfedcbatsrqponmlkjihgfedcbatsrqponolkjihgfedcbatsrqponmlkjihgfedcbatsrqponilkjihgfedcbatsrqponmlkjibgfedcbatsrqponmlkjihgfedcbatsrqponmlkjihgfedcba...
result:
ok single line: 'tsrqponmlkjihgfedcbatsrqponmlk...kjihgfedcbatsrqponmlkjihgfedcba'
Test #47:
score: 0
Accepted
time: 3ms
memory: 4196kb
input:
1000 edkkghfnlomcbspaqrtiedkcghfnlomcbspaqrtiedkjghfnlomcbspaqrtiedkjghfnlomcbspaqrtiedkjghfnlomcbspaqrtiedkjghfnlomcbspaqrtiedkjqhfnlcmcbspaqrtiedkjghfnlomcbspaqrtildhjgofnlomcbsparrtielkjghfnlomcbspaqrtiedkjghfnlomcbspaqrcoedkjghfnlgmcdspaqrtiedkjlhfnlomcbspaqrtiedkjghfnlomcbspaqrtiedkjghfnlodcbsp...
output:
tsrrponmlkjihgfedcbatsriponmlkjihgfedcbatsrqponmlkjihgfedcbatsrqponmlkjihgfedcbatsrqponmlkjihgfedcbatsrqponmlkjihgfedcbatsrqdonmlijihgfedcbatsrqponmlkjihgfedcbalsoqpknmlkjihgfeccbatlrqponmlkjihgfedcbatsrqponmlkjihgfedciktsrqponmlpjisgfedcbatsrqlonmlkjihgfedcbatsrqponmlkjihgfedcbatsrqponmlksihgfedcba...
result:
ok single line: 'tsrrponmlkjihgfedcbatsriponmlk...kjihgfadcbatsrqponmlkjihgfedcba'
Test #48:
score: 0
Accepted
time: 4ms
memory: 4120kb
input:
1000 bigqkhkngpjftodemalrbipqchonfpjftodomqlrbigqchknspjhlodemalrbitqchknspjftodemalrbngqchknspjftodemalrbigqchknspjftodemalrbigqchknsptftodemalrbigqchknspjftodefalqbigqchdnspjftodemglmbigqchknspjftodemalrbigqctknspjftodemcljbigqchknspjfjodemalrbigqchcnspjftodemadrbigqckknspjftodemalrbigqchknspjftod...
output:
tsrqnonmrkjihgfedcbatskqpogmikjihgfgdqbatsrqponmlkjobgfedcbatshqponmlkjihgfedcbatmrqponmlkjihgfedcbatsrqponmlkjihgfedcbatsrqponmlkhihgfedcbatsrqponmlkjihgfeicbqtsrqpofmlkjihgfedrbdtsrqponmlkjihgfedcbatsrqphnmlkjihgfedpbjtsrqponmlkjijgfedcbatsrqpopmlkjihgfedcfatsrqpnnmlkjihgfedcbatsrqponmlkjihgfndcba...
result:
ok single line: 'tsrqnonmrkjihgfedcbatskqpogmik...kjihgfedcbatsrqponmlkjihgfedcba'