QOJ.ac
QOJ
ID | 题目 | 提交者 | 结果 | 用时 | 内存 | 语言 | 文件大小 | 提交时间 | 测评时间 |
---|---|---|---|---|---|---|---|---|---|
#752981 | #9558. The Devil | ucup-team1004# | AC ✓ | 518ms | 20988kb | C++20 | 2.9kb | 2024-11-16 10:47:35 | 2024-11-16 10:47:36 |
Judging History
answer
#include<bits/stdc++.h>
#define Gc() getchar()
#define Me(x,y) memset(x,y,sizeof(x))
#define Mc(x,y) memcpy(x,y,sizeof(x))
#define d(x,y) ((m)*(x-1)+(y))
#define R(n) (rnd()%(n)+1)
#define Pc(x) putchar(x)
#define LB lower_bound
#define UB upper_bound
#define fi first
#define se second
#define eb emplace_back
#define all(x) x.begin(),x.end()
using namespace std;using ll=long long;using db=double;using lb=long db;using ui=unsigned;using ull=unsigned long long;using pii=pair<int,int>;
const int N=(1<<14)+5,M=N*128+5,K=1000+5,mod=1e9+7,Mod=mod-1;const db eps=1e-9;const int INF=1e9+1;mt19937 rnd(28382);
#define Tp template<typename T>
#define Ts template<typename T,typename... Ar>
namespace Debug{
Tp void _debug(char* f,T t){cerr<<f<<'='<<t<<endl;}
Ts void _debug(char* f,T x,Ar... y){while(*f!=',') cerr<<*f++;cerr<<'='<<x<<",";_debug(f+1,y...);}
#ifdef LOCAL
#define gdb(...) _debug((char*)#__VA_ARGS__,__VA_ARGS__)
#else
#define gdb(...) void()
#endif
}using namespace Debug;
int n,k;
int son[M][52],flag[M],cnt,fa[M];
char chr[M];
void clr(){
for(int i=1;i<=cnt;i++) Me(son[i],0),fa[i]=0,chr[i]=0;
cnt=1;
}
vector<int> S1[N],S2[N];
vector<int> S[N];
string w[N];
int id[N],vis[N],mch[N];
int dfs(int x){
if(vis[x]) return 0;
vis[x]=1;
for(int i:S[x]){
if(!mch[i]||dfs(mch[i])) return mch[i]=x,1;
}
return 0;
}
void Solve(){
ios::sync_with_stdio(false);cin.tie(0);cout.tie(0);
cin>>n;
string c;getline(cin,c);
auto trs1=[](char c){
if('a'<=c&&c<='z') return c-'a';
return 26+c-'A';
};
map<string,int> f;
for(int i=1;i<=n;i++){
string c;
getline(cin,c);
while(!c.empty()&&!isgraph(c.back())) c.pop_back();
vector<string> A;
for(int l=0,r;l<c.size();l=r+1){
for(r=l;r<c.size()&&c[r]!=' ';r++);
A.push_back(c.substr(l,r-l));
}
clr();
for(int j=0;j<=256;j++) S1[j].clear();S1[0].push_back(1);
for(string s:A){
for(int h=0;h<=256;h++) S2[h]=S1[h],S1[h].clear();
int cts=0;
for(int h=0;h<=256&&cts<n;h++){
for(int x=0;x<h&&cts<n;x++)if(h-x<=s.size()){
for(int &y:S2[x])if(cts<n){
int &v=son[y][trs1(s[h-x-1])];
if(!v) v=++cnt,fa[v]=y,chr[v]=s[h-x-1];
if(!flag[v]) flag[v]=1,S1[h].push_back(v),cts++;
y=v;
}
}
}
for(int h=0;h<=256;h++) for(int j:S1[h]) flag[j]=0;
}
for(int h=0;h<=256;h++) for(int j:S1[h]){
string c;
while(fa[j]){
c+=chr[j];
j=fa[j];
}
reverse(all(c));
if(!f.count(c)) f[c]=++k,w[k]=c;
S[f[c]].push_back(i);
}
}
iota(id+1,id+k+1,1);
sort(id+1,id+k+1,[](int x,int y){return w[x].size()<w[y].size();});
int cnt=0;
for(int i=1;i<=k;i++){
Me(vis,0);
cnt+=dfs(id[i]);
}
if(cnt^n){
puts("no solution");
}else{
for(int i=1;i<=n;i++) cout<<w[mch[i]]<<'\n',gdb(mch[i]);
}
}
int main(){
int t=1;
// scanf("%d",&t);
while(t--) Solve();
cerr<<clock()*1.0/CLOCKS_PER_SEC<<'\n';
}
这程序好像有点Bug,我给组数据试试?
詳細信息
Test #1:
score: 100
Accepted
time: 1ms
memory: 6464kb
input:
5 automated teller machine active teller machine active trouble maker always telling misinformation American Teller Machinery
output:
autm atem atma atm ATM
result:
ok len=18
Test #2:
score: 0
Accepted
time: 0ms
memory: 8172kb
input:
5 Forest Conservation Committee Forum Fuming Corruption Collusion Federation Fulsome Cash Concealment Foundation Funky Crony Capitalism Facilitator Funny Cocky Cocky Funny
output:
FoCCF FCoCF FCCFo FCCF FCCoF
result:
ok len=24
Test #3:
score: 0
Accepted
time: 1ms
memory: 6620kb
input:
3 A AA AA A A A A
output:
no solution
result:
ok len=-1
Test #4:
score: 0
Accepted
time: 3ms
memory: 8060kb
input:
2 QWERTYUIOPASDFGHJKLZXCVBNMqwertyuiopasdfghjklzxcvbnmertyuiop Q W E R T Y U I O P A S D F G H J K L Z X C V B N M q w e r t y u i o p a s d f g h j k l z x c v b n m j k l z x c v b n m
output:
Q QWERTYUIOPASDFGHJKLZXCVBNMqwertyuiopasdfghjklzxcvbnmjklzxcvbnm
result:
ok len=63
Test #5:
score: 0
Accepted
time: 0ms
memory: 6704kb
input:
10 aaa aaa aaa aaa aaa aaa aab aaa aaa aaa aaa aaa aaa aab aaa aaa aaa aaa aab aab aaa aaa aaa aaa a a a a a a ab ab a a a a a a ab ab b a a a a a a aw a a a a a az az a a a a az a a a a a
output:
aaaaaaaaa aabaaaaa aaaaaaa aaabaaaa aaaaaa aaaaaaaa aabaaaaaa awaaaaa aazaaaa azaaaaa
result:
ok len=76
Test #6:
score: 0
Accepted
time: 505ms
memory: 8304kb
input:
128 zzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz zzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz zzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz...
output:
zzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz zzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz...
result:
ok len=24512
Test #7:
score: 0
Accepted
time: 518ms
memory: 10456kb
input:
128 aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaae aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaar aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa...
output:
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb cccccccccccccccccccccccccccccccccccccccccc...
result:
ok len=16534
Test #8:
score: 0
Accepted
time: 111ms
memory: 7316kb
input:
128 zAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA zzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz zzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz...
output:
zAAAAAAAzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz zAAAAAAzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz zAAAAAzzzzzz...
result:
ok len=17624
Test #9:
score: 0
Accepted
time: 268ms
memory: 20988kb
input:
128 abbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a...
output:
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb cdcccccccccccccccccccccccccccccccccccccccc...
result:
ok len=16460
Test #10:
score: 0
Accepted
time: 313ms
memory: 14136kb
input:
128 aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa...
output:
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaabbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbcccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc cccccccccccccccccccccccccccccccccccccccccc...
result:
ok len=16384
Test #11:
score: 0
Accepted
time: 0ms
memory: 6936kb
input:
10 AoenrfWTxhAiSipaV cJGloMoCBombqBsVuorNWL gqrmsIZGthdBIvNPWjTGgssBfbctzPCvCmMJWN MDYvQBZCaCmwSFnvQOmolkTmwWgysKuVmByj EOwjzBEgECXizqAZukRFAxdvrRhsGcIzQsFUMcXw mVNxPkaPPKUZEpswrhOqJerzhvfVwcNoDceNZPaskxTEhlGCMIoSqvAg JCPAAkYZoGOxpFNCj tsNvJHyeVCZqOHKzVsLoMnprENEmGSSxFGDDOafIIMVAbUtUIkAqmnrXUnWWfkAl...
output:
AcgMEmJtQnptFcoksenMLQXoWgmMEMuxBJYTcICgaVNaTfoyuAvDOAnedNDDPPPwIGaDOnjIlUvbJTVVQFLk HvApbVGYRBPuNjNkipYlWgO ScgzHNitvtRoLuUisITjuWCLGelWKqYoIAnAmIWTLOeMVHndqytXTd UBSuhtoimhfhdKivdyCqJxSbtnocRCEKicArQJKnRagqrJfNHY WqlPqHsSnpHcIfqCalIrqubIpBXqTVRBOYYQqRCQqJzyHRbbSCLzxsXOzNxSxSXcPhfHkNKClKWBJbg iLqfr...
result:
ok len=660
Test #12:
score: 0
Accepted
time: 19ms
memory: 11760kb
input:
64 AQLPmEKRHtLKaVeVgUBkYfECFrvhbsXorapjINwkXhyCmkexRIVAZTsXaOihheHjstls AiIegrwbTMbBFdDQHGMgyOahunXRrySnKEmfKXQkpWdtNpGdgdBtPGfdcdnUvEqkfmvmSRzevtZkhPzjhDhTVLQCbaozNEXlqUgHeRshchY SFwbzOhRAEybYCGswuldoWkKloHghqiDybxtJPdzAWjmqxw mcRhokiMnxgAucSnasFcEXpZdEGEGzEGaEBAfGNEQAgQSTFKrMvxoUZTDKQMHksaciHoYXih...
output:
AASmGWIMEJjHHnPlYRcjfOMPuKTjbyRxHmnMcJSXFigHUqxClyINhlMPJgLAZRXFEOGWcCIQvqaYBIhOPkeUVWKHJYow CJenkhWcPeucbfOFBHxSdYqLgftApMsctvFlfKkZmavIfqWYNZpZKJKYPwMSuvaSubelMSQKFIymAZoMLIOqoHGlIbOAp CejoeafHpVdTXKhgDGCAFivwKoSTwwBUDBdXYMWNlUBUttHXemMOHwlBiaqRUwYTIPqJvpowUFTSkqyAywInGlWgMfYXuFrw DkivKkaYITyXOOVF...
result:
ok len=3658
Test #13:
score: 0
Accepted
time: 139ms
memory: 18124kb
input:
128 kfiaaudafulirmameczaaaaaaaaaaaaaaaaaaaaaaaaagaaaajaaaaaalaaqoaaa f i a a u d a f u l i r m a m e c z a a a a a a a a a a a a a a a a a a a a a a a a a g a a a a j a a a a a a l a a q o a a a aaaoqaalaaaaaajaaaagaaaaaaaaaaaaaaaaaaaaaaaaazcemamrilufaduaaifk a a o q a a l a a a a a a j a a a a g a ...
output:
kfiaaudafulirmameczaaaaaaaaaaaaaaaaaaaaaaaaagaaaajaaaaaalaaqoaaa aaaoqaalaaaaaajaaaagaaaaaaaaaaaaaaaaaaaaaaaaazcemamrilufaduaaifk aoajcnjaaicamaaaahyaaaaaaaaaaaaaaaaaaaaaaaaabaazasvaeaavcaaaajak kajaaaacvaaeavsazaabaaaaaaaaaaaaaaaaaaaaaaaaayhaaaamaciaajncjaoa akkggaaaaumaiwaqawgaaaaaaaaaaaaaaaaaaaaa...
result:
ok len=14640
Test #14:
score: 0
Accepted
time: 104ms
memory: 10448kb
input:
128 a aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa a aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa aaaaaaaaaaaaaaaZ a aaaaaaaaaaaaaaaZ aaaaaaaaaaaaab aaaaaaaaaaaaab aaaaaaaaaaaaaaaZ aaaaaaaaaaaaab a aaaaaaaaaaaaaz aaaaaaaaaaaaaaaZ aaaaaaaaaaaaab aaaaaaaaaaaaaz a aaaaaaaaaaaaab aaaaaaaaaaa...
output:
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa aaaaaaaaaaaaaaaaaaaaa...
result:
ok len=17957
Test #15:
score: 0
Accepted
time: 157ms
memory: 10320kb
input:
128 ZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZz Z ZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZb ZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZWZZZZZ ZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZbZZZZZ ZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZQQZZZZZ ZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZbZZZZZ ZZZZZ...
output:
ZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZzZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZ ZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZ ZZZ...
result:
ok len=20417
Test #16:
score: 0
Accepted
time: 161ms
memory: 8140kb
input:
128 ZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZWZZZZZ ZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZ ZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZb ZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZQQZZZZZ ZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZQQZZZZZ ZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZb ZZZZZZZZZ...
output:
ZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZzZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZ ZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZ...
result:
ok len=20417
Test #17:
score: 0
Accepted
time: 154ms
memory: 6880kb
input:
128 p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p ...
output:
pppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppp ppppppppppppppppppppppppppppppppppppppppppppp ppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppp ppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppp p...
result:
ok len=8256
Test #18:
score: 0
Accepted
time: 8ms
memory: 10140kb
input:
64 Hash Objects The following values are provided as constant attributes of the hash objects returned by the constructors hash digest size The size of the resulting hash in bytes hash block size The internal block size of the hash algorithm in bytes A hash object has the following attributes hash na...
output:
HO Tfvapacaothorbtc hds Tsotrhib hbs Tibsothaib Ahohtfa hn Tcnothalaasaaptntcahott CivTnahbpiCsiibuPwnfssmneosp Ahohtfm hud UthowtbloRcaetascwtcoatamuamubietmuab hd RtdotdpttumsfTiaboosdswmcbitwrft hhe LdetdiraasoodlcohdTmbutetvsieoonbe hc RaccothoTcbutectdodsacis Svld hsduT TsasapvldwlibutobosAstdm...
result:
ok len=968
Test #19:
score: 0
Accepted
time: 7ms
memory: 7480kb
input:
62 Invocation Manage access Packages Issues Invocations Solution files Stresses Tests Validator Checker Files Statement General info View Problems Contest Back to invocations Rejudge Set solutions tags n cpp n break cpp n log cpp n log removeset cpp n noclear cpp n spfa cpp n spfa py py n spfa pypy ...
output:
I MaPIISfSTVCFSGiVPC Bti Re Sst ncnbcnlcnlrcnncnscnsppnsppnsvcncnsc OOOOOOOOOOO OOOOOOOOWOO OOOOOOTOOTT OOOOOOTOOOO OOOOOOTOWTT OOOOOOTOWOO pt mmMmMmMmMmMmMmMmMmMmMmM Cwasstspawmtmahwlbc IsctehoTosgTagOidTtccihwoc Ctol nmvhmvh cbn vn vp nmivhmtavdvnhmavoalotfti nmvhmtavdvnhmavoalotfti Ffhmttiatwhtsf...
result:
ok len=436
Test #20:
score: 0
Accepted
time: 0ms
memory: 8988kb
input:
64 Resource Files New File Add Files Name Length Modified Actions Delete Download Edit View Advanced gen atm cpp Rename kB Delete Download Edit View olymp sty problem tex statements ftl testlib h Auto update You can place here h files or java files These files will be copied to compilation directory...
output:
RF NFAF NLM Ac DDEV A gac R kDDEV os pt sf th Au YcphhfojfTfwbctcddtcpoesf SF NLLM DDEVL vcv ccc gabpg gapg gaaapg ganpg gdpg glpg grcg gspg gzpg gdp grp UffgvaciynIisrtutii Dnushusti Eog Ycrmagh At Nf Uatuafywitpr Vc hpccpXIfa Afsgabp Afsgabpd ADfsgap Afsgapde Afsgap Afsgapd ADfsgdp ADfsgdpd Afsgdp...
result:
ok len=325
Test #21:
score: 0
Accepted
time: 13ms
memory: 9072kb
input:
63 Major Arcana Article Talk Read Edit View history Tools From Wikipedia the free encyclopedia A fan with cards an index and their box The Major Arcana cards redesigned by Roberto Viesi The Major Arcana are the named or numbered cards in a cartomantic tarot pack the name being originally given by oc...
output:
MA A Ta R Ed Vh T FWtfe Afwcaiatb TMAcrbRV TMAatnonciactptnbogbotttcoantpufpcgTausciascptnfticpptintucitFTninubtcgp PtttctcwsufpgatFatwspoascpufgagTmhbaacsattbbtttohnmomiWddfcgtcgtcsaptaadftrctscwakboatMA TtMaMAauitoadaotdaipETaowJBPwutnPC SMDwttFatcohsaoemmoieiitIcottcwiwiTosbteittcwACdGaScaFpeoTiV...
result:
ok len=2094
Test #22:
score: 0
Accepted
time: 4ms
memory: 9068kb
input:
54 include bits stdc h include testlib h using namespace std int n vector vector string a string strip const string s auto l s begin while l s end l l auto r s end while r l prev r r return s substr l s begin r l inline int readAndCheckAnswer InStream in string first strip in readLine A Za z first l...
output:
ibsh ith uns in vvsa sscss alsb wlsell arse wrlprr rsslsbrl iirIi sfsirAZzfl ifns r ieffl vsaf fiiini apbirAZzp it ssa sip fawai sis fajp fikjkaiskwsk iaijkwk sijk e b pms iepcaisaiinaaftsics ieacaiambu aiai tais rt imiaca raa nirir ssir vsw st wst wpbt apbmw ijra ipro ijp qwJhtabphn qfPhtabjhn ipj ...
result:
ok len=270
Test #23:
score: 0
Accepted
time: 6ms
memory: 7620kb
input:
64 present me some phrases that shares the same initialism as much as possible as long as possible ChatGPT Creating long phrases that share the same initialism can be quite the puzzle Heres a list featuring the initialism S T A R T to give you an idea of how diverse the phrases can be Seek Treasure ...
output:
pmsptstsiamapalap C ClptstsicbqtpHalftiSTARTtgyaiohdtpcb STrART STARTi STAReT STARiT ShTART STARTr STAzRT STeART StTART STARaT Tpsdtfthafstasase ctgm HamputiSTART STAcRT SiTART SToART SeTART STAccRT STARTo StToART SyTART STaART SThART Epbotcosswiapjabsoace STiART STAdRT SpTART SaTART STAtRT START ST...
result:
ok len=522
Test #24:
score: 0
Accepted
time: 39ms
memory: 12160kb
input:
128 You are given a string consisting of characters and or You have to paint every character of this string into one of two colors red or blue If you paint the i th character red you get r i coins If you paint it blue you get b i coins After coloring the string you remove every blue character from i...
output:
Yagascocao Yhtpecotsiootcrob Iyptitcrygric Iypibygbic Actsyrebcfiactnoiitrsi e tnopocsttlcitpiatrcitpi Feiyhtpc Witmnocyce Lscaaaonnnifitfch aloftnxx xkaita ceotadbamki aiailkfeiin Yagnxak Ytitctnofaoln Stacblpim MaBapacg Echtpaavaadv Acsbactitaosisgttdot Mhnctitothaavomaiaadvomai Bhmctjtothaavombja...
result:
ok len=2069
Test #25:
score: 0
Accepted
time: 38ms
memory: 12312kb
input:
128 An anonymous informant has told you that the array b was obtained as follows initially there existed an array a a ldots a n after which the following two component operation was performed k times A fixed point dagger x of the array a was chosen Then the array a was cyclically shifted to the left...
output:
Aaihtyttabwoafiteaaaalanawtftcowpkt Afpdxotaawc Ttaawcsttldext Aaroksotabblbnwo Ywtcitwotaicbtoitagtbf dAnxicafpotaaalanilxlnaaxx dAclsotaaalanitaalana Yagartwtravicoasv Evhanvist Taaqqott Tftaacvwtnstvvwsitcsott Tnvotnvwb Tstaxttnvoavitsovv Aaqotnvoaotvitft TbSilawatnB OtcotyBwane Feeidaiikwianni S...
result:
ok len=1849
Test #26:
score: 0
Accepted
time: 39ms
memory: 12960kb
input:
128 It turns out that Doremy has a special power She can choose k days and during these days it will not rain Doremy wants to calculate the maximum number of dry cities after using the special power The only differences between the two versions of this problem are the constraint on k the time limit ...
output:
ItotDhasp Scckdadtdiwnr Dwtctmnodcautsp Todbttvotpatcokttlatml Ycmhoiavotpas Dliarcconcnftn Twbptdoritnmd Ititdiwritcitiliri Acicdiiwnritcitnmd Scckditevkadtdiwnr Dliacconcnftnwaiplititc Icbmaaugwnn Itaneitg NDwtmtgc Tdtscaaebiaji skiSakgicjcc wSitsoatntacitsccoeiojaciagc CDmtgc Tnijaitscciteapfitj ...
result:
ok len=2054
Test #27:
score: 0
Accepted
time: 9ms
memory: 7356kb
input:
128 Ab aba abac abacaabaca synonyms abaciscus abacist abackaback synonyms Abaco abacterial abactinal abaculus abacusabacus synonyms Abadan AbaddonAbaddon synonyms A bad penny always turns up ab aeterno abaftabaft synonyms Abagtha Abailard Abakan abaloneabalone synonyms abamp abampere abandonabandon ...
output:
Ab ab aba abas abacis abaci asyno Abac abact abac abacu abacs Abad Abs Abpatu aa abafs Aba Abai Abak abals abamp abam abansy abands aband Ahayweh abans aban abapi abap AIs b abasy absyn as absy abass abasi abats asyn asy abat aj abato abatt Abat abatts abax abay abb A abba ad Abbad Abbai Abba AbI Ab...
result:
ok len=504
Test #28:
score: 0
Accepted
time: 10ms
memory: 7180kb
input:
105 abele abelia Abelian Abelian group Abe Lincoln in Illinois Abel meholah abelmosk Abelson Abenaki abendabend synonyms Abeokuta Abercrombie Aberdare Aberdeen Aberdeen Angus Aberdeen Proving Ground Aberdeenshire Aberdeen terrier aberdevine Aberdonian Aberfan Abernathy abernethy aberrantaberrant syn...
output:
abe abeli Abel Ag ALiI Am abel Abels Aben as Abeo Aberc Abe Aberd AA APG Ab At aber Aber Aberf Abern abern asyn abers Abery aes abess abes abet abets ae asy abeys abf ABFM AB abh AP abho absy abhsy abhos abhs A Abia Abib abid abids abbs abs Abid Abie abien b abie aa abigs Abih Abil abils Abim Abi Ab...
result:
ok len=410
Test #29:
score: 0
Accepted
time: 11ms
memory: 7412kb
input:
128 Saar Saarbrcken SAARC Saaremaa Saarinen Saarland SaaS Saavedra Lamas Sab Saba Sabadell sabadilla Sabaean Sabah sabalo Sabaoth Sabata Sabatier Sabatini sabaton Sabattier effect sabayon Sabbat Sabbatarian SabbathSabbath synonyms Sabbath school Sabbatical sabbatical yearsabbatical year synonyms Sab...
output:
Saar Saa SAA Saare Saari Saarl SaaS SLa Sab Sa Sabad saba Sabae Sabah sabal Sabao Sabata Saba Sabat sabat Se sab S Sabbat Ss Ssc Sabba syys Sabb SA Sabe Sabel sabes sabe srrsy ssa st satt sabi Sabina Sabin SL Sabi Svvs Sabir sabk sabls san sabl SIp sabo sabs ssyn sasy sabr sabsy sr sabre stt Sabr SA...
result:
ok len=555
Test #30:
score: 0
Accepted
time: 11ms
memory: 7480kb
input:
128 safari suit Safavid safesafe synonyms safe and soundsafe and sound synonyms safe area safe as houses safe blower safe breaker safe conductsafe conduct synonyms safecrackersafecracker synonyms safe deposit safe deposit boxsafe deposit box synonyms safeguardsafeguard synonyms safe harborsafe harbo...
output:
ssu Saf ssy sasass saa saah sbl sab sccs sasyn sde sadbdbs ssyn shhsy shhs safes safe safsy sp sse sspa ssur safs sbbs sac sca sch sci sccus sd sdbdbs sfa sfi sfu sf sggs sh sints siis SI slls sl slo sm smms snns spps srrs ssq sat svvs sw s saff so saffs Safi SR SA saf SAD safr saft sagss sasy sagsy...
result:
ok len=443
Test #31:
score: 0
Accepted
time: 10ms
memory: 9516kb
input:
115 sage cock sage Derby sage green sage grouse sage hen sagelysagely synonyms sagenite sage sparrow sage thrasher saggar saggersagger synonyms sagging moment saggysaggy synonyms Saghalien Sag Harbor Saginaw Saginaw Bay Sagitta sagittalsagittal synonyms sagittal suture Sagittarian SagittariusSagitta...
output:
sc sD sgr sgro sh ssyno sag ssp st sagg ssy sm saggs Sagh SH S SaB Sagi sas ssu Sag Sas sagi sags sago sg sap sr Sagu sagu Sague SeH Sagun sw Sa Ss Saha Sah Sahe St sah SAk SAH saic saids Said saig Saig ST ss sai sailb ssyn scttw saisy saile sailf sais sbbs sl ssh si sailm sails sha sa ssc ssui so s...
result:
ok len=379
Test #32:
score: 0
Accepted
time: 34ms
memory: 11344kb
input:
128 AAAzzzzzAzzzAzzAzAzzAzzAAzzzzAzAzzAAAAzzAAzAAzAAAAzAzzzzzAAAAzAAAzzzAzzAAzAAzzAAAAAzzzzzzAzzAAzzzzzAAAAzzzAzAAzzzAAzzzAAAAzAAzzA AzAAzAzAAzAAzzzzAAzzzAzzzAzzAAAzzzAAAzzzzAzAAzzzAzAzAzAzzzzAAAzAzzzAAzzzzzzzzzAAzzzzzzAAAzzzzAzzAzAzAAzAzzzzzAzAzzAzzAzzAAzzAAzA AAzAzzzzAzAAAzAAzAAzAzAzAAzAAzzAzzzAAz...
output:
AAAzzzz AzAAzA AAzAzzz zA AAzAA zAAzAAA zAAzz AA zAAAzA zz zAAzAA zAAAAzz AAzzAz A zzA zzAzzAz zAzzAA zzz zAz z AAzzzAz zzAAzz AAz AAzAAzz AzAAAz AzAzAAz zzzz zAzzzA zAzzA AAzzzA zAAAzz Azzz zAzzAz zAA zAzz AzzzAA zzzAAz zzAzAz zAzA AzzzAz Azzzz AAAz zzzzzzA zAzzz zzAzz zAzAAz zAAzzA zAzAA AAzA AzA ...
result:
ok len=673
Test #33:
score: 0
Accepted
time: 33ms
memory: 12852kb
input:
128 zAzzAAAAAzzAAAzAAAzAzzzAAzzzAzzzAzAzzAAzzAzAAzAzAzAAAAAzzzzzAAAAzzzzzAAAAzzzzzAAzzzAzAzAzzzAAAzAAAAzzzzAzAzzzzAzAzAAAzAzzzzAzAAA zzAzzzAAzzAAAzAAAzzAzAAzAAzzzAAAAzzzzAzzzAzAzzzAAAAAAAzzAzzzAzzAAzzAAAAAzAzzzzzAzAAAAAzzAAzzAzAAzzAAAzAzzAzAAAAAAzAzAzzzAAAzAzzA AzzAAAAzzAAzzAAzzAAAAzAzzzzzAAAzzAzzzA...
output:
zAzzA z AzzAAAA AAAAzA zAAAzzA zAAAA AAA zAAAAz Az zAzAA AzAzA AzAzAz zz zAzzAAz AAzz zzzA AzzzzzA AAzAAA AzAz AAAAAAz zAAAAzA AzzzzA zAzA zA zAzzAA zzz AAAAzzA zzAzAz zzzAzA zzAzAA zAzAz zAAz A Azz zAAA zAzz AAz zAzzAz AzA zAz AAzA zzAzA zAA AAzAAz zzAA AAzzA AAzAA AzAAAz AAzzzA zzAAAA zzA zzAAzAA ...
result:
ok len=667
Test #34:
score: 0
Accepted
time: 109ms
memory: 10300kb
input:
128 riJvmelARapZOVXwMfUdCzkwcdcFjGKiqKQwFwiXFPFIjlUnHZFetAENZXLpvEWaOZRVAeFBjLaCKvnszYuPa riJvmelARapZOVXwMfUdCzkwcdcFjGKiqKQwFwiXFPFIjlUnHZFetAENZXLpvEWaOZRVAeFBjLaCKvnszYuPa riJvmelARapZOVXwMfUdCzkwcdcFjGKiqKQwFwiXFPFIjlUnHZFetAENZXLpvEWaOZRVAeFBjLaCKvnszYuPa riJvmelARapZOVXwMfUdCzkwcdcFjGKiqKQwFw...
output:
rrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrr rrirrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrr rrrrrrrrrrrrrrrrrrrrrrrirrrrrrrrrrrrrrrrr...
result:
ok len=16511
Test #35:
score: 0
Accepted
time: 11ms
memory: 7196kb
input:
64 g MinGW W x ucrt posix seh built by Brecht Sanders Copyright C Free Software Foundation Inc This is free software see the source for copying conditions There is NO warranty not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE Usage g options file Options pass exit codes Exit with high...
output:
gMWxupsbbBS CCFSFI TifsstsfccTiN wnefMoFFAPP Ugof O pecEwhecfap hDti thDtsclo hcoptwjsu Dstoclo Uvhtdcloosp vDcvi dDaotbiss dDtvotc dDtcstp psdDtditcssp plfnDtnotcscl pfnlDtfptll ppnpDtfptccp pmDttsnGtua acitlp pmdDtrdfvol pmlDtmbcloa mlsd pmodDtrptOl psDttld pshsDtssutfh WoPcsootta WoPcsoottp WoPcs...
result:
ok len=539
Test #36:
score: 0
Accepted
time: 513ms
memory: 8748kb
input:
128 aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaae aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaar aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa...
output:
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb cccccccccccccccccccccccccccccccccc...
result:
ok len=16636
Test #37:
score: 0
Accepted
time: 0ms
memory: 8264kb
input:
1 z
output:
z
result:
ok len=1
Test #38:
score: 0
Accepted
time: 70ms
memory: 16664kb
input:
128 AQcNVBPpxahJeqoyDYRQdSHFxfNXlLotEijTgUySPIUHysxlfdPCpRvbSJkQBOhTJgJVDRdjAIFODJTSLJZmzUJgAXsJEFJDkGhfGCMAcpZVd iMGDnPQZefidJgKERflhOdNxntuIcaEMjnFgRSbqqopCDKnPsDAlxCsZvbvIObJqlTcofHD nnJCmTgqyFYNjQTBgNSSbVWrNxahwleYXVVGizfdorZdeBDrdXEJnnphWIAiWmzqqdWCDRSoNIBHHZr qCRWhfJScgWlkkfzjPIhZXojqEWYOOahsF...
output:
AinqKjKOTbajcXnZARIjQnPJOOFrlfWldfUfXsj B BAkzSIOKVkoYNbLIlfatOiDcpFbymXoAcXQDpgsweYhmXkEnxDnIOMYYBslzJBCBUIjHzHPYduUbFnPjjnPq BXvBcFXrPxdzOGQdjoDuWBfZLfzjPsfBfvVcRTCeklejNSPxVcAHCbjtOEuhObAZfNQhgNdh BsvmwwOSwXfJlxLINsDIfMOPbLtPvKBPzimHoJiaycCkSTpDKFGjIfipMN BaRwYGBLxhsArZHQQYsCWoJVnYnGdPDOgZLbgqKCr...
result:
ok len=8082
Test #39:
score: 0
Accepted
time: 135ms
memory: 16916kb
input:
128 EsRPZZEOwdRaYIWsPeQRAzwvIUwETAYeTUQPzvOIzWwTvwsREYwZWwaPUsRRQdIWsQYUvZaaRAYYdTaRUAYZOeIEOTvAwAAPwOAORTAQUQaYUdaPUwvQAAPEPsReResP EsRPZZEOwdRaYIWsPeQRAzwvIUwETAYeTUQPzvOIzWwTvwsREYwZWwaPUsRRQdIWsQYUvZaaRAYYdTaRUAYZOeIEOTvAwAAPwOAORTAQUQaYUdaPUwvQAAPEPsReResP EsRPZZEOwdRaYIWsPeQRAzwvIUwETAYeTUQPzv...
output:
EEEQEEQEQEEQQQEQEQQQQQEEQEEQEEEQEQQQQEQQQEEQQEEEEQQQQEQQEEQQEQEQQQQQEEQQEQEEQEEEQQQQQQQEQQQQQEQQQQEEQQEEQEEQQQEEQEEQEEQEQQQEEEEE EQEQQEQQQQQEQEQEEQEEEEQQEQEQEEEQEEEQQQEEQEQEQQEQQQQEEEQQEEQEEQEQQQEQEQEEQQQEQEQEQQEQQQQEEEQQQEQQQEQQEEQEEEEQEQEEQEEEQEQQEQQQEQEQ QEEQQEQEQQEEQEEQQQEQEEQEEQEQEEEQQEQEEQQEEQ...
result:
ok len=16384
Test #40:
score: 0
Accepted
time: 106ms
memory: 11812kb
input:
128 vAawasZQUZeQEvZYZZPsWYzEUPvYETPEAeewWIzszEAvsPeEdUTUUweUzOseEddUYszPWWOzTZAvREzQAYwvdsQvsEPdvsYaOZARdwQAWwTPPIvZsRQwszdQIaOIOIQZ vAawasZQUZeQEvZYZZPsWYzEUPvYETPEAeewWIzszEAvsPeEdUTUUweUzOseEddUYszPWWOzTZAvREzQAYwvdsQvsEPdvsYaOZARdwQAWwTPPIzIesOOQQaaYaOUAwse vAawasZQUZeQEvZYZZPsWYzEUPvYETPEAeewWI...
output:
vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvAvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvAvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv...
result:
ok len=16511
Test #41:
score: 0
Accepted
time: 10ms
memory: 9072kb
input:
128 A AB A B ABA A BA AB A A B A ABAC A BAC AB AC A B AC ABA C A BA C AB A C A B A C ABACA A BACA AB ACA A B ACA ABA CA A BA CA AB A CA A B A CA ABAC A A BAC A AB AC A A B AC A ABA C A A BA C A AB A C A A B A C A ABACAA A BACAA AB ACAA A B ACAA ABA CAA A BA CAA AB A CAA A B A CAA ABAC AA A BAC AA AB...
output:
no solution
result:
ok len=-1
Test #42:
score: 0
Accepted
time: 7ms
memory: 9596kb
input:
64 r rw r w rwe r we rw e r w e rwer r wer rw er r w er rwe r r we r rw e r r w e r rwerr r werr rw err r w err rwe rr r we rr rw e rr r w e rr rwer r r wer r rw er r r w er r rwe r r r we r r rw e r r r w e r r rwerrt r werrt rw errt r w errt rwe rrt r we rrt rw e rrt r w e rrt rwer rt r wer rt rw ...
output:
no solution
result:
ok len=-1
Test #43:
score: 0
Accepted
time: 7ms
memory: 8268kb
input:
64 A AA A A AAA A AA AA A A A A AAAB A AAB AA AB A A AB AAA B A AA B AA A B A A A B AAABB A AABB AA ABB A A ABB AAA BB A AA BB AA A BB A A A BB AAAB B A AAB B AA AB B A A AB B AAA B B A AA B B AA A B B A A A B B AAABBB A AABBB AA ABBB A A ABBB AAA BBB A AA BBB AA A BBB A A A BBB AAAB BB A AAB BB AA ...
output:
no solution
result:
ok len=-1
Test #44:
score: 0
Accepted
time: 2ms
memory: 6772kb
input:
4 z zx z x QWERTYUIOPASDFGHJKLZXCVBNMqwertyuiopasdfghjklzxcvbnmQWERTYUIOPASDFGHJKLZXCVBNMqwertyuiopasdfghjklzxcvbnmQWERTYUIOPASDFGHJKLZXCVB WERTYUIOPASDFGHJKLZXCVBNMqwertyuiopasdfghjklzxcvbnmQWERTYUIOPASDFGHJKLZXCVBNMqwertyuiopasdfghjklzxcvbnmQWERTYUIOPASDFGHJKLZXCVBN ERTYUIOPASDFGHJKLZXCVBNMqwertyu...
output:
no solution
result:
ok len=-1
Test #45:
score: 0
Accepted
time: 2ms
memory: 8440kb
input:
2 z QWERTYUIOPASDFGHJKLZXCVBNMqwertyuiopasdfghjklzxcvbnmQWERTYUIOPASDFGHJKLZXCVBNMqwertyuiopasdfghjklzxcvbnmQWERTYUIOPASDFGHJKLZXCVB WERTYUIOPASDFGHJKLZXCVBNMqwertyuiopasdfghjklzxcvbnmQWERTYUIOPASDFGHJKLZXCVBNMqwertyuiopasdfghjklzxcvbnmQWERTYUIOPASDFGHJKLZXCVBN ERTYUIOPASDFGHJKLZXCVBNMqwertyuiopasdf...
output:
z QWERTYUIOPASDFGHJKLZXCVBNMqwertyuiopasdfghjklzxcvbnmQWERTYUIOPASDFGHJKLZXCVBNMqwertyuiopasdfghjklzxcvbnmQWERTYUIOPASDFGHJKLZXCVB
result:
ok len=129
Test #46:
score: 0
Accepted
time: 8ms
memory: 10520kb
input:
121 ol olo o lo ol o olol o lol ol ol o l ol olo l o lo l ol o l ololA o lolA ol olA o l olA olo lA o lo lA ol o lA o l o lA olol A o lol A ol ol A o l ol A olo l A o lo l A ol o l A ololAN o lolAN ol olAN o l olAN olo lAN o lo lAN ol o lAN o l o lAN olol AN o lol AN ol ol AN o l ol AN olo l AN o lo...
output:
no solution
result:
ok len=-1
Test #47:
score: 0
Accepted
time: 3ms
memory: 7520kb
input:
27 ee eee e ee ee e eeee e eee ee ee e e ee eee e e ee e ee e e eeeee e eeee ee eee e e eee eee ee e ee ee ee e ee e e e ee eeee e e eee e ee ee e e e ee e eee e e e ee e e ee e e e QWERTYUIOPASDFGHJKLZXCVBNMqwertyuiopasdfghjklzxcvbnmQWERTYUIOPASDFGHJKLZXCVBNMqwertyuiopasdfghjklzxcvbnmQWERTYUIOPASDF...
output:
no solution
result:
ok len=-1
Test #48:
score: 0
Accepted
time: 2ms
memory: 8264kb
input:
5 we wer w er we r QWERTYUIOPASDFGHJKLZXCVBNMqwertyuiopasdfghjklzxcvbnmQWERTYUIOPASDFGHJKLZXCVBNMqwertyuiopasdfghjklzxcvbnmQWERTYUIOPASDFGHJKLZXCVB WERTYUIOPASDFGHJKLZXCVBNMqwertyuiopasdfghjklzxcvbnmQWERTYUIOPASDFGHJKLZXCVBNMqwertyuiopasdfghjklzxcvbnmQWERTYUIOPASDFGHJKLZXCVBN ERTYUIOPASDFGHJKLZXCVBN...
output:
w wer we wr QWERTYUIOPASDFGHJKLZXCVBNMqwertyuiopasdfghjklzxcvbnmQWERTYUIOPASDFGHJKLZXCVBNMqwertyuiopasdfghjklzxcvbnmQWERTYUIOPASDFGHJKLZXCVB
result:
ok len=136
Test #49:
score: 0
Accepted
time: 2ms
memory: 8284kb
input:
5 dz dzd d zd dz d QWERTYUIOPASDFGHJKLZXCVBNMqwertyuiopasdfghjklzxcvbnmQWERTYUIOPASDFGHJKLZXCVBNMqwertyuiopasdfghjklzxcvbnmQWERTYUIOPASDFGHJKLZXCVB WERTYUIOPASDFGHJKLZXCVBNMqwertyuiopasdfghjklzxcvbnmQWERTYUIOPASDFGHJKLZXCVBNMqwertyuiopasdfghjklzxcvbnmQWERTYUIOPASDFGHJKLZXCVBN ERTYUIOPASDFGHJKLZXCVBN...
output:
d dzd dz dd QWERTYUIOPASDFGHJKLZXCVBNMqwertyuiopasdfghjklzxcvbnmQWERTYUIOPASDFGHJKLZXCVBNMqwertyuiopasdfghjklzxcvbnmQWERTYUIOPASDFGHJKLZXCVB
result:
ok len=136
Extra Test:
score: 0
Extra Test Passed