QOJ.ac
QOJ
ID | 题目 | 提交者 | 结果 | 用时 | 内存 | 语言 | 文件大小 | 提交时间 | 测评时间 |
---|---|---|---|---|---|---|---|---|---|
#763327 | #9558. The Devil | as_lyr | WA | 2686ms | 136636kb | C++14 | 2.0kb | 2024-11-19 19:36:08 | 2024-11-19 19:36:15 |
Judging History
answer
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef __int128 vl;
const int N=130;
const ll base=233327,inbase=960030343680757052,mod=(ll)1e18+3;
int n,m=128;
ll pw[N];
vector <int> e[N*N<<1];
char s[N];
ll hsh[N];
set <ll> st[N][N<<1];
map <ll,char> lst;
map <ll,int> mp;
ll to[N*N<<1];
int len[N*N<<1];
int nw;
int at[N*N<<1];
bool vis[N*N<<1];
bool dfs(int x){
int mn=m*m;
for(int y:e[x]){
if(vis[y])
continue;
if(at[y]==0)
mn=min(mn,len[y]);
}
for(int y:e[x]){
if(vis[y])
continue;
vis[y]=1;
if(len[y]<mn&&dfs(at[y])){
at[x]=y;
at[y]=x;
return 1;
}
if(at[y]==0){
at[x]=y;
at[y]=x;
return 1;
}
}
return 0;
}
int main(){
scanf("%d",&n);
nw=n;
pw[0]=1;
for(int i=1;i<=m;i++)
pw[i]=(vl)pw[i-1]*base%mod;
for(int T=1;T<=n;T++){
for(int i=0;i<=m;i++)
for(int j=0;j<=2*m;j++)
st[i][j].clear();
st[0][0].insert(0);
int cnt=0;
do{
cnt++;
scanf("%s",s+1);
int len=strlen(s+1);
for(int i=1;i<=len;i++)
hsh[i]=((vl)hsh[i-1]*base+s[i])%mod;
int ct=0;
for(int i=1;ct<m&&i<=2*m;i++){
for(int j=1;ct<m&&j<=len&&j<=i;j++){
for(ll x:st[cnt-1][i-j]){
ll res=((vl)x*pw[j]+hsh[j])%mod;
if(lst.find(res)==lst.end())
lst[res]=s[j];
if(st[cnt][i].find(res)==st[cnt][i].end()){
st[cnt][i].insert(res);
if(++ct==m)
break;
}
}
}
}
}while(getchar()==' ');
for(int i=0;i<=2*m;i++){
for(ll x:st[cnt][i]){
if(mp.find(x)==mp.end()){
mp[x]=++nw;
to[nw]=x;
len[nw]=i;
}
e[T].push_back(mp[x]);
}
}
}
for(int x=1;x<=n;x++){
for(int i=1;i<=nw;i++)
vis[i]=0;
if(dfs(x)==0){
puts("no solution");
return 0;
}
}
for(int i=1;i<=n;i++){
ll x=to[at[i]];
string pr;
while(x){
pr+=lst[x];
x-=lst[x];
if(x<0)
x+=mod;
x=(vl)x*inbase%mod;
}
reverse(pr.begin(),pr.end());
cout<<pr<<'\n';
}
return 0;
}
详细
Test #1:
score: 100
Accepted
time: 2ms
memory: 6180kb
input:
5 automated teller machine active teller machine active trouble maker always telling misinformation American Teller Machinery
output:
atem actm atma atm ATM
result:
ok len=18
Test #2:
score: 0
Accepted
time: 0ms
memory: 6236kb
input:
5 Forest Conservation Committee Forum Fuming Corruption Collusion Federation Fulsome Cash Concealment Foundation Funky Crony Capitalism Facilitator Funny Cocky Cocky Funny
output:
FCCFo FCCFe FCCoF FCCFa FCCF
result:
ok len=24
Test #3:
score: 0
Accepted
time: 2ms
memory: 6096kb
input:
3 A AA AA A A A A
output:
no solution
result:
ok len=-1
Test #4:
score: 0
Accepted
time: 1ms
memory: 6160kb
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: 2ms
memory: 6576kb
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:
aaaaaaa aabaaaaa aaabaaaaa aaabaaaa aaaaaa aaaaaaaa aabaaaaaa awaaaaa aazaaaa azaaaaa
result:
ok len=76
Test #6:
score: 0
Accepted
time: 1936ms
memory: 7184kb
input:
128 zzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz zzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz zzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz...
output:
zzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz zzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz...
result:
ok len=24512
Test #7:
score: 0
Accepted
time: 2686ms
memory: 9548kb
input:
128 aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaae aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaar aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa...
output:
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb cccccccccccccccccccccccccccccccccccccccccc...
result:
ok len=16534
Test #8:
score: 0
Accepted
time: 918ms
memory: 7040kb
input:
128 zAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA zzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz zzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz...
output:
zAAAAAAAAAzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz zAAAAAAAAAAAAAzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz zAAAAAAAAAAzz...
result:
ok len=17624
Test #9:
score: 0
Accepted
time: 1968ms
memory: 136636kb
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:
abaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa bcbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb cdcccccccccccccccccccccccccccccccccccccc...
result:
ok len=16460
Test #10:
score: 0
Accepted
time: 2214ms
memory: 18028kb
input:
128 aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa...
output:
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaabbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbcccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc cccccccccccccccccccccccccccccccccccccccccc...
result:
ok len=16384
Test #11:
score: 0
Accepted
time: 45ms
memory: 12376kb
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: 329ms
memory: 36500kb
input:
64 AQLPmEKRHtLKaVeVgUBkYfECFrvhbsXorapjINwkXhyCmkexRIVAZTsXaOihheHjstls AiIegrwbTMbBFdDQHGMgyOahunXRrySnKEmfKXQkpWdtNpGdgdBtPGfdcdnUvEqkfmvmSRzevtZkhPzjhDhTVLQCbaozNEXlqUgHeRshchY SFwbzOhRAEybYCGswuldoWkKloHghqiDybxtJPdzAWjmqxw mcRhokiMnxgAucSnasFcEXpZdEGEGzEGaEBAfGNEQAgQSTFKrMvxoUZTDKQMHksaciHoYXih...
output:
AASmGWIMEJjHHnPlYRcjfOMPuKTjbyRxHmnMcJSXFigHUqxClyINhlMPJgLAZRXFEOGWcCIQvqaYBIhOPkeUVWKHJYow CJenkhWcPeucbfOFBHxSdYqLgftApMsctvFlfKkZmavIfqWYNZpZKJKYPwMSuvaSubelMSQKFIymAZoMLIOqoHGlIbOAp CejoeafHpVdTXKhgDGCAFivwKoSTwwBUDBdXYMWNlUBUttHXemMOHwlBiaqRUwYTIPqJvpowUFTSkqyAywInGlWgMfYXuFrw DkivKkaYITyXOOVF...
result:
ok len=3658
Test #13:
score: 0
Accepted
time: 1768ms
memory: 115940kb
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: 635ms
memory: 8660kb
input:
128 a aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa a aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa aaaaaaaaaaaaaaaZ a aaaaaaaaaaaaaaaZ aaaaaaaaaaaaab aaaaaaaaaaaaab aaaaaaaaaaaaaaaZ aaaaaaaaaaaaab a aaaaaaaaaaaaaz aaaaaaaaaaaaaaaZ aaaaaaaaaaaaab aaaaaaaaaaaaaz a aaaaaaaaaaaaab aaaaaaaaaaa...
output:
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaabaaaaaaaaaaaaaaaaa aaaaaaaaaaaaaaaa...
result:
ok len=17957
Test #15:
score: 0
Accepted
time: 778ms
memory: 8512kb
input:
128 ZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZz Z ZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZb ZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZWZZZZZ ZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZbZZZZZ ZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZQQZZZZZ ZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZbZZZZZ ZZZZZ...
output:
ZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZ ZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZzZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZ...
result:
ok len=20417
Test #16:
score: 0
Accepted
time: 782ms
memory: 8256kb
input:
128 ZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZWZZZZZ ZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZ ZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZb ZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZQQZZZZZ ZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZQQZZZZZ ZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZb ZZZZZZZZZ...
output:
ZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZ ZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZzZZZZZZZZZZZZZZZZZZZZZZZZZ...
result:
ok len=20417
Test #17:
score: 0
Accepted
time: 15ms
memory: 6136kb
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: 58ms
memory: 13420kb
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 hah LdetdiraasoodlcohdTmbutetvsieoonbe hc RaccothoTcbutectdodsacis Svld hsduT TsasapvldwlibutobosAstdm...
result:
ok len=968
Test #19:
score: 0
Accepted
time: 18ms
memory: 8656kb
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 nmvhimtavdvnhmavoalotfti nmvhmtavdvnhmavoalotfti Ffhmttiatwhtsf...
result:
ok len=436
Test #20:
score: 0
Accepted
time: 11ms
memory: 7672kb
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 Ad gac R kDDEV os pt sf th Au YcphhfojfTfwbctcddtcpoesf SF NLLM DDEVL vcv ccc gabpg gaapg gaaapg gapg gdpg glpg grcg gspg gzpg gdp grp UffgvaciynIisrtutii Dnushusti Eog Ycrmagh A Nf Uatuafywitpr Vc hpccpXIfa Afsgabp Afsgabpd Afisgap Afsgaapd Afsgap Afsgapd Afisgdp Afsgdopd Afsgdp...
result:
ok len=325
Test #21:
score: 0
Accepted
time: 149ms
memory: 23216kb
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 To FWtfe Afwcaiatb TMAcrbRV TMAatnonciactptnbogbotttcoantpufpcgTausciascptnfticpptintucitFTninubtcgp PtttctcwsufpgatFatwspoascpufgagTmhbaacsattbbtttohnmomiWddfcgtcgtcsaptaadftrctscwakboatMA TtMaMAauitoadaotdaipETaowJBPwutnPC SMDwttFatcohsaoemmoieiitIcottcwiwiTosbteittcwACdGaScaFpeoTi...
result:
ok len=2094
Test #22:
score: 0
Accepted
time: 13ms
memory: 7288kb
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: -100
Wrong Answer
time: 24ms
memory: 9456kb
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 STAnRT STARTi SyTART SoTART ShTART SaTARTr STAzRT SuTART STreART STARaT Tpsdtfthafstasase ctgm HamputiSTART STAcRTr SiTART SToART STArRT STARTr STARTo STApRT STeART STAnRTe STAReT Epbotcosswiapjabsoace STiART SeTART SpTART SaTART STAtRT STAdRT...
result:
wrong answer len=523 > ans=522