QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#584846#6618. Encoded Strings IISoestxTL 103ms14396kbC++171.8kb2024-09-23 17:03:442024-09-23 17:03:44

Judging History

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

  • [2024-09-23 17:03:44]
  • 评测
  • 测评结果:TL
  • 用时:103ms
  • 内存:14396kb
  • [2024-09-23 17:03:44]
  • 提交

answer

#include<bits/stdc++.h>
using namespace std;
#define int long long
#define fi first
#define se second
#define lowbit(x) (x&(-x))
//typedef long long ll;
//typedef unsigned long long ull;
const int N = 2e6 + 10, M = 1e6,mod=998244353;
int n, m, k;
int num[N];
int res;
int la[30];
int dp[N],sum[1010][30],pre[1010][30];
int book[30];
int cnt;
int idx=0;
void dfs(int ct,int l,int w)
{
	idx++;
	if(idx>1e8) return;
	if(ct==cnt+1) return;
	if(l>n) return;
	int su=0;
	int tmp=(1<<20)-1;
	tmp^=w;
	for(int i=0;i<20;i++)
	{
		int bk=((tmp>>i)&1);
		if(!bk||!la[i]) continue;
		int tp=(tmp^(1<<i));
		int r=dp[tp]-1;
		if(r>1e7) continue;
		su=max(su,sum[r][i]-sum[l-1][i]);
 	}

	if(su<num[ct]) return;
    if(su>num[ct])
    {
        num[ct]=su;
	    for(int i=ct+1;i<=cnt;i++) num[i]=0;
    }
	for(int i=0;i<20;i++)
	{
		int bk=((tmp>>i)&1);
		if(!bk||!la[i]) continue;
		int tp=(tmp^(1<<i));
		int r=dp[tp]-1;
		if(r>1e7) continue;
		if(su==sum[r][i]-sum[l-1][i])
		{
			dfs(ct+1,pre[r][i]+1,w|(1<<i));
		}
	}
}

void solve()
{
	cin>>n;
	string s;
	cin>>s;
	s='x'+s;
	for(int i=1;i<=n;i++)
	{
		int t=s[i]-'a';
		if(!la[t]) cnt++;
		la[t]=i;
		memcpy(sum[i],sum[i-1],sizeof sum[i]);
		memcpy(pre[i],pre[i-1],sizeof pre[i-1]);
		sum[i][t]++;
		pre[i][t]=i;
	}
	for(int i=0;i<20;i++)
	{
		if(la[i]) dp[1<<i]=la[i];
		else dp[1<<i]=1e8;
	}
	dp[0]=n+1;
	for(int i=1;i<(1<<20);i++)
	{
        int t=i-(i&(-i));
		if(t)
		{
			dp[i]=min(dp[i-lowbit(i)],dp[lowbit(i)]);
		}
		if(dp[i]==1e8) dp[i]=n+1;
	}
	dfs(1,1,0);
	for(int i=1;i<=cnt;i++)
	{
		char c='a'+cnt-i;
		while(num[i])
        {
            cout<<c;
            num[i]--;
        }
	}
}

signed main() {
	ios::sync_with_stdio(0);
	cin.tie(0);
	cout.tie(0);
	int T;
	T = 1;
	//cin>>T;
	while (T--) solve();
	return 0;
}

Details

Tip: Click on the bar to expand more detailed information

Test #1:

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

input:

4
aacc

output:

bbaa

result:

ok single line: 'bbaa'

Test #2:

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

input:

4
acac

output:

bba

result:

ok single line: 'bba'

Test #3:

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

input:

1
t

output:

a

result:

ok single line: 'a'

Test #4:

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

input:

12
bcabcabcbcbb

output:

ccbbaa

result:

ok single line: 'ccbbaa'

Test #5:

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

input:

1000
bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb...

output:

aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa...

result:

ok single line: 'aaaaaaaaaaaaaaaaaaaaaaaaaaaaaa...aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa'

Test #6:

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

input:

1000
ggkkkggggggkgggkgkgkkkkkggkkkgggkgkgggkkgkkgkgkgkgkgggkgkkkkgkgkkgkggkgggkgggkgkkgggggkkgkgkkkkgkkkkkkgkkggkkkkggkkkgkgggkggkkgkkgkgggkkggggkkggggkggkkggkgkgkgkkkgkkgkgkkgkkgkgkggkgggkgkkkgkkkgkkggkkggkkgkgkgkkkkkgkkggkgggkkkkgggkggkgggkkkgkkkkggggkkggkkkkgkkggkkkkkkgkgggkkkkkgggggggkgggkkkggkg...

output:

bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb...

result:

ok single line: 'bbbbbbbbbbbbbbbbbbbbbbbbbbbbbb...bbbbbbbbbbbbbbbbbbbbbbbbbbbbbaa'

Test #7:

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

input:

1000
edbbbbedddbeebedeedbddebddddbedbbdddeddeeddeebdedbbbdedddeeddbdddbbebbbdbeddbbbbbdeedebdddbbbebebbbdebebbeebbeeddddebdbdedbedddeebedebbddbededbdeebbbbbdbebddbebdbddebbddddbdeebbbddddbedddbedbeebdeeebdedbdededdbdebbedbbbeedbbedebddebbeebddebbebbdebeebddbdeddbdebdebebbdbebdddedbbdbedbbdbebbbddddd...

output:

cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc...

result:

ok single line: 'cccccccccccccccccccccccccccccc...ccccccccccccccccccccccccccbbbaa'

Test #8:

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

input:

1000
hhqjhgqqjhqhqhgggqhgqghhjjgjjqqqhhjhhjqqjqqjqqhghghjhqhghhqhgjgjhqhjjjqjqgjgjgqhqqgjgqghgqjjhqjjgqghjqjhqjhghhghgqjqjhggjjhhjjqhqgqhjjhqqjqjghjjhjhqghqggjqjqjghjqhqjqgjqqjjqjjhjjqghqjjhhjhghhjggqqjjqgjqgqjhqhjqhjqqgjqhghghhjqqhhhjhjjgjjgjqgjqqqggjggqhqgjhqhqqgggqqhqqqjhqgjghhhqgghqqjgjhjqjhhqgh...

output:

ddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddccbbbaaa

result:

ok single line: 'dddddddddddddddddddddddddddddd...dddddddddddddddddddddddccbbbaaa'

Test #9:

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

input:

1000
cceooojojcecesjojsssesjojccoecceoojecsscojsosoccojscjcjssococjscssosecooeejoosojeecjceoeeojcocosjcecocoesjceejjecssjejccjsjosjsjcjesjojcojocjjeooeccojjosjcjjcjoecseecsjccojcoessecejcocosecsojeoceejeccejeoosssscecjcssooojoseeccosocoeejjecsjeoecejsoojessoescecjjsscecoccjsjsscccssjoeejsscoesecssco...

output:

eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeddccbaaa

result:

ok single line: 'eeeeeeeeeeeeeeeeeeeeeeeeeeeeee...eeeeeeeeeeeeeeeeeeeeeeeddccbaaa'

Test #10:

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

input:

1000
mmmfqfmpqrccmqfcrprpfppcpcffqcrcrcqmmmqmrfmrpqffppcmqpqqrfqqcffpmqqfmcmpmcfcqcffqmrmqrmmqmffpqqpfqrcppmmpmrqffmfcfffqmrprfcpfqffrrrmcqmpfmpfmprmcrrqqrmcrcmpcffmpfcprmcpmcfmpcfprrqrpcqccpcmmqcqqfmrcrrqrqcmcpqcrcqcrrpmpmfccqcffrrfmpfqqmqcpmfpmqpcmqpmfqpffmqpcrmcmqrqfqqcrfffcfqprcprrmfppfpqqmmrcmc...

output:

ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffeeeeddcbaa

result:

ok single line: 'ffffffffffffffffffffffffffffff...fffffffffffffffffffffeeeeddcbaa'

Test #11:

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

input:

1000
hljikoiljhkhhikjihlhokhjnjlijjhkhinohnioklilhonihliiiohllkniiokjiihkokkkhnijkkkijnnjljoihiljlnjhllnjlhojnjojnnjhllilnnoloiijioiohkononkijhniihjiinononokjjokljjkinonhkojknohijhlilhjjlhkhjoonojlknjnljniklohinhinnnkhnkljjknkjhhlhlkllihhihnlkjklhokkihlhlikjhkjokhkniooljkojjiiljjjnojkiojnkniljnkoljn...

output:

ggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggfeedccccbaa

result:

ok single line: 'gggggggggggggggggggggggggggggg...ggggggggggggggggggggfeedccccbaa'

Test #12:

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

input:

1000
cbpfmafbflfblamcccmcbbfqqfpbaaqfpccqqbqfcabmlbbmfqcpfqmcpqcfffacqbpbllappmbmcfpqqfqlcbcaclbbfqmqfqlammbcqblbccqcpabapcbbfcmpfcmmcpccbcbcfblfclmflpfaqppqbfppfpacmfqqafcmlmbqcbbfqaqffpafcbcqfpqmpcabfmcqcqpblfccmffplcbbaamcallbblmbcmammaablfmbfqqlcqacpqfaqpfcbamamcqcmqqffqfcbcffmabcfplabbmfqcampqc...

output:

hhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhgggfedcba

result:

ok single line: 'hhhhhhhhhhhhhhhhhhhhhhhhhhhhhh...hhhhhhhhhhhhhhhhhhhhhhgggfedcba'

Test #13:

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

input:

1000
oikrbsjdjjsrcdbroobidjojkdjikbirccicdiicbskkciijkssjirjokcjosbbkcdkbrdroirsooiibsjokircbkjbrbkoobkrddcbossoskosbiksodsjkkocoricjkdscdickjdisiddbsdiikdisdcjdkddscdjjrkkddjbbbdidkidddijbibdisbicjokodrcbjkkcrokiciijssjjbscrssccckdjdirbbcocjkobrijssijjcjrcskdobrjcscbocoobdocobrorosiidoscrijjorsrirk...

output:

iiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiihgfeedcba

result:

ok single line: 'iiiiiiiiiiiiiiiiiiiiiiiiiiiiii...iiiiiiiiiiiiiiiiiiiiiihgfeedcba'

Test #14:

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

input:

1000
cmctnhnrhchdnnaitttiirathamrkhtahnmrttkrhdimhatrttatrtmkiminahadihkdkrdthrkrhiandtmhtrdtiinicrmmirinnarkanadnhaatkkakarirnahrtcndarniihkdnddkhitkmdrtarhinirccaitdccnncnmnanhmtrdthkrmakdkktnimictdanrcmrhtcakmcmnahcrahkhtmadmhkrriinakkrhhddmnaknacchtacaktdnmaihnhcmtcchrdmihritatkactmmhattcrkknnkr...

output:

jjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjiiihhhhgggfeeedccbaa

result:

ok single line: 'jjjjjjjjjjjjjjjjjjjjjjjjjjjjjj...jjjjjjjjjjjiiihhhhgggfeeedccbaa'

Test #15:

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

input:

1000
bcqeheddhchrddimchmikdfsmimikchdmmbreskiqfbikcdfhhmfbmqrmsibihciqqqsefmebmrbmcedhmdkmiqbdhsmkcqkifmiddhfieqersmksfiidqesisffhhrsbkiddbkbksrchchccifqkciidibqssihmmfrmfbeffhhqdbhmmdsisqkhqmhsmhckbccfreihdreiqqfcdsfffdbhsicbqfirhhchemfihedrbbkekhsfcccfmmieqfrrimsfddbqmkemciqfqrfbsresbhsiceffebfkfd...

output:

llllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllkkkkkkjjihgggfedcba

result:

ok single line: 'llllllllllllllllllllllllllllll...llllllllllllkkkkkkjjihgggfedcba'

Test #16:

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

input:

1000
pdipkeekpamgdiiafeigfaaoktngfpmkggmkdmaicekcoggpattofngagapfaifodftdmkfoctpdkkomkttgpotdggeeonkdieocdcdnffiittompaopieonamnpiigienpenieaigfiieaeiiftmpkaaegopdeamatngamagapfnppkgciptpnmpcmiagfdoaiemftddddenikaiidmmdopfapgnmefdidgdkegofmeofnetktinipopkfdpkikcodtkapngefetkaffgppkkieikmfadottcceipk...

output:

mmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmlllkjjjjiiihggfedcba

result:

ok single line: 'mmmmmmmmmmmmmmmmmmmmmmmmmmmmmm...mmmmmmmmmmmlllkjjjjiiihggfedcba'

Test #17:

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

input:

1000
redfdnprmcbbhfdlmepnolpfotdhlrrlbedeccnrdblprfbdptohmbldthoorcrnceelhochsrppfbotmlchhsftlemfhbcnpdltofescnhmdhombpcddpscfhnmrnordbehnpdlrbbbfcdsoohpbhtcpsrhffobpehhdtmfcmmsbnpcedtmpfcpfporehfbfbotcpbeobnlednofedbpldcrosfcfnplnhbdlohfedrpsosmrpedenpfrrnsbehslloeldemsoeenfrsssppldtnfelrlboepptlpo...

output:

nnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnmmllkkjjihhhhgfeeeeddcba

result:

ok single line: 'nnnnnnnnnnnnnnnnnnnnnnnnnnnnnn...nnnnnnnmmllkkjjihhhhgfeeeeddcba'

Test #18:

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

input:

1000
hegsdmeapjipglsnfmianparlaersaragrlepapooflllgnsiggjdjdpraslojdfdaaesfpllhnihselidejrgrfmmaldfnrejophlanehrdsjrrsidomemhmeafrgrrajrrfrjjgpfmgsprifnolfglhmnfapljamsldgrfsomopfedsegdadmojparrssjpfsfaporljfhsfhhgrnilmhdlppoldhaomrjprnfirlmnnhfseofjenrohflfndfiimmsirjopeeipafhphogsafrngjjiprnifeila...

output:

oooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooonnmllkjjiihhggfedcbbbba

result:

ok single line: 'oooooooooooooooooooooooooooooo...oooooooonnmllkjjiihhggfedcbbbba'

Test #19:

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

input:

1000
dgenmltemgsnbimnhicfomcbbliddfhllohldnthotglfeoobtohilblglibclhdlmmfgseslgseiimkhhbflfekildtgllfdkjolnilbtscnfjklfidbknhlljkokodbtmoccbiigicgnfdfbhktcomilkbijisdhmjcmgbkomojjfmdnjltbmnnsbslbtflkkbsofehhnndmjtifsisggeocdbtolimtnlhcoekedjsnhoobbjnhihbbtkomnjomiskfobilkjkbocdmhnffglfogtosndsitecdf...

output:

pppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppoooonnnmmllkkjjihhgfedcbbbaa

result:

ok single line: 'pppppppppppppppppppppppppppppp...pppoooonnnmmllkkjjihhgfedcbbbaa'

Test #20:

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

input:

1000
chkkcqdcggjsjadhtrjqgntecdhgrsqsbkqqqsodfkfcblqntsjrjnfcteghkafgjqtaaabdddakcbnabaqtoqdkogfgqaebrsdcdqkadkeqoleknokgfhshkqdhhsjddatblonnlnkllordrbgjjsjdedhlgsdsodcbcbojaehanhqetgnasocghtcrdbqdclegfscnqcelofffckefedohhadlhhnadnffbkreeletoknrrhrffrogrcgghaeglcefhbaaefggaabohttrstfgfqgcnnbeqjdklqr...

output:

qqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqpppooonnmmlkjiihgffedcba

result:

ok single line: 'qqqqqqqqqqqqqqqqqqqqqqqqqqqqqq...qqqqqqqpppooonnmmlkjiihgffedcba'

Test #21:

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

input:

1000
mmimrctldielpadeocgmaifcafkhjccnaktgmsejehgcoialclsopnrokmamnahangmhfmgcrmlatislecsgiaaarkpssscshtcrncptsoijirnogggititpohtgcaegdaaeoegmioridoggttsorppehjhiondejafeanspotcngepscflcseeikasopdmdthgnasdnfedkookrnkjcsinkejkiskasoecnlnkigrdfktopfcoehlsednknimtshljrdlnnainrfskmddegerildgcnkmfoapefalm...

output:

rrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrqqqqqqponnmmlkjihgfedcba

result:

ok single line: 'rrrrrrrrrrrrrrrrrrrrrrrrrrrrrr...rrrrrrrqqqqqqponnmmlkjihgfedcba'

Test #22:

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

input:

1000
qdjplrlfkgqbnncnglcfdijiifboesenqmfjilnqrppabmntsgdefcjrkotiejacrdmqqoegtspofdejngqmddjatlfakscdcfdfjfrqkfllmoteldgnirkmpmbjfpkkiblsnjsqjijposifejtoliolrfionfiirqrdojcfqipraenpfeqfqcegkfctssmrrbdjkkrbctqiqejsfsqcgdnoaelcfaslegtrcefleqqjbtgjpbjrdqtmajcfgotetrkeeoqptnsbkgoaedsqorniralmeklcigocfal...

output:

ssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssrrqqqqqqppoonnmlllkkjihgfedcba

result:

ok single line: 'ssssssssssssssssssssssssssssss...srrqqqqqqppoonnmlllkkjihgfedcba'

Test #23:

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

input:

1000
opaqmbjhoctlnmefoocaqnqtecgbnirdjjhqkhiftktbslrpbacpjbrbreapkptlrcpjqpfobtiiqqtjpsrpitbljanmfdfbhldlplsniffflegrtckqjdarlhleffsalnjgmfrpasfgatgfffraheohidlolipksnskjjfaihidesjnlasitccjbbhpheglpdertnqqlgsfafikpneglbokpfaejipaeolmdrinnafpntfichatljgiqlaqhfmsmggdohcncpihiinqbssjnaleiripnbgllhcnnha...

output:

ttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttsrrqpppoonmmllkkjihgfeeedcba

result:

ok single line: 'tttttttttttttttttttttttttttttt...tttsrrqpppoonmmllkkjihgfeeedcba'

Test #24:

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

input:

1000
bqttoirtmimqqjmmjojtinijhgiaaemjmajjnnjimianoqnnsmtoajocqtmmjqojjnojmomjntqimcnohijrtgantmjmmenqtmjphcggqiqofmqndfhthcetqgdjjohanctqimjetmtronheoidtnbgggggmnjsegeoejcigercqonlaajpimihnebjdnocimircginqqghaipimqhtqgstaiieethjcmcqsnojcagpedcebjqojoebineajamnoghnocamntqejgiajdihmogtogtsnsrbcgotqiti...

output:

sssssssssssssssssssssssssssssssssssssssssssssssssssssssssrrrqqpooooooooooooooooooooooonnmlllllllllllkjjjiihgfeeeedcccba

result:

ok single line: 'ssssssssssssssssssssssssssssss...mlllllllllllkjjjiihgfeeeedcccba'

Test #25:

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

input:

1000
obdscoicccodscbddboscsddsbdsicihdidcdccbbbccobsccsbsaapbioobbbmcssssdobssmobhhhsbcdsssmdbsgddsshnbcoaccbampsiiibodocmcsmoobicmmjabmcccpboibhoodsohbssssbddsmcdddcbpsdhcsaccdmdspcdsicassbosbsobbsaocdccshsbsoihodoqdscbbhdshddcbobpfmjcbcobjmjccqohdhaidgscspoimmbhccccdhsmiophgscqnbfbodcbddospbsosbdd...

output:

sssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssrrrrrrqqpooooooonmmmmmmmmmmmmmllkjjjjjiihggfffeddddcbbbbbaaaa

result:

ok single line: 'ssssssssssssssssssssssssssssss...llkjjjjjiihggfffeddddcbbbbbaaaa'

Test #26:

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

input:

1000
ddapcpcdaaddadaadcdddkaddadkcdapdadtdcccdkdddacbddcddddaahhdaddddckddkdpddddfpcdddccahcadhaapdacddcppcchdcddddadpacccapdddaaadhcdcddadacddcchaadddkkdeaecdcadbkdkhccdpadpkkdaddddcdacbdcddtapaphapdckcdcdcappahcdpahccbcarhcpcaadcbpcakkappahpdtpdddadcccptkddbaaphtpkkddoddaaachddapchbhdddkhtcocdadpk...

output:

sssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssrqqqpponnnnmllkkkkkkkkkkkkkkkkkkjiiiiiiiiiiihgggggggggggggggggggggggggggggggfeeddddcbba

result:

ok single line: 'ssssssssssssssssssssssssssssss...ggggggggggggggggggggfeeddddcbba'

Test #27:

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

input:

1000
oooookooonnoonooonooonoonoonnoooooonlnnooonnonooknokoonknoononkooooooonooonooooooonoookooonnokoonkknnonnononoooooonnoonoooonoonnonoonnnonnoknloookooooononoooookkonknonknonooooonnojnookonoknonojnojokoonoononnonoooonojnnnnnojoonjoonjoknoooooodnnonodnoonooonoooojoojnoonojokloojnnoookooojojooonnooo...

output:

sssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssrrrqqppppoonmmmmmlkjjihgggggfeeeeeedccccccccccccccccccccccccccccccccccccccc...

result:

ok single line: 'ssssssssssssssssssssssssssssss...cccccccccccccccccccccccccccccba'

Test #28:

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

input:

1000
rrrrrprrrrrrrrrrrrrrrrrrrrrrrrrrrrprrrprrrrrrrrrprrrrrrrrrrarrrrrrrrrprrrrrrrrrrrrprrrrrrrrprrrprrrrrrrrrrrrrrrrprrrrrrprrrrrrrprrrrrrrprprrpprrrrrrrrrrrrrrrrrrrrrrrrrrpprrprrrprrrrrprrrrrprrrppprrrrrrrrrrrrrrrrprarprrrrrrrrrrrarrrgrrrrrrprrrrrprrrrrprrrrrrrrrpaprrrrrrrprrraprprrrrrarrrrrrprrrr...

output:

ssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssss...

result:

ok single line: 'ssssssssssssssssssssssssssssss...nnmmlkjihhhhhhhhgffffedddcbbbaa'

Test #29:

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

input:

1000
kjqfkgkbrigotcjqfnpdthairikbbnmghtfmlklontrdtrcbhiojmmjchkfdqjnjoobgnmicqrogbpooaihcmqkaokamhkdrecfopijirfnogekhootgbctgimlqddigjpfgllfnmmthbqpmmmdqdtattgjlgtltmpijipqrbpbqjjktllrhlrigaohbmjadrnfmhgkbtftghfkfrdbkqncfbdfcbiiddidtnamemcbctdblcdnbcjfkqbckddtfrklrckaecdbdbctfjicfbrkfdonlodbtcladrni...

output:

ssssssssssssssrrrqqqqqqqqqqqqqqqqqqqqqqqqppponnnnnnnnnnnnnnnnnnnnnnnnnmllllllllllllkjjjjjjihhhhhhhhhgffeeeeddcbba

result:

ok single line: 'ssssssssssssssrrrqqqqqqqqqqqqq...lkjjjjjjihhhhhhhhhgffeeeeddcbba'

Test #30:

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

input:

1000
elirfetpqjlntsotkoqefjjqqdgggghhrsnqmbiehrqqjrppkqgolgqnbdkmbgmbseijrfttkddnljfqnbdeddnpqdtbiifkhhqcfftcptetokfdsotcrqspddnsfpobfgesqjrckroppqertncisqqfolkkqisoppceitrppikkctmkeqjkombgorssqlfrjdfrtdckpciotqptipssoeossskqqkcptfjssrsppskcpoptfrrqbkprkpirotossicqsipfpqoqpbifqirisqqkrlkoroopfpksfcq...

output:

sssssssssssrrqqqqqppponnnnnnmlkkkkkkkkkkkkkkjjjihhhhhhhhhhhhhhhhhhgffffffffffedccccccccbaa

result:

ok single line: 'sssssssssssrrqqqqqppponnnnnnml...hhhhhhhgffffffffffedccccccccbaa'

Test #31:

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

input:

1000
rkkpormjggsrsfngapgporssflihsjgffktpqemoaenhmajblkqfihnghojtkoqnoleefiofrfemagcncphchostjsjaioaahmpnoohhfoofgnhinohjommagfmamofhlahajhlhnahaohfeafehfhhmiojjfhnjoaofcanhfifiaoofflmcfohhffnjajhmmfahfohhhofamahfoaomahmhjfahhheacahjoonmanejanoeffhoaofjfefjjhaafocfnjfaamffaoehaofohfhaahfjhmohnhnhjha...

output:

sssssrrqqpoonmmlkkkjiiihggggggfeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeedccccccbaa

result:

ok single line: 'sssssrrqqpoonmmlkkkjiiihgggggg...eeeeeeeeeeeeeeeeeeeeedccccccbaa'

Test #32:

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

input:

1000
pophnfbpnekenictgplfbklgbbbdchfcapbkdqhfcnlhggcnkbqbfdggaqclcnggppbllbgdqqnnccnclcgbcccqnkcncdccqcchnnngkgngccgpclnncknhcnccqccbnhqgcngggccccggncnnncncnbnnnqngnnchcnnnnclcncqqccqqnqccnccclghcnccnccccccccckcgqncccccnnccgggqccggnncnkncccccnncncccnccccnnccccclnncnncccgccgcccncccgcnnnqccccgnqcqccng...

output:

poonnmlkkkkkkkjiihgggggggggggfeeeeeeeeeeeeeeeeeeeeeeeeeeeeedcccccba

result:

ok single line: 'poonnmlkkkkkkkjiihgggggggggggf...eeeeeeeeeeeeeeeeeeeeeeedcccccba'

Test #33:

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

input:

1000
ibiltjgtsjfppnfrogikrpknhfppkgonfkfkghrphbnnppskppnpnnnpppnrrpponpnrnrrpknpkkrkrppprprprpokprpprrphkpprrpprpnrpkrpsrkpppppprnpprpppprnppppnnsrpkpppprpppprppnpnrppkpprhrprpppprrprhrrnpprrpppppppnprpppnnhpppppppprpnppprrrppppppppnppppppppppppppprppppnpppprpppppppprpnprprpppppppprrppnpppprpppprppp...

output:

nnmllkjjjjjiihggfeeeeeeeeeeedddddcbbbba

result:

ok single line: 'nnmllkjjjjjiihggfeeeeeeeeeeedddddcbbbba'

Test #34:

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

input:

1000
llllllllllllllllllllllllllllllllllllllllllllllrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmpppppppppppppppppppppppppppppppppppppppppppppppppppppiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiii...

output:

ssssssssssssssssssssssssssssssssssssssssssssssrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqpppppppppppppppppppppppppppppppppppppppppppppppppppppooooooooooooooooooooooooooooooooooooooooooooooooooooonnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnn...

result:

ok single line: 'ssssssssssssssssssssssssssssss...aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa'

Test #35:

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

input:

1000
qqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqccccccccccccccccccccccccccccccccccccccccccccccccbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrlllllllllllllllllllllllllllllllllllllllllllllllllllllllppppppppppppppppppppppppppp...

output:

ssssssssssssssssssssssssssssssssssssssssssssssssssssssrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqpppppppppppppppppppppppppppppppppppppppppppppppppooooooooooooooooooooooooooooooooooooooooooooooooooooooonnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnn...

result:

ok single line: 'ssssssssssssssssssssssssssssss...aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa'

Test #36:

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

input:

1000
dddddddddddddddddddddddddddddddddddddddddddddddddddtttttttttttttttttttttttttttttttttttttttttttttttttttqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqeeeeeeeeeeeeeeeeeeeereeeeeeeeeeeeeeeggggggggggggggggggggggggggggggggggggggggggggggggggggrrrrrrrrrrerrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrppppp...

output:

sssssssssssssssssssssssssssssssssssssssssssssssssssrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqppppppppppppppppppppppppppppppppppppppppppppppppppppoooooooooonmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmllllllllllllllllllllllllllll...

result:

ok single line: 'ssssssssssssssssssssssssssssss...aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa'

Test #37:

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

input:

1000
ffffffffffffffffffffffflffffffffffffffffffffffffffffrfffffcccccccccccccccccccccccccccccccccccccccccccccccccciiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiibbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbddddddddddddddddddddddddddddddddddddddddddddddddddddggggggggggggggggggggggggggggg...

output:

ssssssssssssssssssssssssssssssssssssssssssssssssssssssssrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqppppppppppppppppppppppppppppppppppppppppppppppppppppppoooooooooooooooooooooooooooooooooooooooooooooooooooonnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnn...

result:

ok single line: 'ssssssssssssssssssssssssssssss...cccccccccccccccccccbbbbbbbbbbba'

Test #38:

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

input:

1000
hhhhhhhhmhhhhhhhhhhhhhhahhhhhhhhhhhhhhhhhhhhhhhhhhhhhhkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkfflfffffffffffffffffffffffffffffffffffpffffggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggeeeeeeeeeeeeeeeeeeeeeqeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeepppppppppppppppppppppppppppppppppppppppfpppp...

output:

ssssssssssssssssssssssssssssssssssssssssssssssssssssrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqpppppppppppppppppppppppppppppppppppppppppppppppppppppooooooooooooooooooooooooooooooooooooooooooooonnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnn...

result:

ok single line: 'ssssssssssssssssssssssssssssss...aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa'

Test #39:

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

input:

1000
rrrrrrrrrrrrrrrkrrrrrrtrrrrrrrrrorrrrrrrrrarrrrorrrooootoooooooooooorooomoooookooroooooooooooooosssssssssssssssssssssssssssssssssssssssgssssssssssssssssssssssssfffffeffffffffffffffffffffffffffffftttttttttttttttttttttttttttttttrttttttttttttttttttttttttttbtttojjjjjjcjjjjjjjjjjjjjjjjjjjjjjjjjjjjjj...

output:

sssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqppppppppppppppppppppppppppppppppppppppppppppppppoooooooooooooooooooooooooooooooonmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmm...

result:

ok single line: 'ssssssssssssssssssssssssssssss...aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa'

Test #40:

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

input:

1000
ssssessssslomsssssssgssksssstsssssssssssssssssssseeeeeeeetseeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeoelneeeeeemeeeeeeeeoaaaaamaaagaaaaaaaaaaaaaaaaaaaaadaaaaataaaaaaaaaaaagilgggggggggggagggggggggggggggggggggdggggsggggggoooooooooiooeooooeooosoomoooooooooooooooooooooooooopomoooobtltrtttttmstttttttntttt...

output:

sssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqpppppppppppppppppppppponnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnmmmmmmlkjjjjjjjjjjjjjjjjjjjjjjjjjjjjihgggfedccccccccccccc...

result:

ok single line: 'ssssssssssssssssssssssssssssss...gggfedcccccccccccccccccccccccba'

Test #41:

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

input:

1000
qmqqqqqqqqqqboqqcqqqqqqqqaqqpqqcqqqqqqqqqqqqqtqiqqqqqqqqqqqkqqqqqpppseeelieeereteeeeeeeeseeeseeeeeeeeeeeeccccccaccqcccccccctcccccccccccqccccccckcccfasclccccdffffffffffffkfffsfifaffrffffffffffffmftattttbtqtttlbhtttttttttttttttttttkattttttttttttqttttgagggggdgggggggggggggggggggggggggggggggggggggmg...

output:

sssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssrrrrrrrrrrrrrrrrrrrrrrrrrrrrrqqqqqqqqqqqqqqqqqqpooooooooooooooooooooooooooooooooooooooooooooooooooooooooonnnnnnnnnnnnnnnnnnnnmllllllllllllllllkjihhhhhhhhhhhhhhhhhhhhhhhhgfffffffffffffffffedcba

result:

ok single line: 'ssssssssssssssssssssssssssssss...hhhhhhhhgfffffffffffffffffedcba'

Test #42:

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

input:

1000
nhnnnqnnnnnhnnnnndnnlnennnnnmdninnqnnnnnnninnecnhhhhhhhhkcthhhhhnihhhmhhhhnhphqhhhehhhhhhhbhhhsedhhqhhhchllllllijllmblppllllbtqqpjblllqllllllrllltlllllglllblljlklagakahcaeanaaaaaaaaaaagaagalgbaeafaaaigaaamaaaaataaaadiddddddhdnddddddsdddceddkddpmddidmbsdtdcbmdiddddsdddqiqqqeqqqqqqqjqlqnmqnqijqql...

output:

ssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssrrrqppppppppppppppppppppppponnmmmmmmmmmmlkkjjihhhhhhhhhgfedcbaa

result:

ok single line: 'ssssssssssssssssssssssssssssss...mmmmmmmmlkkjjihhhhhhhhhgfedcbaa'

Test #43:

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

input:

1000
ncnnmnnirhhdnnngnnqdhnknpnnjkfqnnimahkrftindknhmapnnqissgssdgnstlssdmsbssknsgcpqbsississlohmgsifnppqcjasppkpsspaqppfpfopqpppppsfpbnppdfprcppnpcrbpppnrqpptcooorcoooiobogoooponohookiaiolalstojooomoaccocjgfjkdfkjjpjjjsjgsgjtjjkfjtmjcjlskjrdmfjjftjmhjtdpdildkdpkdoddmddcdrdddkpdfdafidkjdddpjnidbhrdt...

output:

ssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssrrrqppppppoonmmlkjihhhgfedcba

result:

ok single line: 'ssssssssssssssssssssssssssssss...ssrrrqppppppoonmmlkjihhhgfedcba'

Test #44:

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

input:

1000
rgrnmmqajgjjgmpbbgqagpghdtttbercqgfhogpigaqrprehlgaoaanctmqeaorqgnnqndtqabnnbenfcannecnahtaslntepaphdoondcbnicdopbrgjcbbiqbedijgrqgrdnrpnpbambbtrlpegjhdpqeqcpqblmlppbtfnnchhrpaqoteedaaerrnpjipsprsnrbagpogqicdosdqofbcmsjtjoooftfmmmmfmnsoaojoldqonopqamohaioophhohhaohhebmosibgaephnthniehmhiihjrjtf...

output:

ssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssrrqppppoonmmlkjihgfedcba

result:

ok single line: 'ssssssssssssssssssssssssssssss...sssssssrrqppppoonmmlkjihgfedcba'

Test #45:

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

input:

1000
ehrblhrmhoqcleahbjjqtoqrbbmatbjtmelrahecorcenqspotberdkkrlomdkqfccdfooepjlicltjhjhlhekifqafjcskbfqnnipdiqtckplidriibehbekqokifmshkknmnpdlfmlfndlfcrpfpadslmoatbsjjcobbbmitbehndilsqseepdkaqipdbijbpqjfqleqkjhmomrscsoofmjplqspjkekkppfjsapfnqkmilicocilcqnenidjhmjnlikdtjcmierhiocrhfmfcebepcqnjkkjffoi...

output:

ssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssrrqqqpoooonmmmlkkjihhgfedcba

result:

ok single line: 'ssssssssssssssssssssssssssssss...sssrrqqqpoooonmmmlkkjihhgfedcba'

Test #46:

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

input:

1000
tgkikmnqbtgfboqodhndoacltpmbmfthtnadbitnbsnginnnmcoathosndddnmrsokhpcensobrqgglbihmbgffpasmdlqknckchpcbinpabtfefpqbfkfhglnnkcbepqbhcohiliilncfdcbglkehpnhencfsniirmrtiiriipmkpofctgfaalnireckepkosskqdkkinlsfiepnkskaoigkagtdmmokrmtasbaarfglmechlcairapitphomnhotomihgnrhatqdmkgchmilslbdgbcorhhamsqtd...

output:

ssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssrqqpooonmlkkjiiihgfedcba

result:

ok single line: 'ssssssssssssssssssssssssssssss...sssssssrqqpooonmlkkjiiihgfedcba'

Test #47:

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

input:

1000
prfapiajrgrjanqobqkjgkokmajenhobtkkgkpldfqapofkbhaqkntfoklidamkcbaqpodoefladdlcgemnjeobhdehjadocfqhjnfnccbtipknaqcnfinjnoebfjmdnoqqkadfdngmqmaadolkfpltkaqhatmbbmrjpmqjmaofqjenoopbkppthrrmmimjdtkiclgflqglnrqakldppqhqmqdgmqrbqiqjjtkelltjejamagleqmtegceqcqhcikgrirocmdicodihdgdtnjahlciheqdfrcgpchoi...

output:

ssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssrrqqpooooooooonmlkjiihhgfedcbba

result:

ok single line: 'ssssssssssssssssssssssssssssss...rrqqpooooooooonmlkjiihhgfedcbba'

Test #48:

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

input:

1000
ihtnhaatmfnnjhmnflannfttfsjaiqmqjddqqrlfhmmjnmhqlthqmfhhftfiffftttmchnifohnhfmftrmadqhjdhtnffnmfjnctaccadamdqnmefdnhrchdqssihjnqmomrmlohnnqdlnmahatdahmhqffodnfttairantloriaqnqhnqmihasahdihnjnbcdrtndjqdlcqhbmajislhntiatttcfhfadcacolchfhfnmnanqajthfmjpqimihqqhkeocahrafhlfomffrftnnmtcfqrhntirhbceh...

output:

tttttttttttttttttttttttttttttttttttttttttttttttttttttttttttsssssssssssssssssrqqqqqqqpooooonnmmlkjjjjjihgggggfedccba

result:

ok single line: 'tttttttttttttttttttttttttttttt...pooooonnmmlkjjjjjihgggggfedccba'

Test #49:

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

input:

1000
istacriaaimhkashicshismmsnihcnramchstiacniasscsricnchsccsiscssisacitassmnsakinsabhhctssfsiciaiaarsiisicissshcbqciaiknrscaaatnaarcmafsicmabialsncnacricsicakicciitnsicqanqaissthsbamismbaicmaantmmbairnrmhrcrcmhrisassmihcrnbnisfbirtgitbacrnhmbsasashmcmfccbminksammsspmnmmaiceabsitcttintqmacksbmaaias...

output:

ttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttssssssrrrrrqpooooonmmmmmmmmmmmmmmmmmmmmlkjjjjjjjjjjihhhggfedddddcba

result:

ok single line: 'tttttttttttttttttttttttttttttt...mmmlkjjjjjjjjjjihhhggfedddddcba'

Test #50:

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

input:

1000
ssrsaodoododddodadeosisdsdddodsddoodrdsodadsodpodadorosrrdrodddobabdorodddoddodaoodoaoadeodaaddosoososoarossdsmroodsoddsdddsiddordsddrsadooodsooerdoroorpdooriosrdddosaoddrddodridoboirsdiirdosdsamoseaiododordsoosdaipososasoesiddsopddddddrsdbopdorsadaaooedbioddcmmaerooesdooaopadmarsodasmseedlmaio...

output:

ttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttsssrqqqqpponnnnnmmlkjiiihgggggfeeeeeeeeeeeeeeeeeeeedccccbba

result:

ok single line: 'tttttttttttttttttttttttttttttt...ggfeeeeeeeeeeeeeeeeeeeedccccbba'

Test #51:

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

input:

1000
frffrffffffffffpfrffffpfffrfrfffffrrfrffffpffffrfpfrffffrfprfffpfrfffffffrfrffffffrfffrfpffffrpfffffrfrfffffffffffrffffpffrrffpfafffsffffffpfsfrfrfrfrffffffrfkffsffffffrffrfaaffafrrfffprffrprrfffrrfpfffrffrfffpifffrsrfipffpfprfrsffafffprffifrapfrrrrrrpffrfrfrspffsarffrfrfrppffparfsffrrfpfpaafaf...

output:

tttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttsssrrqqqqqqpppponnnnmlkjjihhhhhhhgffedddcbbbba

result:

ok single line: 'tttttttttttttttttttttttttttttt...onnnnmlkjjihhhhhhhgffedddcbbbba'

Test #52:

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

input:

1000
jtjjjjjjjjjjjjjjjjjjjjtjjjjtjjjjjjjjjjjjjjtjjjjjjjjjjjjtjjjjjjajjjjjjjjjjjjjjjjjjjjjjjjjjjjjtjjjtjjjjjjtjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjtjjjjtjjjjjjjjjjjjjjjjjtjjjjjtjatjjjjtjtjjjjjajjjjjtjjtjtajjjjtjjjjjjjjjtajjjjjjjjtjjjjjjjjjjjjttjjjtjjjjjjatttjjjtjjtjjjtjjtjtjjajjjttjajtjjtjttjjjjktjjjt...

output:

tttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttt...

result:

ok single line: 'tttttttttttttttttttttttttttttt...cccccccccccccccccbaaaaaaaaaaaaa'

Test #53:

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

input:

1000
imkissilgtjrjrspldhdfeoeknmgfndooeebenddotbsidlfjtffirrgqkjhhcapnjokhphrrcfqhtgfdpgfbboqpioknijgddtkjksnlboqrapfhljhlnhegacqbhfnjlfhbkqhrlkonjolspipkcoclnertlbpacdkmrpdpobgologfiokrprnorltfdaljfmdtpsarctbgahcfsckofhrhrfgnehkfangfmfpbgithhfpfdrhcnhfriihbhfngghtprhnhmngfgbpfqngmcpgoihqoakgrgskghf...

output:

ttttttttttttttttssrqqqqqqqqqqqqqqqqqqqqpooooooooooooooooooooooooooooonnmmlkkkkkkkkkkkkkkkkkkkjiiiiiiiiiiiiiiiiiiihgffffeddcbaa

result:

ok single line: 'ttttttttttttttttssrqqqqqqqqqqq...iiiiiiiiiiiiiiiiiihgffffeddcbaa'

Test #54:

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

input:

1000
nhoklkcjhfljgqlrfkpendbcscimicfqsqsdtlrrmktnphhcrfaoipamstiokficaqrpsnbsjecrtprseqkidffqthljgfglfpcemrjhjfbgqlrossdkiosqfslrsfnjqhbjbsigoklqnfjjjjebonmbhfipppinbqogdbmsbhhonhjofjbdsgrljjjkbjigbsjlsophibpooobffpqiqoslsdssljohkifjljdbsopbjsodblrsdqjlrdqbbrfojjspjgilfbppdjbribbsorbqqqqompobgoqsopo...

output:

ttttttsrrrqqpooooooooonmmmmmmmmmmllllkjjjjjjjjjihhhggfedddddddddddddddddddcbbbbbbbbbbbbba

result:

ok single line: 'ttttttsrrrqqpooooooooonmmmmmmm...ddddddddddddddddcbbbbbbbbbbbbba'

Test #55:

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

input:

1000
rcaiopeihfibnahpinlspnlpfqgaptnfqsgmtmfaamtrpgophergqdrrhrqqijgfqpilbbelgkddktfrofeaetqibeegqtkllgaeltredajqqtqbfrqdlbcifelfltoerilflnedeofdqifeforrddeqfqdqlrfplqelfqtjfqldqqdadqqqqlfordiqqeolirdrldqdgefaqfrflqeaffdrdarrqqrffqllfqaqtfdfeqdtdfraodllqeddqdkaifqfeqddleqlqqqlflrpigfdeldfdfddlladkfe...

output:

tttttsrrrqqqqpooooooooonmllllkjjjjjjihhhhhhhhhhhhgfffedcccccbba

result:

ok single line: 'tttttsrrrqqqqpooooooooonmllllkjjjjjjihhhhhhhhhhhhgfffedcccccbba'

Test #56:

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

input:

1000
lctfejbslbflpmmrkkmqklrkdhbgirfctcpghhklbtantbhihgmtokoibhrokrblprbamblkgbkttnlklpnrlpbhgpbiblnrkhbolloookhrblilokbktoblkrkhkkikbgrkkbkkgkkltobglbklkrbbkgklbokkrrklklbkglklgkkkobbkkkkgbgkrbkkglbbkgbklkkblgtkkkkkbbkklblolbbkkrkbbgkbklgbklkrkrbbkblkkrbkllkbbbkkglllgkoklkkkkkkblkolkrblkkkkkkkllbkk...

output:

tsrqqqpoonmllkkkkkjjjihhhhggffeddddddcbbbbbbbbbbbbbbba

result:

ok single line: 'tsrqqqpoonmllkkkkkjjjihhhhggffeddddddcbbbbbbbbbbbbbbba'

Test #57:

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

input:

1000
bnktqidsiockjnaaggrkajmnrkgabnijjbkgabbnrknnjjgarbaantbaskanbabgrbanbnbnasgaaabbbaraaaakaabbaraggaaraabbnbabranabganbanbabaanrabbbabrkajaarkababbaaabrgbbaaaaaaarbaaabaaaaagaanabaaabaaaaabbbbaaaaaaaaaaanraaaaabaabaaabbabaarbaabaarbaaaaaaaaanaabaaaaaaaaaaaabnbaaaaaaaabaaaaabaaabnaaaraaabaaaaabaaa...

output:

onmlkkkjiihggggfeeeeeedcccccccbaa

result:

ok single line: 'onmlkkkjiihggggfeeeeeedcccccccbaa'

Test #58:

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

input:

1000
kkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkfffffffffffffffffffffffffffffffffffffffffffffffooooooooooooooooooooooooooooooooooooooooooggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrcccccccccccccccccccccccccccccc...

output:

tttttttttttttttttttttttttttttttttttttttttttttttttttttttttsssssssssssssssssssssssssssssssssssssssssssssssrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqpppppppppppppppppppppppppppppppppppppppppppppppppppppppppppooooooooooooooooooooooooooooooooooo...

result:

ok single line: 'tttttttttttttttttttttttttttttt...aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa'

Test #59:

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

input:

1000
iiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiillllllllllllllllllllllllllllllllllllllllllllllllggggggggggggggggggggggggggggggggggggggggggggggqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqffffffffffffffffffffffffffffffffffffffffffffffccccccccccccccccccccccccccccccccccccccccccccccccccccccr...

output:

ttttttttttttttttttttttttttttttttttttttttttttttttttttttssssssssssssssssssssssssssssssssssssssssssssssssrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqppppppppppppppppppppppppppppppppppppppppppppppoooooooooooooooooooooooooooooooooooooooooooooooooooooonnnnnn...

result:

ok single line: 'tttttttttttttttttttttttttttttt...aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa'

Test #60:

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

input:

1000
bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhddddddddddddddddddddddddddddddddddddddddddddddddoooooooooooooooooooooooooooooooooooooooooooooooooooooootttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttqqqqqqqqqqqqqqqqqqqq...

output:

tttttttttttttttttttttttttttttttttttttttttttttttttttttssssssssssssssssssssssssssssssssssssssssssssssssssssrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqpppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppooooooooooooooooooooooooo...

result:

ok single line: 'tttttttttttttttttttttttttttttt...aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa'

Test #61:

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

input:

1000
eeeeeeeeeepeeeeeeeeeeeeeeeeeepeeeeeeeeeeeeeeeeeeeeeeccccccccccccccccccccccccccccccccccccccccccccccccccccnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnninnnnnnnnnnnnnnnnnnnnnnnnnnnnnniiiiiiiiiiiiiiiiiiiiiiiiiiiiniiiiiiiiiiiiiiiiiiiiiiiiiiiiiidddddddddddddddddddddddddddddddddddddddddddddddddddjjjjjjjjjjjj...

output:

ttttttttttttttttttttttttttttttttttttttttttttttttttttsssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqpppppppppppppppppppppppppppppppppppppppppppppppooooooooooooooooooooooooooooooooooooooooooooooooooo...

result:

ok single line: 'tttttttttttttttttttttttttttttt...aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa'

Test #62:

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

input:

1000
pppppppppppppppppppppppppppeppppppppppppppppmmmmmmmmmmmmmmmmmmmommmmmmmmmmmmmmmmmmmmrmmmmmhmmmmnnfnnnnnnnnnnnnnnnnnnnnnnnnqnnnnnnnnnnnnnnnnnnnniiiiiiibiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiggggggggggggggggggggggggggggggggggggggggggeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeepeeeeeeeeeeeerrrrrrrrrrrrrrrrrrrrrrr...

output:

ttttttttttttttttttttttttttttttttttttttttttttttttssssssssssssssssssssssssssssssssssssssssssssssrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqppppppppppppppppppppppppppppppponnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmm...

result:

ok single line: 'tttttttttttttttttttttttttttttt...aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa'

Test #63:

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

input:

1000
nnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnbbbbbbbbbblbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbblllllllllllllllllblllllllllllllllllltllllllllllllllffffjffffffffffffffffffffffffjfffffffffffffffffffffffkkkkkkkkkkkkkkktkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkeeeeeeeeeeeheeeeeeeeeeeeeeeeeeeeeeeeee...

output:

ttttttttttttttttttttttttttttttttttttttttttttttsssssssssssssssssssssssssssssssssssssssssssssssssssssrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqponnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmm...

result:

ok single line: 'tttttttttttttttttttttttttttttt...eeeeeeeeedcccccccccccccccccccba'

Test #64:

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

input:

1000
eeeeqeeeeeebedeepeeeeneeeeeeeeeeedeeeeeeeeeeeeeinbbbbbjbbbjbbbbbbbbobbbsbbbbabbbbbbbbbbbbnbebbbbbbkkkkkkkkfkakkkkkkkkkkqpkkkkkkkkkkkkkkkkkkkkkqqqqqqqpqqqkqqqsqqgqqqqgqqqqqqqqqqqqqqqqqqeqqmpqqqqqqqqqqmmqmmmmmmmmmmmmmqgmmmmmmmbmcmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmcccccccccccccccccccccccccccccccccccccc...

output:

tttttttttttttttttttttttttttttttttttttttttttttttttttttttttssssssssssssssssssssssssssssssssssssssssssssssssssssrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqpppppppppppppppppppppppppppppppppppppppppppppppppppppppppoooooooooooooooooooooooooooooooooooooonnnnnnnnnn...

result:

ok single line: 'tttttttttttttttttttttttttttttt...hhhhhhhhhhhhhgfedccccccccccccba'

Test #65:

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

input:

1000
cccccccjiccccccccchccfccctcccccccccccccccccccccccccsmmmommjmmmmbmmmmrmmmmmmmmmsmmmpmmmmmmmkmhhhhhhahhhbhhhhhhhhhhohhthhhhhhhchhhhhhhhhhheihhhhhhthhhfhhlllllllflllilllllllqlllllllllllllllglflllllllpllgkgggggpggggggntgggigagoggggggtggggggbgggglqaaaaaaaaaaaraahagaaaaafaaqiaaaaaaaaaaaaaaaaaqajaaanp...

output:

ttttttttttttttttttttttttttttttttttttttttttttttttttttttttttsssssssssssssssssssssssssssssssssssssssrqppppponmlkkkkjiiiiihgfedcba

result:

ok single line: 'tttttttttttttttttttttttttttttt...ssrqppppponmlkkkkjiiiiihgfedcba'

Test #66:

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

input:

1000
ogajooiokooocoocoloojooooooooaoopomojoqomoooocmmmmpfnmrcmmglmmmemhmmammmmmemmsqommtmhmmmommdmmmmmjtttdtcttttttnirhttmtttttttttttahtttpnthtttthriiiigiiiiigiiiiiiniiiaiihipiiieiicidsiiiitcoeqpiiniriiqfgggmgofggigngdggiggkdgggogrgggggggggglggpgpkhpppppppppqtppppoipppfppppcppqpppppiepipfplpgstdppas...

output:

ttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttssssssssssssssssssssssssssssssssrrrrrrrrrrrrrrrrrrqpppppppppppppppppppponnnnnnmllllkkjjihggfedcbaa

result:

ok single line: 'tttttttttttttttttttttttttttttt...pppponnnnnnmllllkkjjihggfedcbaa'

Test #67:

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

input:

1000
stajabsssdshsanprcsspqassfssqsssmeedmmsnssmsssssasqassrghkkgajkdhcgggegortfgnpngggpkegqlgggkgegggegapeejpglpdqnmrpprppphedbhcplhqpppcmbccppppdtpriqnddcipioffqakajqasaapgallaiaaaasramaoaksisnsiafhaegpaaetcarlidafkaaftlqgttsnttagtrtencmttktbggtptthobgmtholttotshctttnnbpbtjimkbljmlklekbpmabbmckbfb...

output:

ttttttttttttttttttttttttttttttttttttttttttttttttttttttttsssssssssssssssrqpppponmllllkjihgfedcba

result:

ok single line: 'tttttttttttttttttttttttttttttt...sssssssrqpppponmllllkjihgfedcba'

Test #68:

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

input:

1000
nnalcjmhcccfkceoplntcohampjcsbcqgcdnpkqrngcjqocoandsdmgboanmloobgqoqdoqlteinrooonlnbegbolcohqbnkgagosnjoamhlipgdetdtsnpdarsdmfppkbbmicefasiekkcnqjmemeaiodoknteaibmlpmlgilmpptgdijnrngqboohitibafisnemjrjrifcdkbinmccmtkmgjimoienggjefiggjhakfrtaqeojhdkqektimkkooamefmkgeqdncjmclkiroloksdqsckfflrknkj...

output:

tttttttttttttttttttttttttttttttttttttttttttttttttttttttssrqqqqpoonmmmmmllkjiihgfeddcbaaa

result:

ok single line: 'tttttttttttttttttttttttttttttt...rqqqqpoonmmmmmllkjiihgfeddcbaaa'

Test #69:

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

input:

1000
iotlfkpgnteocmgarakaraaqdthjqahaimrjhraoobdhnempllltjqdoqomeibaaerppksjbgablrkbrtaheabadfsfgfjnrpfngjtmqmshalisjijnnfcencradshreohesnfmhhdlfqtekktodnlfdrjcecmleamllaqotodekhsiobfschasmmbrataeqfbcjoerdbhsnggjkglgfnretnhldksjqqnhlpgbcqadcscmmntocgtgitqipicrcoahodjlggmigaedibigbgeofsotoopkjhjatjhp...

output:

tttttttttttttttttttttttttttttttttttttttttttttttttttttttttssssrrqqpooooonmmlkkjihgfedcba

result:

ok single line: 'tttttttttttttttttttttttttttttt...tssssrrqqpooooonmmlkkjihgfedcba'

Test #70:

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

input:

1000
brknftjrdbthbfphdrnghkalkjnooftjohnodktlrpllpcoaqjkfalbjfrosqnahregdtttinaeejljcmcbbhikdeofjlbkdnblabfhflibnqigteolhffdiojdrqshiqprgrgposmgjjnkhkhstacammedflbnqfasaeoogreskdjntotkqfdfatcqjqjnmlcddoshnpsbjpjbpdjbjbddqjfhtkepecfkpjlaqishrdhopkjoehfkttsfchhbieslklemqrlrbqddqhkstsfinopileqamsehiqfb...

output:

tttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttsrrqpponmlkjiiihgfedccba

result:

ok single line: 'tttttttttttttttttttttttttttttt...tttttttsrrqpponmlkjiiihgfedccba'

Test #71:

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

input:

1000
brskjlirkejbmqcgbojpahdhacksbiilcmkefghjrshfonrtimlijdnkjhkordkdfmjapoadsgmsskngghieapbmtoojogcptthmjkkredtlhlndsphbmbckrcbtcekkidtrtqckqhqefsifctmpmjmhkfdlmkkrkhqncngoklhmkolgretaqmrednimcncggbmqbiqrgfhmlataqethsdafmbtjqagqabmbssjcopihntlldbfajehplfdrsffcidptnljcoeqifaagldanhlidfplfifcndrktdjh...

output:

ttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttsrrqqqponnmlkkjiihgfeddcba

result:

ok single line: 'tttttttttttttttttttttttttttttt...tttttsrrqqqponnmlkkjiihgfeddcba'

Test #72:

score: 0
Accepted
time: 16ms
memory: 12608kb

input:

1000
jjjjrrrrhhhhkkkkllllffffmmmmppppnnnnooooggggddddaaaassssqqqqcccciiiibbbbeeeettttffffllllppppqqqqmmmmssssbbbbnnnnggggiiiiooooccccjjjjaaaarrrrhhhhkkkkddddeeeeiiiimmmmbbbbqqqqkkkkffffllllrrrrnnnnppppjjjjgggghhhhaaaassssccccooooddddnnnnbbbbiiiiaaaajjjjkkkkppppggggffffcccchhhhssssqqqqmmmmrrrrllllooo...

output:

ttttssssrrrrrrrrqqqqppppppppoooonnnnnnnnmmmmllllllllkkkkjjjjjjjjiiiihhhhhhhhggggffffffffeeeeddddddddddddddddddddddddccccccccccccccccccccbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbaaaaaaaaaaaaaaaaaaaa

result:

ok single line: 'ttttssssrrrrrrrrqqqqppppppppoo...bbbbbbbbbbbaaaaaaaaaaaaaaaaaaaa'

Test #73:

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

input:

1000
kkkkllllggggrrrrbbbbaaaaooooddddqqqqeeeennnniiiiccccssssmmmmjjjjpppphhhhffffttttnnnnddddeeeejjjjmmmmsssskkkkbbbbiiiirrrrqqqqppppllllhhhhccccooooaaaaggggffffeeeeaaaaqqqqkkkkccccrrrrbbbbddddlllliiiinnnnmmmmhhhhjjjjssssppppooooggggccccaaaallllrrrrmmmmqqqqhhhheeeessssiiiikkkkddddjjjjnnnnbbbbppppooo...

output:

ttttssssrrrrrrrrqqqqppppppppoooonnnnnnnnmmmmllllllllkkkkkjjjjiiiihhhhhhhhggggffffffffeeeeeeeeddddddddddddddddddddccccccccccccccccccccbaaaaaaaaaaaaaaaaaaaa

result:

ok single line: 'ttttssssrrrrrrrrqqqqppppppppoo...ccccccccccbaaaaaaaaaaaaaaaaaaaa'

Test #74:

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

input:

1000
nnnneeeeggggffffbbbbllllrrrrmmmmhhhhppppqqqqiiiikkkkssssddddjjjjooooaaaacccctttthhhhffffkkkkaaiarrrroooonnnnppppssssbbbbjjjjiiiiqqqqmmmmggggeeeeddddllllccccmmmmggggnnnnaaaaiiiikkkkeeeeddddffffbbbbrrrroooossssjjjjhhhhqqqqppppllllrrrroooobbbbssssmmmmqqqqkkkknnrneeeeiiiijjjjaaaaffffddddhhhhggggppp...

output:

ttttsssssrrrrqqqqpppppppppoooonnnnmmmmmmmmmmmmmllllkkkkjjjjjjjjiiiihhhhhhhhggggggggffffffffeeeeddddddddddddddddddddddddccccccccccccccccccccbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbba

result:

ok single line: 'ttttsssssrrrrqqqqpppppppppoooo...bbbbbbbbbbbbbbbbbbbbbbbbbbbbbba'

Test #75:

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

input:

1000
qqqqddjdhhhhggggiiiibbbbeeeekkkkoooossssllllrrrrffffjjjjmmmmnnnnaaaappppccccttttfgggddddrrrrjjjjkkkkaaaammmmppppqqqqbbbbllllffffsssshhhheeeennnnooooiiiiccccaaaahhhhssssjjjjffffnnnneeeemmmmllllkkkkddddggggbbbbqqqqrrrrppppooooiiiilllljjjjkkkkaaaasssshhhhbbbbnnnnppppeeeeddddqqqqmmmmffgfggggrrrrooo...

output:

tttttssssrrrrrqqqqppppooooooooonnnnmmmmllllllllkkkkjjjjjjjjiiiihhhhhhhhhhhhhhhhgggggffffeeeeddddddddccccccccccccccccccccccccccccccccccccccccccccccccbaaaaaaaaaaaaaaaaaaaa

result:

ok single line: 'tttttssssrrrrrqqqqppppoooooooo...ccccccccccbaaaaaaaaaaaaaaaaaaaa'

Test #76:

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

input:

1000
qqqqppppjjjfmmmmffffllllggggiiiioooocccckkkknnnnhhhhrrrrsssseeeeddddbbbbaaaattttmmmmqqqqrrrrddddssssooooggggeeeehhhhnnnniiiiccccfffflllljjjjnkkkppppbbbbaaaaffffnnkneeeejsjjqqqqgggghhhhssssppppllllsmmmddddcccciiiioooorrrrkkkkbbbbpppprrrroooojjjjhhhhggggeeeennnnmmmmqqqqddddssssffffiiiiccccllllkkk...

output:

tttttssssrrrrrqqqqppppppoooonnnnmmmmmmmmllllllllkkkkjjjjjjjjiiiiihhhhggggggggffffeeeeeeeeddddcccccccccccccccccccccccccccbbaaaaaaaaaaaaaaaaaaa

result:

ok single line: 'tttttssssrrrrrqqqqppppppoooonn...ccccccccccbbaaaaaaaaaaaaaaaaaaa'

Test #77:

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

input:

1000
aaaassssooooeeeeiiiiffffnnnnhhhhppppqqqqddddmfmmggggkkkkdbbbccccjjjjllllrrlrtttkssssihiimmmmoooollllaaaabbbbppppddddffffqqqqcccckkkkannneeeehhhhjjjjggggrrrrdbddbbbbllrloooohhhhnnnneeeeiiiiqqqqaaaaccccppppsssskkkkjjjjffffmmmmggggffffjjjjebeebhhhqqqqssssnnnnikiiaaaabbbbcccdkkfkllllddddppppoosommm...

output:

ttttttttttttssssrrqppppooooooooooooonnnnmmmmmmmmllllkjjjjjjjjjjjjjjjjjjjiiiihhhhgffffedcba

result:

ok single line: 'ttttttttttttssssrrqppppooooooo...jjjjjjjjjjjjjiiiihhhhgffffedcba'

Test #78:

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

input:

1000
jjjjqqqqhhhallllkekkfflfmmmmbbgbccacaaaaddddnnnlppppeleeggggoooorrrriiiisshittttffffjjjjeeeenhnnkkkkiiiipbppccccaaaallllbmbbqqqqggghrjrrmmmehhhhddddgooossssaaahkkkknnnnppppjjqjhhhhddddflffqqqqgpggbbbbllllcccceeeeiiiimmmmrrrroooomjmbjqqqggggnnnnkkkqllllhhhhisiigaaaccccjeeebbebjjjjffdfppppdddfgjr...

output:

tttttttsssssrrrrqqqqqqqqqqqqqqqqqqqqqqqqqqqpppppppponnnnnnnnnmmmmlllllllllkkkkjjjjihhhhhhhgffffeeeedcbaa

result:

ok single line: 'tttttttsssssrrrrqqqqqqqqqqqqqq...lkkkkjjjjihhhhhhhgffffeeeedcbaa'

Test #79:

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

input:

1000
rmpmgppmiiiiifffpcccjjjjmeteggggrrrroooonngnqrqqllllsssmgaaabbmbddddhhhhkkkketotddddnnnniihfoggcqqqqccccfobbeeempppprrrrssssoogolmlljbjqaaacmmmmffffhfhhkkkkqqqjggggllllnnnnfflfmmmmaaaaiiiippppssssccccjjjsrrrpoooofbbbebefddddhhmhbbobjjajlcccjpjgllllmmmsqqqqoomqaagassssnnnngfnrfffffiiieeeerrrrddm...

output:

ttttttttttttsssssrrrrqqqqqqqqqqqqqqqqqqqqqqqqpponnnnnnnnmmmmllllkjjjjjjjjjjjjjjjjjjjjjjjihhhhhhhhgfedcba

result:

ok single line: 'ttttttttttttsssssrrrrqqqqqqqqq...jjjjjjjjjjjjjjjihhhhhhhhgfedcba'

Test #80:

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

input:

1000
fiqliepnardojtocjffnbcrkggjtloaobbrsadcesghtpnelhkljemnimdbsmrtsipkdpmgfqqcqahhkqoaborolfiednkdjispchgnsepkecphbqaoagdnlnpimmmsbsrmqgfrkhkgjjefljfhldbciqcarerennnlmiqsdisgckqkaofljmhmgpdpfncsecrfjaforrdichdhpkiljpgaalgojkqsqomehoralkqlgmipdgisocshpoihjgnmargqnnenpsjdspocrqddkmjerlekhackejlmqchi...

output:

ttttssssssrrrrqqqpoooooooooonmmmmllllllllkkkkjiiiiihhhgggggffffeeeeeeeeeeeeeeeeeeeeeeeeddddccccccbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbaaaaaaaaaaaaaaaaaaaaa

result:

ok single line: 'ttttssssssrrrrqqqpoooooooooonm...bbbbbbbbbbaaaaaaaaaaaaaaaaaaaaa'

Test #81:

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

input:

1000
ekdhimcjercjsmoblqtknaljkosrjphtgdohafrteiqkmiptofdrsbeacfhmsbcfgqqdlniabgglnpnpqbgqikjjfhrslhrjnqhjepeopbpfdflegieacsbmkkankcocqdlmplrmrcnghsfodmosaidignbadeeelsfrrimmpafckhpndjijegcicbmblsgoosdsbmlnjjgnblahpafnahhkgrkfdorpkocifmfajpssalbpghbolsfarlbhsdhiekpekdmedkfkcoicgrgcdrrjmhjgaceiiomljop...

output:

ttttssssssrrrrrrrqqqpppppppooonnmllllllllllllllkkjjjjjjjjiihgggggfffffeeeeeeeeeeeeddddddddddccbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa

result:

ok single line: 'ttttssssssrrrrrrrqqqpppppppooo...aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa'

Test #82:

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

input:

1000
slihrbglnocjedftcjmmcbrldaidlarrhpgeoaiqnpakhgcdnejomspjqtbfqkhtpisfokgtsqnbfmkeedpsnildnihahrlrknbaemnfqldhcffipckbjgbbqejqgrkarmioqscgpmosepfrcjladsgokhmjaajnsrksejlpbdoeqgfgobcramcnhkpnqkjdqdcseogfjfhbqbhcmropaphldfnsllegkmomrghcfhdcpcjngqlmsoboopdhqlplnfhbmrfnqagjqdbkanjmrbpscrfsgmoklsjdaka...

output:

ttttsssssrrrqqqppoonmmmmmmmlllkjjjjjjihhhhhhhhhhhhhhhhhhhhhhhhhgggggggggfffffeeedddcbbbbbbbbbbbbaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa

result:

ok single line: 'ttttsssssrrrqqqppoonmmmmmmmlll...aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa'

Test #83:

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

input:

1000
mfdomjeggdhjeiaoldaoikcpoqhcnmhilpmrsbekrkfbqsqdgtliernqfjgjscnfhbkacnpstlbttrpadpkbngnacjlfafhssoncejommrapraresipilekhilcdpmqndqbbfelmeobhjkgdfgkcriogjhqspbfkkdemnneflcscjflfpagqmcgaiadibebhkshmipjqspqrdlngqamfsjrlgenrbhrcjdhiimslkqsrhirsnqekmqnjphdaskndjceiabdbfalerabhemprdlcifhmkjjpnbcplnpf...

output:

ttttsssssrrrrqqpppppoooooonmmmmmmmmmmmlkkkkkkkjiiiihhhhhhhggfffffeeeeeeeeeddddccbaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa

result:

ok single line: 'ttttsssssrrrrqqpppppoooooonmmm...aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa'

Test #84:

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

input:

1000
fajjsmepacodsdalkpkreroiitlrdeqenjehantldbtgblmpnhmgbckfribfigsoostkclgmjfqhpnqqdrnoiskngclcibpaaqelflcehhrioqdkdoqmfbrkpibsalnqakmcsgrojefbejkdfhmgpgjmnjspgdjioshskgrikdkjrpdpbfqfngcfieqsfcanaqjdljclqihpbrbselocerbnogoankhlpahejhceockfkgbjldkrnairrffpgndqaaqphcphlgrdbdcojjkbehifoeboqniienlqpal...

output:

tttttssssrrqpppppppooonnnnnnnnnmmmllkjjjjjjjjjjjjiiiiiiiiiiiihhhhhhhhhhhhhhhhhhggggfffffffeedccccccccccccba

result:

ok single line: 'tttttssssrrqpppppppooonnnnnnnn...hhhggggfffffffeedccccccccccccba'

Test #85:

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

input:

1000
arlhfbhlopoimpqcqgklpnitbqtendmhchsjtjadgijienrjsrctnkgalfksdmfonbmdhqgaepsrrekafapqeigjmlnkcpkdrmcjkebpiardskijaniqmoeoarsphgjcoknedgfbslqbrsfbkklohfghqndcpcahfamhakanrberdkiqlejqjsmjpbrnnimsmlponsibqopedkijkfdlhcsfaboqflohedccjconnihkrdjmphhsacmqeaooqehfbjdaqfsrfkhckpjsemrrhbiiippqdfskanbcedb...

output:

ttttssssssssssrqqqqqqqqqqqpppoonnnnnnnnnnnmmmllllllllkkkkkkkkkkjjjjihhhhhhhhhhhhhhhhgfffffffffffffffffffffedcba

result:

ok single line: 'ttttssssssssssrqqqqqqqqqqqpppo...hhhhgfffffffffffffffffffffedcba'

Test #86:

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

input:

1000
jerepqofkqslhmidbtrpmlmogjoikdadcandqllpotkqljtehhshjjtbmcacgnqgesbasonbrdfpjframljrjpqispnpskborhrahjaeiogoeldjkfbkaqqnqcfscddlkbiahlsgccbhemirimgreopfnnmgodiihmgfqrkeagmlbejrcimfnnjpfjqkdoandhdjferolgpnhrneklbfqcihipqecjpcegbacnaffmqrragbclpladrjgejdaooiqfmmnckqoeeppaokibeijgnlbrmdfkkgqbcofmp...

output:

tttttsssrrqppppppponnnnnnnnnnnnmmllllllllllllllllllkkjjjjiiiiiiiiiiiiiiiiiiiiiiiiiihgffedcba

result:

ok single line: 'tttttsssrrqppppppponnnnnnnnnnn...iiiiiiiiiiiiiiiiiiiiiihgffedcba'

Test #87:

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

input:

1000
doifaepramcfllfmqnordckaeitdbpcrsmcnjenqimmkqbrpohbtklfesaejkhiqggkrgafahjhtponbinjqhiqpsadjqsrrarfjhpiqbrhikprbhodjccmepgkffllosmpennnfmenbcjokadmgkaosagkgdqmnadpaosqfsjkafhorqfdedfbrgbkjetkfdgspclfkqmmragpphcmeodlbeahjhgonfrfdcbeojpqsajljqarjolomodddrnnkbmbcpssgaeefnellofrganocspdfrgdgkqbnpsm...

output:

tttttttttsrrrrrrrqqpooonnnnnnnmmlkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkjihhhhhhgfeddcbba

result:

ok single line: 'tttttttttsrrrrrrrqqpooonnnnnnn...kkkkkkkkkkkkkkjihhhhhhgfeddcbba'

Test #88:

score: 0
Accepted
time: 103ms
memory: 13492kb

input:

1000
cnabjpsdmegorhkqliftcnabjpsdmegorhkqliftcnabjpsdmegorhkqliftcnabjpsdmegorhkqliftkiqjaocdmlprhngbsefkiqjaocdmlprhngbsefkiqjaocdmlprhngbsefkiqjaocdmlprhngbsefombpncrdjhkqgailseombpncrdjhkqgailseombpncrdjhkqgailseombpncrdjhkqgailsembiaqjkrdlopgnhcsmbiaqjkrdlopgnhcsmbiaqjkrdlopgnhcsmbiaqjkrdlopgnhc...

output:

ttttssssrrrrqqqqppppoooonnnnmmmmllllkkkkjjjjiiiihhhhggggffffeeeeddddddddddddddddddddccccccccccccccccccccbbbbbbbbbbbbbbbbbbbbaaaaaaaaaaaaaaaaaaaa

result:

ok single line: 'ttttssssrrrrqqqqppppoooonnnnmm...bbbbbbbbbbbaaaaaaaaaaaaaaaaaaaa'

Test #89:

score: 0
Accepted
time: 14ms
memory: 12872kb

input:

1000
akjicspomqldhbrgfentakjicspomqldhbrgfentakjicspomqldhbrgfentakjicspomqldhbrgfentkrjlsioepgafcmbhdqnkrjlsioepgafcmbhdqnkrjlsioepgafcmbhdqnkrjlsioepgafcmbhdqnepsamdlhrbkigofcjqepsamdlhrbkigofcjqepsamdlhrbkigofcjqepsamdlhrbkigofcjqkaimdpbsfrgholecjkaimdpbsfrgholecjkaimdpbsfrgholecjkaimdpbsfrgholec...

output:

ttttssssrrrrqqqqppppoooonnnnnmllllkkkkjjjjjjjjiiiihhhhgfeeeeddddccccbbbbbbbbbbbbbbbbbbbbaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa

result:

ok single line: 'ttttssssrrrrqqqqppppoooonnnnnm...aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa'

Test #90:

score: 0
Accepted
time: 15ms
memory: 13244kb

input:

1000
gblqhspinkcjomedrfatgblqhspinkcjomedrfatgblqhspinkcjomedrfatgblqhspinkcjomedrfatdejglcrqobipsnmfhkadejglcrqobipsnmfhkadejglcrqobipsnmfhkadejglcrbobipsnmfhkaglhjpnmecqbofsdrikglhjpnmecqbofsdrikglhjpnmecqbofsdrikglhjpnmecqbofsdrikcmgpbrfsjqnoelhdicmgpbrfsjqnoelhdicmgpbrfsjqnoelhdicmgpbrfsjqnoelhd...

output:

ttttsssssrqqqqppppoooonnnnmmmmmmmmllllkkkkjjjjiiiihhhhggggffffedddccccccccccccccccccccccccccbaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa

result:

ok single line: 'ttttsssssrqqqqppppoooonnnnmmmm...aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa'

Test #91:

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

input:

1000
kshfdralpcoegimbjnqtkshfdralpcoegimbjnqtkshfdralpcoegimbjnqtkshfdralpcoegimbjnqtsnomhjbdfkicargpelqsnomhjbdfkicargpelqsnomhjbdfkicargpelqsnomhjbdfkicargpelqanogsjrmdibpekhfclanogsjrjdibpekhfclanogsjrmdibpekhfclanogsjrmdibpekhfclganbdmpfjkeisorhcganbdmpfjkeisorhcganbdmpfjkeisorhcganbdmpfjkeisorh...

output:

ttttssssrrrrrqppppooooonmmmmllllkkkkkjiiiiiiiiihggggfffffffffedddddddddddddddddddddddddcbbbbbbbaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa

result:

ok single line: 'ttttssssrrrrrqppppooooonmmmmll...aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa'

Test #92:

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

input:

1000
mjikdhcbfqrseonpglatmjicdhcbfqrseonpglatmjikdhcbfqrseonpglatmjikdhcbfqrseonpglatqikocrpsmeljenhfdgaqikocrpsmbljenhfdgaqikocrpsmbljenhfdgaqikocrpsmbljenhfdganekmcrhlqopsdfijbgiekmcrhlqopsdfijbgnekmcrhlqopsdfijbgnekmcrhlqopsdfijbgchfniorqldpksjembchfniorqldpksjembchfniorqldpksjembchfniorqldpksjem...

output:

tttttsrrrrrqppppponnnnnnnnnnnnnmllllkkkkjjjjihhggggggggggfeeeeeeedcccccccccccccccccccccbaaaaaaaaaaaa

result:

ok single line: 'tttttsrrrrrqppppponnnnnnnnnnnn...ccccccccccccccccccbaaaaaaaaaaaa'

Test #93:

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

input:

1000
kqlgapfojidnecmbrshtkqlgapfojidnecmbrshtkqlgapnojidnecmbrshtkqlfapiojidnecmbrshtcaoflgrimcbkjnesdphcaoflgrimqbkjnesdphcaoflgrimqbkjnesdphaaoflgrimqbkjsesdphndcfgjilsonrmkabqpedcfbjilsoermeabqpedcfgjilsonrmkabqpejcfgjilsonrmkabqpknogaemcjdfmbsrfqknogaelcjdimbsrfqknogaelcjdimbsrfqknogcelcjdilbsrf...

output:

tttttsrrrrrqqpooooonnmllllllllllllllkjjjjjjjjjjihhhhgffffffeeeeeeeeeeeeeeeedddddddddddddddddddddddddddddddcbbbbbbbbbbbbbbbbbba

result:

ok single line: 'tttttsrrrrrqqpooooonnmllllllll...dddddddddddcbbbbbbbbbbbbbbbbbba'

Test #94:

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

input:

1000
gbhemjclioqfhrkspaktgbnemicljoqfhrkspadtgbnemiclkoqfhrkspadtgbnemicljoqfhrkspadtqfppsgekjomhncgrladqfipjmekjomhncgrladqfipsbekjomhncgrladqfipsbekjomhncgrladsqbpfekhgrlcmobjnasqimqekhgrlcmoijnasqipfckhgrlcmobjnasqipfekhgrlkmobjnasfimckrlpbgjhoqengfimckrlpbgjhoqensfimcdqlpbgjhoqensfimckrlpbbjhoqe...

output:

ttttttsrrrrrrrrrrqppponnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnmlkkjihhhhhhhhgfffeddddddddddddddddcba

result:

ok single line: 'ttttttsrrrrrrrrrrqppponnnnnnnn...hhhhhhhgfffeddddddddddddddddcba'

Test #95:

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

input:

1000
kencnpiqfamhoccdbggtoersnciqfaghojcfbgltkeisnpiqfhmhojcdbgltkersjpiqfdmhorcdbgltmojbjofdiqragnockelhojbphfdhqrafnsckeomojjphhdiqragnsckeliojbphfoifrjgnsckeikoonjhfcmqridogipeksonjhfcoqhbaagipeksonmhfgmqrbdagipeksonjhrcmqrbbagipeadnmjcfigqrbhosopadnmjcfigqrbhsskpadnmjcfigqrbroskpadnmjckigqrbhock...

output:

tttttttsrrrrrrrrrrrrrrrqqpponnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnmllllllllllllllllllllkjihhgffeedcba

result:

ok single line: 'tttttttsrrrrrrrrrrrrrrrqqpponn...lllllllllllllllllkjihhgffeedcba'

Test #96:

score: -100
Time Limit Exceeded

input:

953
kfibakbhjjkhbadebgcaddfhkkbhigcbfbcikcgkedefgdhefaiaeagfeccacejadgjjfjheihgdfjikihigjcdbllllllllgkeaeikkfjabcigfcjgbghdgkjbbjhgafdddhaccdgjkdfafaakgjedeibbhekehhaciiiijfjceebhbdicfkfhcmmmmmmmmficcfckkjfibkeccejdcjkdbahdjkedjgeigjcijedkaffiiihabfbhjfaahabeghgaegbgakbdhkgeidfdbhghcnnnnnnnnkdaddfab...

output:


result: