QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#643176 | #6617. Encoded Strings I | adivse# | AC ✓ | 32ms | 4352kb | C++20 | 1.7kb | 2024-10-15 19:32:21 | 2024-10-15 19:32:22 |
Judging History
answer
#include <iostream>
#include <algorithm>
#include <cstring>
#include <cmath>
#include <vector>
#include <set>
#include <queue>
#include <map>
#define endl '\n'
#define int long long
#define rep(i,a,b) for(int i=(a);i<=(b);i++)
#define rep2(i,a,b) for(int i=(a);i>=(b);i--)
using namespace std;
template<typename... Args>
void bubu(Args... args) { cout << ":: "; ((cout << args << " "), ...); cout << endl; }
void bubu(vector<char> tem) { for (auto x : tem) cout << x << ' '; cout << endl; }
void kuaidu() { ios::sync_with_stdio(false), cin.tie(0), cout.tie(0); }
inline int max(int a, int b) { if (a < b) return b; return a; }
inline int min(int a, int b) { if (a < b) return a; return b; }
using PII = pair<int, int>;
using i128 = __int128;
//=======================================================================
const int N = 1e5 + 10;
const int M = 1e6 + 10;
const int mod = 1e9 + 7;
const int INF = 1e16;
int n, m, T;
//=======================================================================
signed main() {
kuaidu();
cin >> n;
string s; cin >> s;
priority_queue<string> F;
rep(i, 0, n - 1) {
map<char, int> mp, mp2, mp3;
vector<char> A;
string s1; rep(j, 0, i) s1.push_back(s[j]);
int cnt = 0;
rep2(j, i, 0) {
if (mp[s[j]]) continue;
cnt++;
mp[s[j]] = j;
mp2[s[j]] = cnt - 1;
A.push_back(s[j]);
}
sort(A.begin(), A.end(), [&](char a, char b) {
if (mp2[a] == mp2[b]) return mp[a] > mp[b];
return mp2[a] < mp2[b];
});
// cout << i << " ";
// bubu(A);
int l = 0;
for (auto x : A) mp3[x] = ++l;
for (auto& x : s1) { x = char(mp3[x] + 'a' - 1); }
F.push(s1);
}
cout << F.top() << endl;
return 0;
}
这程序好像有点Bug,我给组数据试试?
Details
Tip: Click on the bar to expand more detailed information
Test #1:
score: 100
Accepted
time: 0ms
memory: 3592kb
input:
4 aacc
output:
bbaa
result:
ok single line: 'bbaa'
Test #2:
score: 0
Accepted
time: 0ms
memory: 3584kb
input:
3 aca
output:
ba
result:
ok single line: 'ba'
Test #3:
score: 0
Accepted
time: 0ms
memory: 3532kb
input:
1 t
output:
a
result:
ok single line: 'a'
Test #4:
score: 0
Accepted
time: 0ms
memory: 3780kb
input:
12 bcabcabcbcbb
output:
cbacba
result:
ok single line: 'cbacba'
Test #5:
score: 0
Accepted
time: 4ms
memory: 4168kb
input:
1000 bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb...
output:
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa...
result:
ok single line: 'aaaaaaaaaaaaaaaaaaaaaaaaaaaaaa...aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa'
Test #6:
score: 0
Accepted
time: 5ms
memory: 4348kb
input:
1000 ggkkkggggggkgggkgkgkkkkkggkkkgggkgkgggkkgkkgkgkgkgkgggkgkkkkgkgkkgkggkgggkgggkgkkgggggkkgkgkkkkgkkkkkkgkkggkkkkggkkkgkgggkggkkgkkgkgggkkggggkkggggkggkkggkgkgkgkkkgkkgkgkkgkkgkgkggkgggkgkkkgkkkgkkggkkggkkgkgkgkkkkkgkkggkgggkkkkgggkggkgggkkkgkkkkggggkkggkkkkgkkggkkkkkkgkgggkkkkkgggggggkgggkkkggkg...
output:
bbaaabbbbbbabbbababaaaaabbaaabbbababbbaabaabababababbbabaaaababaababbabbbabbbabaabbbbbaababaaaabaaaaaabaabbaaaabbaaababbbabbaabaababbbaabbbbaabbbbabbaabbabababaaabaababaabaabababbabbbabaaabaaabaabbaabbaabababaaaaabaabbabbbaaaabbbabbabbbaaabaaaabbbbaabbaaaabaabbaaaaaababbbaaaaabbbbbbbabbbaaabbabbaabb...
result:
ok single line: 'bbaaabbbbbbabbbababaaaaabbaaab...bbbbabbabababaabbbbbababaababaa'
Test #7:
score: 0
Accepted
time: 5ms
memory: 4348kb
input:
1000 edbbbbedddbeebedeedbddebddddbedbbdddeddeeddeebdedbbbdedddeeddbdddbbebbbdbeddbbbbbdeedebdddbbbebebbbdebebbeebbeeddddebdbdedbedddeebedebbddbededbdeebbbbbdbebddbebdbddebbddddbdeebbbddddbedddbedbeebdeeebdedbdededdbdebbedbbbeedbbedebddebbeebddebbebbdebeebddbdeddbdebdebebbdbebdddedbbdbedbbdbebbbddddd...
output:
cbaaaacbbbaccacbccbabbcabbbbacbaabbbcbbccbbccabcbaaabcbbbccbbabbbaacaaabacbbaaaaabccbcabbbaaacacaaabcacaaccaaccbbbbcababcbacbbbccacbcaabbacbcbabccaaaaabacabbacababbcaabbbbabccaaabbbbacbbbacbaccabcccabcbabcbcbbabcaacbaaaccbaacbcabbcaaccabbcaacaabcaccabbabcbbabcabcacaabacabbbcbaabacbaabacaaabbbbbbabba...
result:
ok single line: 'cbaaaacbbbaccacbccbabbcabbbbac...babcbbabccacbccbaaacabcbcccbbaa'
Test #8:
score: 0
Accepted
time: 8ms
memory: 4324kb
input:
1000 hhqjhgqqjhqhqhgggqhgqghhjjgjjqqqhhjhhjqqjqqjqqhghghjhqhghhqhgjgjhqhjjjqjqgjgjgqhqqgjgqghgqjjhqjjgqghjqjhqjhghhghgqjqjhggjjhhjjqhqgqhjjhqqjqjghjjhjhqghqggjqjqjghjqhqjqgjqqjjqjjhjjqghqjjhhjhghhjggqqjjqgjqgqjhqhjqhjqqgjqhghghhjqqhhhjhjjgjjgjqgjqqqggjggqhqgjhqhqqgggqqhqqqjhqgjghhhqgghqqjgjhjqjhhqgh...
output:
ddcbdaccbdcdcdaaacdacaddbbabbcccddbddbccbccbccdadadbdcdaddcdababdcdbbbcbcababacdccabacadacbbdcbbacadbcbdcbdaddadacbcbdaabbddbbcdcacdbbdccbcbadbbdbdcadcaabcbcbadbcdcbcabccbbcbbdbbcadcbbddbdaddbaaccbbcabcacbdcdbcdbccabcdadaddbccdddbdbbabbabcabcccaabaacdcabdcdccaaaccdcccbdcabadddcaadccbabdbcbddcaddacdd...
result:
ok single line: 'ddcbdaccbdcdcdaaacdacaddbbabbc...accdbabaaaaaabababcabbabcdadcba'
Test #9:
score: 0
Accepted
time: 10ms
memory: 4100kb
input:
1000 cceooojojcecesjojsssesjojccoecceoojecsscojsosoccojscjcjssococjscssosecooeejoosojeecjceoeeojcocosjcecocoesjceejjecssjejccjsjosjsjcjesjojcojocjjeooeccojjosjcjjcjoecseecsjccojcoessecejcocosecsojeoceejeccejeoosssscecjcssooojoseeccosocoeejjecsjeoecejsoojessoescecjjsscecoccjsjsscccssjoeejsscoesecssco...
output:
eedcccbcbededabcbaaadabcbeecdeedccbdeaaecbacaceecbaebebaacecebaeaacadeccddbccacbddebedcddcbececabedececdabeddbbdeaabdbeebabcababebdabcbecbcebbdccdeecbbcabebbebcdeaddeabeecbecdaadedbececadeacbdceddbdeedbdccaaaaedebeaacccbcaddeecacecddbbdeabdcdedbaccbdaacdaedebbaaedeceebabaaeeeaabcddbaaecdadeaaecebdcb...
result:
ok single line: 'eedcccbcbededabcbaaadabcbeecde...acbebaaecdddeadeeaeaaeeabdbcbba'
Test #10:
score: 0
Accepted
time: 13ms
memory: 4280kb
input:
1000 mmmfqfmpqrccmqfcrprpfppcpcffqcrcrcqmmmqmrfmrpqffppcmqpqqrfqqcffpmqqfmcmpmcfcqcffqmrmqrmmqmffpqqpfqrcppmmpmrqffmfcfffqmrprfcpfqffrrrmcqmpfmpfmprmcrrqqrmcrcmpcffmpfcprmcpmcfmpcfprrqrpcqccpcmmqcqqfmrcrrqrqcmcpqcrcqcrrpmpmfccqcffrrfmpfqqmqcpmfpmqpcmqpmfqpffmqpcrmcmqrqfqqcrfffcfqprcprrmfppfpqqmmrcmc...
output:
fffedefcdbaafdeabcbceccacaeedababadfffdfbefbcdeeccafdcddbeddaeecfddefafcfaeadaeedfbfdbffdfeecddcedbaccffcfbdeefeaeeedfbcbeacedeebbbfadfcefcefcbfabbddbfabafcaeefceacbfacfaefcaecbbdbcadaacaffdaddefbabbdbdafacdabadabbcfcfeaadaeebbefceddfdacfecfdcafdcfedceefdcabfafdbdeddabeeeaedcba
result:
ok single line: 'fffedefcdbaafdeabcbceccacaeeda...fedceefdcabfafdbdeddabeeeaedcba'
Test #11:
score: 0
Accepted
time: 15ms
memory: 4012kb
input:
1000 hljikoiljhkhhikjihlhokhjnjlijjhkhinohnioklilhonihliiiohllkniiokjiihkokkkhnijkkkijnnjljoihiljlnjhllnjlhojnjojnnjhllilnnoloiijioiohkononkijhniihjiinononokjjokljjkinonhkojknohijhlilhjjlhkhjoonojlknjnljniklohinhinnnkhnkljjknkjhhlhlkllihhihnlkjklhokkihlhlikjhkjokhkniooljkojjiiljjjnojkiojnkniljnkoljn...
output:
gfedcbdfegcggdcedgfgbcgeaefdeegcgdabgadbcfdfgbadgfdddbgffcaddbceddgcbcccgadecccdeaaefebdgdfefaegffaefgbeaebeaaegffdfaabfbddedbdbgcbabacdegaddgeddabababceebcfeecdabagcbecabgdegfdfgeefgcgebbabefcaeafeadcfbgdagdaaacgacfeecaceggfgfcffdggdgafcecfgbccdgfgfdcegcebcgcadbbfecbeeddfeeeabecdbeacadfeacbfeacbfac...
result:
ok single line: 'gfedcbdfegcggdcedgfgbcgeaefdee...cdeedgccfddabeafeaeeeeecdbbcbba'
Test #12:
score: 0
Accepted
time: 17ms
memory: 4348kb
input:
1000 cbpfmafbflfblamcccmcbbfqqfpbaaqfpccqqbqfcabmlbbmfqcpfqmcpqcfffacqbpbllappmbmcfpqqfqlcbcaclbbfqmqfqlammbcqblbccqcpabapcbbfcmpfcmmcpccbcbcfblfclmflpfaqppqbfppfpacmfqqafcmlmbqcbbfqaqffpafcbcqfpqmpcabfmcqcqpblfccmffplcbbaamcallbblmbcmammaablfmbfqqlcqacpqfaqpfcbamamcqcmqqffqfcbcffmabcfplabbmfqcampqc...
output:
hgfceacgcbcgbaehhhehggcddcfgaadcfhhddgdchagebggecdhfcdehfdhcccahdgfgbbaffegehcfddcdbhghahbggcdedcdbaeeghdgbghhdhfagafhggchefcheehfhhghghcgbchbecbfcadffdgcffcfahecddachebegdhggcdadccfachghdcfdefhagcehdhdfgbchheccfbhggaaehabbggbegheaeeaagbcegcddbhdahfdcadfchgaeaehdheddccdchghcceaghcfbaggecdhaefdhhehbf...
result:
ok single line: 'hgfceacgcbcgbaehhhehggcddcfgaa...ahhahgdghbegegbhdeagdeafeadcbaa'
Test #13:
score: 0
Accepted
time: 19ms
memory: 4344kb
input:
1000 oikrbsjdjjsrcdbroobidjojkdjikbirccicdiicbskkciijkssjirjokcjosbbkcdkbrdroirsooiibsjokircbkjbrbkoobkrddcbossoskosbiksodsjkkocoricjkdscdickjdisiddbsdiikdisdcjdkddscdjjrkkddjbbbdidkidddijbibdisbicjokodrcbjkkcrokiciijssjjbscrssccckdjdirbbcocjkobrijssijjcjrcskdobrjcscbocoobdocobrorosiidoscrijjorsrirk...
output:
ihgdaefbffedcba
result:
ok single line: 'ihgdaefbffedcba'
Test #14:
score: 0
Accepted
time: 20ms
memory: 4292kb
input:
1000 cmctnhnrhchdnnaitttiirathamrkhtahnmrttkrhdimhatrttatrtmkiminahadihkdkrdthrkrhiandtmhtrdtiinicrmmirinnarkanadnhaatkkakarirnahrtcndarniihkdnddkhitkmdrtarhinirccaitdccnncnmnanhmtrdthkrmakdkktnimictdanrcmrhtcakmcmnahcrahkhtmadmhkrriinakkrhhddmnaknacchtacaktdnmaihnhcmtcchrdmihritatkactmmhattcrkknnkr...
output:
jijhbebfejeabbcdhhhddfchecifgehcebifhhgfeadiechfhhchfhigdidbcecadegagfahefgfedcba
result:
ok single line: 'jijhbebfejeabbcdhhhddfchecifge...chfhigdidbcecadegagfahefgfedcba'
Test #15:
score: 0
Accepted
time: 20ms
memory: 4072kb
input:
1000 nlptkhpknhcldctjtdfcilithddhcpcplfjijtpnijiiiikcccifljnfijidnlkihpncddjnlncnpttdhiihcpithpiljjcjilinpkfchpdpjpcdpccncncjnfcklcccltclcldhpllijdplnjkijljddikcihnjpclcpiffhppnnfpnjtfhphpipctffhkjlkfnchphhnkdpcdttcijnlhcppnptlhphiktknnjfntipftdnffhhjhciphlnijltnttndpninttjciikfchjkpkhtfkdnhhnijcitt...
output:
kjhfidhikdajgafcfgbaejefdggdahahjbcecfhkeceeeeiaaaebjckbecegkjiedhkaggckjkakhffgdeedahefdhejccacejekhibadhghchaghaakakackbaijaaajfajajgdhjjecghjkciecjcggeiaedkchajahebbdhhkkbhkcfbdhdhehafbbdicjibkadhddkighagffaeckjdahhkhfjdhdeifikkcbkfehbfgkbbddcdaehdjkecjfkffkghkekffcaeeibadcihidfbigkddkecaeffecafi...
result:
ok single line: 'kjhfidhikdajgafcfgbaejefdggdah...igehhcbbbjkdbgkhagajihfgafedcba'
Test #16:
score: 0
Accepted
time: 22ms
memory: 4132kb
input:
1000 bcqeheddhchrddimchmikdfsmimikchdmmbreskiqfbikcdfhhmfbmqrmsibihciqqqsefmebmrbmcedhmdkmiqbdhsmkcqkifmiddhfieqersmksfiidqesisffhhrsbkiddbkbksrchchccifqkciidibqssihmmfrmfbeffhhqdbhmmdsisqkhqmhsmhckbccfreihdreiqqfcdsfffdbhsicbqfirhhchemfihedrbbkekhsfcccfmmieqfrrimsfddbqmkemciqfqrfbsresbhsiceffebfkfd...
output:
lkihjhaajkjgaabfkjfbeacdfbfbekjafflghdebiclbekacjjfclfigfdblbjkbiiidhcfhlfglfkhajfaefbilajdfekiebcfbaajcbhihgdfedcbba
result:
ok single line: 'lkihjhaajkjgaabfkjfbeacdfbfbek...ilajdfekiebcfbaajcbhihgdfedcbba'
Test #17:
score: 0
Accepted
time: 23ms
memory: 4280kb
input:
1000 pdipkeekpamgdiiafeigfaaoktngfpmkggmkdmaicekcoggpattofngagapfaifodftdmkfoctpdkkomkttgpotdggeeonkdieocdcdnffiittompaopieonamnpiigienpenieaigfiieaeiiftmpkaaegopdeamatngamagapfnppkgciptpnmpcmiagfdoaiemftddddenikaiidmmdopfapgnmefdidgdkegofmeofnetktinipopkfdpkikcodtkapngefetkaffgppkkieikmfadottcceipk...
output:
mlcmkddkmjbilccjhdcihjjekagihmbkiibklbjcfdkfeiimjaaehgijijmhjchelhalbkhefamlkkebkaaimealiiddegklcdeflflghhccaaebmjemcdegjbgmccicdgmdgcdjcihccdjdcchabmkjjdiemldjbjagijbjijmhgmmkifcmamgbmfbcjihlejcdbhalllldgckjcclbblemhjmigbdhlclilkdiehbdehgdakacgcmemkhlmkckfelakjmgidhdakjhhimmkkcdckbhjleaaffdcmkaigdk...
result:
ok single line: 'mlcmkddkmjbilccjhdcihjjekagihm...gcklglkjhjjfhjccbbfbihegfecdcba'
Test #18:
score: 0
Accepted
time: 24ms
memory: 4076kb
input:
1000 redfdnprmcbbhfdlmepnolpfotdhlrrlbedeccnrdblprfbdptohmbldthoorcrnceelhochsrppfbotmlchhsftlemfhbcnpdltofescnhmdhombpcddpscfhnmrnordbehnpdlrbbbfcdsoohpbhtcpsrhffobpehhdtmfcmmsbnpcedtmpfcpfporehfbfbotcpbeobnlednofedbpldcrosfcfnplnhbdlohfedrpsosmrpedenpfrrnsbehslloeldemsoeenfrsssppldtnfelrlboepptlpo...
output:
nlecekjndbaafcehdljkmhjcmiefhnnhalelbbkneahjncaejimfdaheifmmnbnkbllhfmbfgnjjcamidhbffgcihldcfabkjehimclgbkfdefmdajbeejgbcfkdnkmnealfkjehnaaacbegmmfjafibjgnfccmajlffeidcbddgakjbleidjcbjcjmnlfcacamibjalmakhlekmcleajhebnmgcbckjhkfaehmfclenjgmgdnjlelkjcnnkgalfghhmlheldgmllkcngggjjheikclhnhamljjihjmlljae...
result:
ok single line: 'nlecekjndbaafcehdljkmhjcmiefhn...dcchlhkkjadjgbidfhhbhcegfebdcba'
Test #19:
score: 0
Accepted
time: 25ms
memory: 4096kb
input:
1000 hegsdmeapjipglsnfmianparlaersaragrlepapooflllgnsiggjdjdpraslojdfdaaesfpllhnihselidejrgrfmmaldfnrejophlanehrdsjrrsidomemhmeafrgrrajrrfrjjgpfmgsprifnolfglhmnfapljamsldgrfsomopfedsegdadmojparrssjpfsfaporljfhsfhhgrnilmhdlppoldhaomrjprnfirlmnnhfseofjenrohflfndfiimmsirjopeeipafhphogsafrngjjiprnifeila...
output:
omjgbnmaidkijfglcnkaliahfamhgahajhfmiaieecfffjlgkjjdbdbihagfedbcbaa
result:
ok single line: 'omjgbnmaidkijfglcnkaliahfamhga...iaieecfffjlgkjjdbdbihagfedbcbaa'
Test #20:
score: 0
Accepted
time: 26ms
memory: 4000kb
input:
1000 dgenmltemgsnbimnhicfomcbbliddfhllohldnthotglfeoobtohilblglibclhdlmmfgseslgseiimkhhbflfekildtgllfdkjolnilbtscnfjklfidbknhlljkokodbtmoccbiigicgnfdfbhktcomilkbijisdhmjcmgbkomojjfmdnjltbmnnsbslbtflkkbsofehhnndmjtifsisggeocdbtolimtnlhcoekedjsnhoobbjnhihbbtkomnjomiskfobilkjkbocdmhnffglfogtosndsitecdf...
output:
pnmcdgbmdnjcaodckohifdhaagoppikggfkgpcbkfbngimffabfkogagngoahgkpgddinjmjgnjmoodlkkaigimlogpbnggiplefgcogabjhcielgiopalckggelflfpabdfhhaoonohncipiaklbhfdoglaoeojpkdehdnalfdfeeidpcegbadccjajgabigllajfimkkccpdeboijojnnmfhpabfgodbcgkhfmlmpejckffaaeckokaablfdcefdojlifaoglelafhpdkciingifnbfjcpjobmhpinhepd...
result:
ok single line: 'pnmcdgbmdnjcaodckohifdhaagoppi...jbldlkgbbhfjhkeffjfaihgafeedcba'
Test #21:
score: 0
Accepted
time: 29ms
memory: 4172kb
input:
1000 chkkcqdcggjsjadhtrjqgntecdhgrsqsbkqqqsodfkfcblqntsjrjnfcteghkafgjqtaaabdddakcbnabaqtoqdkogfgqaebrsdcdqkadkeqoleknokgfhshkqdhhsjddatblonnlnkllordrbgjjsjdedhlgsdsodcbcbojaehanhqetgnasocghtcrdbqdclegfscnqcelofffckefedohhadlhhnadnffbkreeletoknrrhrffrogrcgghaeglcefhbaaefggaabohttrstfgfqgcnnbeqjdklqr...
output:
qoeeqbnqjjdidknohldbjchfqnojlibimebbbipngegqmabchidldcgqhfjoekgjdbhkkkmnnnkeqmckmkbhpbnepjgjbkfmlinqnbeknefbpafecpejgoioebnooidnnkhmapccaceaaplnlmjddidnfnoajinipnqmqmpdkfokcobfhjckipqjohqlnmbnqafjgiqcbqfapgggqefgfnpooknaoockncggmelffafhpecllolgglpjlqjjokfjaqfgomkkfgjjkkmpohhlihgjgbjqccmfbdneablpondg...
result:
ok single line: 'qoeeqbnqjjdidknohldbjchfqnojli...jegimmjlbdlhlkjhbehfihgfedbbcba'
Test #22:
score: 0
Accepted
time: 30ms
memory: 4100kb
input:
1000 mmimrctldielpadeocgmaifcafkhjccnaktgmsejehgcoialclsopnrokmamnahangmhfmgcrmlatislecsgiaaarkpssscshtcrncptsoijirnogggititpohtgcaegdaaeoegmioridoggttsorppehjhiondejafeanspotcngepscflcseeikasopdmdthgnasdnfedkookrnkjcsinkejkiskasoecnlnkigrdfktopfcoehlsednknimtshljrdlnnainrfskmddegerildgcnkmfoapefalm...
output:
rrormilfcodfkpcdhinrpojipjbgqiiapblnredqdgnihopfifehkamhbrprapgpanrgjrnimrfploefdienopppmbkeeeieglimaiklehoqomahnnnololkhglnipdncppdhdnrohmochnnllehmkkdgqgohacdqpjdpaekhliandkeijfieddobpehkcrclgnapecajdcbhhbmabqieoabdqboebpehdiafabonmcjblhkjihdgfedcaba
result:
ok single line: 'rrormilfcodfkpcdhinrpojipjbgqi...bpehdiafabonmcjblhkjihdgfedcaba'
Test #23:
score: 0
Accepted
time: 31ms
memory: 4320kb
input:
1000 qdjplrlfkgqbnncnglcfdijiifboesenqmfjilnqrppabmntsgdefcjrkotiejacrdmqqoegtspofdejngqmddjatlfakscdcfdfjfrqkfllmoteldgnirkmpmbjfpkkiblsnjsqjijposifejtoliolrfionfiirqrdojcfqipraenpfeqfqcegkfctssmrrbdjkkrbctqiqejsfsqcgdnoaelcfaslegtrcefleqqjbtgjpbjrdqtmajcfgotetrkeeoqptnsbkgoaedsqorniralmeklcigocfal...
output:
srlkhphdbiscqqeqihedroloodcjmgmqsadlohqspkkncaqfgirmdelpbjfomlneprassjmifgkjdrmlqisarrlnfhdnbgeredrdldpsbdhhajfmhriqopbakacldkbbochgqlgslolkjgodmlfjhojhpdojqdoopsprjledsokpnmqkdmsdsemibdefggappcrlbbpcefsosmlgdgseirqjnmhednghmifpemdhmsslcfilkclprsfanledijfmfpbmmjskfqgcbijnmrgsjpqopnhambheoijednhhkrph...
result:
ok single line: 'srlkhphdbiscqqeqihedroloodcjmg...polnlkjkdmllafkhbjbihgeafecdcba'
Test #24:
score: 0
Accepted
time: 9ms
memory: 4100kb
input:
1000 jtjjjjjjjjjjjjjjjjjjjjtjjjjtjjjjjjjjjjjjjjtjjjjjjjjjjjjtjjjjjjajjjjjjjjjjjjjjjjjjjjjjjjjjjjjtjjjtjjjjjjtjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjtjjjjtjjjjjjjjjjjjjjjjjtjjjjjtjatjjjjtjtjjjjjajjjjjtjjtjtajjjjtjjjjjjjjjtajjjjjjjjtjjjjjjjjjjjjttjjjtjjjjjjatttjjjtjjtjjjtjjtjtjjajjjttjajtjjtjttjjjjktjjjt...
output:
sossssssssssssssssssssossssossssssssssssssossssssssssssossssssqsssssssssssssssssssssssssssssosssossssssossssssssssssssssssssssssssssssssssssossssosssssssssssssssssosssssosqossssososssssqsssssossosoqssssosssssssssoqssssssssossssssssssssoosssossssssqooosssossosssossosossqsssoosqsossosoosssstosssoooosq...
result:
ok single line: 'sossssssssssssssssssssossssoss...adgiebdheadaegdagdacefecedbdcba'
Test #25:
score: 0
Accepted
time: 12ms
memory: 4352kb
input:
1000 frffrffffffffffpfrffffpfffrfrfffffrrfrffffpffffrfpfrffffrfprfffpfrfffffffrfrffffffrfffrfpffffrpfffffrfrfffffffffffrffffpffrrffpfafffsffffffpfsfrfrfrfrffffffrfkffsffffffrffrfaaffafrrfffprffrprrfffrrfpfffrffrfffpifffrsrfipffpfprfrsffafffprffifrapfrrrrrrpffrfrfrspffsarffrfrfrppffparfsffrrfpfpaafaf...
output:
rsrrsrrrrrrrrrrtrsrrrrtrrrsrsrrrrrssrsrrrrtrrrrsrtrsrrrrsrtsrrrtrsrrrrrrrsrsrrrrrrsrrrsrtrrrrstrrrrrsrsrrrrrrrrrrrsrrrrtrrssrrtrlrrrnrrrrrrtrnrsrsrsrsrrrrrrsrmrrnrrrrrrsrrsrllrrlrssrrrtsrrstssrrrssrtrrrsrrsrrrtorrrsnsrotrrtrtsrsnrrlrrrtsrrorsltrsssssstrrsrsrsntrrnlsrrsrsrsttrrtlsrnrrssrtrtllrlrnsstr...
result:
ok single line: 'rsrrsrrrrrrrrrrtrsrrrrtrrrsrsr...faiceccaidfheaeeacecbfegcfedcba'
Test #26:
score: 0
Accepted
time: 21ms
memory: 4276kb
input:
1000 ssrsaodoododddodadeosisdsdddodsddoodrdsodadsodpodadorosrrdrodddobabdorodddoddodaoodoaoadeodaaddosoososoarossdsmroodsoddsdddsiddordsddrsadooodsooerdoroorpdooriosrdddosaoddrddodridoboirsdiirdosdsamoseaiododordsoosdaipososasoesiddsopddddddrsdbopdorsadaaooedbioddcmmaerooesdooaopadmarsodasmseedlmaio...
output:
rrprtqsqqsqsssqstsoqrnrsrsssqsrssqqspsrqstsrqsmqstsqpqrppspqsssqhthsqpqsssqssqstqqsqtqtsoqsttssqrqqrqrqtpqrrsrlpqqsrqssrsssrnssqpsrssprtsqqqsrqqopsqpqqpmsqqpnqrpsssqrtqsspssqspnsqhqnprsnnpsqrsrtlqrotnqsqsqpsrqqrstnmqrqrtrqornssrqmssssssprshqmsqprtsttqqoshnqssklltopqqorsqqtqmtsltprqstrlroosjltnqstsst...
result:
ok single line: 'rrprtqsqqsqsssqstsoqrnrsrsssqs...gcgffbbdfdficffhcedbcfgfeeddcba'
Test #27:
score: 0
Accepted
time: 26ms
memory: 4100kb
input:
1000 istacriaaimhkashicshismmsnihcnramchstiacniasscsricnchsccsiscssisacitassmnsakinsabhhctssfsiciaiaarsiisicissshcbqciaiknrscaaatnaarcmafsicmabialsncnacricsicakicciitnsicqanqaissthsbamismbaicmaantmmbairnrmhrcrcmhrisassmihcrnbnisfbirtgitbacrnhmbsasashmcmfccbminksammsspmnmmaiceabsitcttintqmacksbmaaias...
output:
rtpmqirmmrnosmtorqtortnntkroqkimnqotprmqkrmttqtirqkqotqqtrtqttrtmqrpmttnktmsrktmcooqpttftrqrmrmmitrrtrqrtttoqchqrmrskitqmmmpkmmiqnmftrqnmcrmltkqkmqirqtrqmsrqqrrpktrqhmkhmrttpotcmnrtncmrqnmmkpnncmrikinoiqiqnoirtmttnroqikckrtfcripbrpcmqikonctmtmtonqnfqqcnrkstmnnttanknnmrqgmctrpqpprkphnmqstcnmmrmtknnck...
result:
ok single line: 'rtpmqirmmrnosmtorqtortnntkroqk...hgjneamgflbllckbjdaiebhgfbedcba'
Test #28:
score: 0
Accepted
time: 30ms
memory: 4040kb
input:
1000 ihtnhaatmfnnjhmnflannfttfsjaiqmqjddqqrlfhmmjnmhqlthqmfhhftfiffftttmchnifohnhfmftrmadqhjdhtnffnmfjnctaccadamdqnmefdnhrchdqssihjnqmomrmlohnnqdlnmahatdahmhqffodnfttairantloriaqnqhnqmihasahdihnjnbcdrtndjqdlcqhbmajislhntiatttcfhfadcacolchfhfnmnanqajthfmjpqimihqqhkeocahrafhlfomffrftnnmtcfqrhntirhbceh...
output:
tpsmprrshlmmgphmlnrmmlsslegrtihigjjiiknlphhgmhpinspihlpplsltlllssshqpmtlopmplhlskhrjipgjpsmllmhlgmqsrqqrjrhjimhdljmpkqpjieetpgmihohkhnopmmijnmhrprsjrphpillojmlssrtkrmsnoktrimipmihtprerpjtpmgmfqjksmjgijnqipfhrgtenpmstrsssqlplrjqrqonqplplmhmrmirgsplhgbithtpiipadoqrpkrlpnlohllklsmmhsqlikpmstkpfqdpdntai...
result:
ok single line: 'tpsmprrshlmmgphmlnrmmlsslegrti...aefgmelkhjdhafffaiihgfdebdbccba'
Test #29:
score: 0
Accepted
time: 32ms
memory: 4128kb
input:
1000 opaqmbjhoctlnmefoocaqnqtecgbnirdjjhqkhiftktbslrpbacpjbrbreapkptlrcpjqpfobtiiqqtjpsrpitbljanmfdfbhldlplsniffflegrtckqjdarlhleffsalnjgmfrpasfgatgfffraheohidlolipksnskjjfaihidesjnlasitccjbbhpheglpdertnqqlgsfafikpneglbokpfaejipaeolmdrinnafpntfichatljgiqlaqhfmsmggdohcncpihiinqbssjnaleiripnbgllhcnnha...
output:
trhmcsektopgfcjbttohmfmpjodsfqaleekmnkqbpnpsigarshoresasajhrnrpgaoremrbtspqqmmperiarqpsgehfcblbskglgrgifqbbbgjdaponmelhagkgjbbihgfedcba
result:
ok single line: 'trhmcsektopgfcjbttohmfmpjodsfq...qbbbgjdaponmelhagkgjbbihgfedcba'
Test #30:
score: 0
Accepted
time: 28ms
memory: 4324kb
input:
1000 imkissilgtjrjrspldhdfeoeknmgfndooeebenddotbsidlfjtffirrgqkjhhcapnjokhphrrcfqhtgfdpgfbboqpioknijgddtkjksnlboqrapfhljhlnhegacqbhfnjlfhbkqhrlkonjolspipkcoclnertlbpacdkmrpdpobgologfiokrprnorltfdaljfmdtpsarctbgahcfsckofhrhrfgnehkfangfmfpbgithhfpfdrhcnhfriihbhfngghtprhnhmngfgbpfqngmcpgoihqoakgrgskghf...
output:
stpsooskiqamamolkrdrcjnjpbticbrnnjjejbrrnqeosrkcaqccsmmifpaddghlbanpdldmmgcfdqicrliceenflsnpbsairrqpapobkenfmhlcdkadkbdjihgfedcba
result:
ok single line: 'stpsooskiqamamolkrdrcjnjpbticb...qpapobkenfmhlcdkadkbdjihgfedcba'
Test #31:
score: 0
Accepted
time: 22ms
memory: 4136kb
input:
1000 nhoklkcjhfljgqlrfkpendbcscimicfqsqsdtlrrmktnphhcrfaoipamstiokficaqrpsnbsjecrtprseqkidffqthljgfglfpcemrjhjfbgqlrossdkiosqfslrsfnjqhbjbsigoklqnfjjjjebonmbhfipppinbqogdbmsbhhonhjofjbdsgrljjjkbjigbsjlsophibpooobffpqiqoslsdssljohkifjljdbsopbjsodblrsdqjlrdqbbrfojjspjgilfbppdjbribbsorbqqqqompobgoqsopo...
output:
smfhdhplmadljedcahqosikpbpgngpaebebirdccnhrsqmmpcatfgqtnbrgfhagptecqbskblopcrqcboehgiaaermdljajdaqponclmlakjedcfbbihgfbeabdcba
result:
ok single line: 'smfhdhplmadljedcahqosikpbpgngp...daqponclmlakjedcfbbihgfbeabdcba'
Test #32:
score: 0
Accepted
time: 15ms
memory: 4096kb
input:
1000 rcaiopeihfibnahpinlspnlpfqgaptnfqsgmtmfaamtrpgophergqdrrhrqqijgfqpilbbelgkddktfrofeaetqibeegqtkllgaeltredajqqtqbfrqdlbcifelfltoerilflnedeofdqifeforrddeqfqdqlrfplqelfqtjfqldqqdadqqqqlfordiqqeolirdrldqdgefaqfrflqeaffdrdarrqqrffqllfqaqtfdfeqdtdfraodllqeddqdkaifqfeqddleqlqqqlflrpigfdeldfdfddlladkfe...
output:
qpikohnklfkmgilhkgjdhgjhfecihbgfedcaba
result:
ok single line: 'qpikohnklfkmgilhkgjdhgjhfecihbgfedcaba'
Test #33:
score: 0
Accepted
time: 9ms
memory: 4012kb
input:
1000 lctfejbslbflpmmrkkmqklrkdhbgirfctcpghhklbtantbhihgmtokoibhrokrblprbamblkgbkttnlklpnrlpbhgpbiblnrkhbolloookhrblilokbktoblkrkhkkikbgrkkbkkgkkltobglbklkrbbkgklbokkrrklklbkglklgkkkobbkkkkgbgkrbkkglbbkgbklkkblgtkkkkkbbkklblolbbkkrkbbgkbklgbklkrkrbbkblkkrbkllkbbbkkglllgkoklkkkkkkblkolkrblkkkkkkkllbkk...
output:
lngotserleolmhhcaahqalcapdeifcongnmiddalegkjgedfdihgbabfedcba
result:
ok single line: 'lngotserleolmhhcaahqalcapdeifcongnmiddalegkjgedfdihgbabfedcba'
Test #34:
score: 0
Accepted
time: 7ms
memory: 4140kb
input:
1000 bnktqidsiockjnaaggrkajmnrkgabnijjbkgabbnrknnjjgarbaantbaskanbabgrbanbnbnasgaaabbbaraaaakaabbaraggaaraabbnbabranabganbanbabaanrabbbabrkajaarkababbaaabrgbbaaaaaaarbaaabaaaaagaanabaaabaaaaabbbbaaaaaaaaaaanraaaaabaabaaabbabaarbaabaarbaaaaaaaaanaabaaaaaaaaaaaabnbaaaaaaaabaaaaabaaabnaaaraaabaaaaabaaa...
output:
ogdnmjlkjihdbgccffedcba
result:
ok single line: 'ogdnmjlkjihdbgccffedcba'
Test #35:
score: 0
Accepted
time: 4ms
memory: 4092kb
input:
1000 qqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqq...
output:
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa...
result:
ok single line: 'aaaaaaaaaaaaaaaaaaaaaaaaaaaaaa...aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa'
Test #36:
score: 0
Accepted
time: 4ms
memory: 4132kb
input:
1000 nnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnn...
output:
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa...
result:
ok single line: 'aaaaaaaaaaaaaaaaaaaaaaaaaaaaaa...aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa'
Test #37:
score: 0
Accepted
time: 4ms
memory: 4344kb
input:
1000 ttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttt...
output:
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa...
result:
ok single line: 'aaaaaaaaaaaaaaaaaaaaaaaaaaaaaa...aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa'
Test #38:
score: 0
Accepted
time: 0ms
memory: 4080kb
input:
1000 mmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmm...
output:
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa...
result:
ok single line: 'aaaaaaaaaaaaaaaaaaaaaaaaaaaaaa...aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa'
Test #39:
score: 0
Accepted
time: 0ms
memory: 4136kb
input:
1000 kkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkk...
output:
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa...
result:
ok single line: 'aaaaaaaaaaaaaaaaaaaaaaaaaaaaaa...aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa'
Test #40:
score: 0
Accepted
time: 3ms
memory: 4348kb
input:
1000 ppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppp...
output:
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa...
result:
ok single line: 'aaaaaaaaaaaaaaaaaaaaaaaaaaaaaa...aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa'
Test #41:
score: 0
Accepted
time: 4ms
memory: 4092kb
input:
1000 aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa...
output:
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa...
result:
ok single line: 'aaaaaaaaaaaaaaaaaaaaaaaaaaaaaa...aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa'
Test #42:
score: 0
Accepted
time: 16ms
memory: 4012kb
input:
1000 cgjmhtkrdsnoeqiplbafcgjmhtkrdsnoeqiplbafcgjmhtkrdsnoeqiplbafcgjmhtkrdsnoeqiplbafcgjmhtkrdsnoeqiplbafcgjmhtkrdsnoeqiplbafcgjmhtkrdsnoeqiplbafcgjmhtkrdsnoeqiplbafcgjmhtkrdsnoeqiplbafcgjmhtkrdsnoeqiplbafcgjmhtkrdsnoeqiplbafcgjmhtkrdsnoeqiplbafcgjmhtkrdsnoeqiplbafcgjmhtkrdsnoeqiplbafcgjmhtkrdsnoeqi...
output:
tsrqponmlkjihgfedcbatsrqponmlkjihgfedcbatsrqponmlkjihgfedcbatsrqponmlkjihgfedcbatsrqponmlkjihgfedcbatsrqponmlkjihgfedcbatsrqponmlkjihgfedcbatsrqponmlkjihgfedcbatsrqponmlkjihgfedcbatsrqponmlkjihgfedcbatsrqponmlkjihgfedcbatsrqponmlkjihgfedcbatsrqponmlkjihgfedcbatsrqponmlkjihgfedcbatsrqponmlkjihgfedcba...
result:
ok single line: 'tsrqponmlkjihgfedcbatsrqponmlk...kjihgfedcbatsrqponmlkjihgfedcba'
Test #43:
score: 0
Accepted
time: 17ms
memory: 4068kb
input:
1000 pblmadhofstjkniqgercpblmadhofstjkniqgercpblmadhofstjkniqgercpblmadhofstjkniqgercpblmadhofstjkniqgercpblmadhofstjkniqgercpblmadhofstjkniqgercpblmadhofstjkniqgercpblmadhofstjkniqgercpblmadhofstjkniqgercpblmadhofstjkniqgercpblmadhofstjkniqgercpblmadhofstjkbiqgercpblmadhofstjkniqgercpblmadhofstjkni...
output:
tsrqponmlkjihgfedcbatsrqponmlkjihgfedcbatsrqponmlkjihgfedcbatsrqponmlkjihgfedcbatsrqponmlkjihgfedcbatsrqponmlkjihgfedcbatsrqponmlkjihgfedcbatsrqponmlkjihgfedcbatsrqponmlkjihgfedcbatsrqponmlkjihgfedcbatsrqponmlkjihgfedcbatsrqponmlkjihgfedcbatsrqponmlkjihsfedcbatsrqponmlkjihgfedcbatsrqponmlkjihgfedcba...
result:
ok single line: 'tsrqponmlkjihgfedcbatsrqponmlk...kjihgfedcbatsrqponmlkjihgfedcba'
Test #44:
score: 0
Accepted
time: 17ms
memory: 4128kb
input:
1000 fjphtqmasenidorgcblkfjphtqmasenidorgcblkfjmhtqmasenidorgcblkfjphtqmasenidorgcblkfjphtqmasesidorgcblkfjphtqmasenidorgcblkfjphtqmasenidorgcblkfjphtqmasenidorgcblkfjphtqmasenidorgcblkfjphtqmasenidorgcblkfjphtqmasenidorgcblkfjphtqmasenidorgcblkfjphtqmasenidorgcblkfjphtqmasenidorgcblkfjphtqmasenidor...
output:
tsrqponmlkjihgfedcbatsrqponmlkjihgfedcbatsnqponmlkjihgfedcbatsrqponmlkjihgfedcbatsrqponmlklihgfedcbatsrqponmlkjihgfedcbatsrqponmlkjihgfedcbatsrqponmlkjihgfedcbatsrqponmlkjihgfedcbatsrqponmlkjihgfedcbatsrqponmlkjihgfedcbatsrqponmlkjihgfedcbatsrqponmlkjihgfedcbatsrqponmlkjihgfedcbatsrqponmlkjihgfedcba...
result:
ok single line: 'tsrqponmlkjihgfedcbatsrqponmlk...kjihgfedcbatsrqponmlkjihgfedcba'
Test #45:
score: 0
Accepted
time: 14ms
memory: 4016kb
input:
1000 calpitqnksdejhrfmgbocalpitqnksdejhrfmgbocalpitqnksdejhrfmgbocalpitqnksdejhrfmgbocalpitqnksdejhrfmgbocalpitqnksdejhrfmgbocalpitqnksdejhrfmgbocalpitqnksdejhrfmgbocalpitqnksdejhrfmgbocalpitqnksdejhrfmgbocalpitqnksdejhrfmgbocalpitqnksdeghrfmgbocalpitqnksdejhrfmgbocalpitqnksdejhrfmgbocalpitqnksdejhr...
output:
tsrqponmlkjihgfedcbatsrqponmlkjihgfedcbatsrqponmlkjihgfedcbatsrqponmlkjihgfedcbatsrqponmlkjihgfedcbatsrqponmlkjihgfedcbatsrqponmlkjihgfedcbatsrqponmlkjihgfedcbatsrqponmlkjihgfedcbatsrqponmlkjihgfedcbatsrqponmlkjihgfedcbatsrqponmlkjicgfedcbatsrqponmlkjihgfedcbatsrqponmlkjihgfedcbatsrqponmlkjihgfedcba...
result:
ok single line: 'tsrqponmlkjihgfedcbatsrqponmlk...kjihgfedcbatsrqponmlkjihgfedcba'
Test #46:
score: 0
Accepted
time: 15ms
memory: 4076kb
input:
1000 mirjngelafpcbkosthqdmirjngelafpcbkosthqdmirjngelafpcbkoskhqdmirjngelafpcbkosthqdmirjngelafpcbkosthqdmirjngelafpcbkosthqdmirjngelafpcbkosthldmirjngelafpcbkosthqdmirjngelafpcbkosthqdmirjngegafpcbkosthqdmirjngelafpcbkosthqdmirjngecafpcbkosthqdmirjngelafpcqkosthqdmirjngelafpcbkosthqdmirjngelafpcbko...
output:
tsrqponmlkjihgfedcbatsrqponmlkjihgfedcbatsrqponmlkjihgfegcbatsrqponmlkjihgfedcbatsrqponmlkjihgfedcbatsrqponmlkjihgfedcbatsrqponmlkjihgfedcmatsrqponmlkjihgfedcbatsrqponmlkjihgfedcbatsrqponolkjihgfedcbatsrqponmlkjihgfedcbatsrqponilkjihgfedcbatsrqponmlkjibgfedcbatsrqponmlkjihgfedcbatsrqponmlkjihgfedcba...
result:
ok single line: 'tsrqponmlkjihgfedcbatsrqponmlk...kjihgfedcbatsrqponmlkjihgfedcba'
Test #47:
score: 0
Accepted
time: 17ms
memory: 4132kb
input:
1000 edkkghfnlomcbspaqrtiedkcghfnlomcbspaqrtiedkjghfnlomcbspaqrtiedkjghfnlomcbspaqrtiedkjghfnlomcbspaqrtiedkjghfnlomcbspaqrtiedkjqhfnlcmcbspaqrtiedkjghfnlomcbspaqrtildhjgofnlomcbsparrtielkjghfnlomcbspaqrtiedkjghfnlomcbspaqrcoedkjghfnlgmcdspaqrtiedkjlhfnlomcbspaqrtiedkjghfnlomcbspaqrtiedkjghfnlodcbsp...
output:
tsrrponmlkjihgfedcbatsriponmlkjihgfedcbatsrqponmlkjihgfedcbatsrqponmlkjihgfedcbatsrqponmlkjihgfedcbatsrqponmlkjihgfedcbatsrqdonmlijihgfedcbatsrqponmlkjihgfedcbalsoqpknmlkjihgfeccbatlrqponmlkjihgfedcbatsrqponmlkjihgfedciktsrqponmlpjisgfedcbatsrqlonmlkjihgfedcbatsrqponmlkjihgfedcbatsrqponmlksihgfedcba...
result:
ok single line: 'tsrrponmlkjihgfedcbatsriponmlk...kjihgfadcbatsrqponmlkjihgfedcba'
Test #48:
score: 0
Accepted
time: 24ms
memory: 4108kb
input:
1000 bigqkhkngpjftodemalrbipqchonfpjftodomqlrbigqchknspjhlodemalrbitqchknspjftodemalrbngqchknspjftodemalrbigqchknspjftodemalrbigqchknsptftodemalrbigqchknspjftodefalqbigqchdnspjftodemglmbigqchknspjftodemalrbigqctknspjftodemcljbigqchknspjfjodemalrbigqchcnspjftodemadrbigqckknspjftodemalrbigqchknspjftod...
output:
tsrqnonmrkjihgfedcbatskqpogmikjihgfgdqbatsrqponmlkjobgfedcbatshqponmlkjihgfedcbatmrqponmlkjihgfedcbatsrqponmlkjihgfedcbatsrqponmlkhihgfedcbatsrqponmlkjihgfeicbqtsrqpofmlkjihgfedrbdtsrqponmlkjihgfedcbatsrqphnmlkjihgfedpbjtsrqponmlkjijgfedcbatsrqpopmlkjihgfedcfatsrqpnnmlkjihgfedcbatsrqponmlkjihgfndcba...
result:
ok single line: 'tsrqnonmrkjihgfedcbatskqpogmik...kjihgfedcbatsrqponmlkjihgfedcba'