QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#245883 | #4666. Delete And Win | Myrrh | WA | 3ms | 16912kb | C++14 | 1.2kb | 2023-11-10 14:23:04 | 2023-11-10 14:23:06 |
Judging History
answer
/*
贪心删有什么问题吗
处理末尾情况。有可能删出来字典序相等
处理中间状态:找到后面第一个比当前对位S字典序小的位置,要不然直接删到那里。然后不删了
或者就删到相等位置,然后下一位
例子:
abaa
azxcvbzxcvaa
朴素:
abaa然后删掉末尾a->aba 删9个
加上中间状态:
aaa 删8个
*/
#include <bits/stdc++.h>
using namespace std;
const int MAXN=2e5+50;
int N,M;
char S[MAXN],T[MAXN];
int Pos[MAXN][27];
int main()
{
// freopen("string.in","r",stdin);
// freopen("string.out","w",stdout);
scanf("%s%s",&T[1],&S[1]);
N=strlen(S+1);
M=strlen(T+1);
/*
前i-1位相等,第i位要么相等,要么比当前小
*/
for(int i=0;i<26;i++)
{
Pos[M+1][i]=M+1;
}
for(int i=M;i>=1;i--)
{
for(int j=0;j<26;j++)
Pos[i][j]=Pos[i+1][j];
Pos[i][T[i]-'a']=i;
}
int ans=1e9;
int Now=0;
int j=1;
for(int i=1;i<=N&&j<=M;i++)
{
int Min=M+1;
for(int k=0;k<S[i]-'a';k++)
Min=min(Min,Pos[j][k]);
//cout<<"j:"<<i<<" "<<j<<" "<<Min<<" "<<Pos[j][S[i]-'a']<<endl;
ans=min(ans,Now+Min-j);
Now+=Pos[j][S[i]-'a']-j;
j=Pos[j][S[i]-'a'];
j++;
}
printf("%d",min(ans,Now+1));
}
Details
Tip: Click on the bar to expand more detailed information
Test #1:
score: 100
Accepted
time: 0ms
memory: 3816kb
input:
pqsrpspqz pqrpqz
output:
2
result:
ok 1 number(s): "2"
Test #2:
score: 0
Accepted
time: 2ms
memory: 9508kb
input:
dbgaifphufyoiulauzhjxjzdthwmutqasyeptbzfmoarvvhvwiykeevdysxiktbpaverxfaepvhdzxudjfzpyqcmdmcbuuitvpmmgsojxdafsihpdzkooiveaugnvzqzcvgvedgpwwcdmbpiiqvjwmhsibyupaghqxshjqlrsbnnnwugbjyxabhvixqkzblduvviuhaseorvwdbhyoyhkzqvtehjlsuynzkwwjofehqcbypelelxmnzwdcbfwfiumbizqxyxbisokciiazerartyyoqjccmlkiexwxnzauep...
output:
0
result:
ok 1 number(s): "0"
Test #3:
score: 0
Accepted
time: 0ms
memory: 12992kb
input:
ypxfdrimydfnolhohthwdmrfvusanxncqdxkezjdwtmtheybpysnzehdvlnjyhemufmvsszieuqvwpahskgvnrpoilqhwfjglyfmijrfgjbjdzxtyenzbbxwgazzccvispjnamqjlwvyhsxlrswpblgooqslyjftorzcwuuaoteahfkvpyegdbzvbwgdgpjrqysjlvpwdxowrtwpuyjvumckbkcqyoeenqeaceeztrqsdzdcaymthkeastusjzllxrlxxtkqqzsllfnceuttlwestfqxnqesqfrvxydgeves...
output:
1
result:
ok 1 number(s): "1"
Test #4:
score: 0
Accepted
time: 2ms
memory: 12312kb
input:
prsmhkfxvssywgvrjsfpphacyuycajbgshqzxahpgoogwrsnmxmddfmwuvnaovehsltgziwopsfdbtecihmiloifpwhbqssuhpmsmkyexascnocrtcjioyrfuaswxrfbhywoubmzbudqquusfwraghnwrewqdoiplbschshpfrzdbetegonoulujoxgtfrvfsyjbkviregncozimrvnhsypgvlmdtdgbljaekvtabmbcdbmzdhjoobyczjeguaorvpoqsqopmlojcycrxtpoouxtggxncnahbwyavqctvvfl...
output:
0
result:
ok 1 number(s): "0"
Test #5:
score: 0
Accepted
time: 0ms
memory: 9900kb
input:
dwnkhsgvmfpjzpnlofendpvvepjwgmwfrzuflngcwmvchenozawonavjkarczvvuquxjwfjgfygstuuroqhaisghamuirsylvuhbyefawzunjdcouhcemhepnitjxpnvgqowyxlcxcfbivktfbqayajwglsnzuloshwyiylyukywnjrwvaxpnkgkmgsihekvolhwmxpkzuswbytpzeqnnkboslafcmxusqkylqroiuzthrzskhyiuwerevnsjpuejjszomemqettmfrhqfjuwlryyweallgblbaicrlxcstw...
output:
52
result:
ok 1 number(s): "52"
Test #6:
score: 0
Accepted
time: 2ms
memory: 9696kb
input:
taiwysfibzjgmalatsphlatassfkxtabvazuxiuvkcsnfudqzfflarlokugvxfxgrxgwcjcwrlhrenxhqrncqcqarouokcnpwxucrtyowoypqmfgexbpdqzwdwhgrixsgifbppkhafxqggsvyakrpotmoeqtgpuieodilewpphgicvfjbssjaawisvmecnkvsvxtplftlcgfaycosrudgjuzvbghjlywncwyzmlceijifevlmbtxfkvuimglzrhfxhywqscwunblxiftebdoyimdtzgblvixjysnnrzsfnpf...
output:
1
result:
ok 1 number(s): "1"
Test #7:
score: 0
Accepted
time: 2ms
memory: 10076kb
input:
eemsxvnwjeggaqmdxbvahxicfdawydtgmovvqrbpeuxhmgjlvihnjsplpwjrcvgbcxrwoolxdazbtvrbnvioozifdgloimangudrconywzwdlvnvapkxvtzmkacbipnvrfnlbxxufrphdvfgrlfnsskbodgdxjtltsyyowgewdbiebmacdquatxvkpuqxxfmxqlgdamxgkfvhcqaqvjkynkxzbtkxruejlaqcuuowbylmazucqnigpnpxczqavhaycwjuneyrktdqjsztjgooyjuwcxwdjrxsiaydjgdadph...
output:
0
result:
ok 1 number(s): "0"
Test #8:
score: 0
Accepted
time: 0ms
memory: 13636kb
input:
avwarmblnotielodndehnrpwmgoxmahbzuhvvtundkaotzxmvijyzhxtaodlnekztvayxxmoadhxqyxpmznuogkxolshgvrymjgaqiffntmojihciacvhqvkrwmdejkynuxxsiuzirlumbkwcfoimojaouxwbhpcvwydqvgveqgcnjgtwsdbvimctcpdcuostrjorezofcgbhcudxudslfcfmitaeedegepxxzisvsravfqavfhptbmzlujdwofbzgfrljrwkydpycmlrqswpcfztuwomivnwxrmtvgzhhik...
output:
0
result:
ok 1 number(s): "0"
Test #9:
score: 0
Accepted
time: 1ms
memory: 6300kb
input:
kjiwehfrgkmnttxzqceyeqsgrvvoufcpivgfibwdegrljefbxgzxoewwlslpwjnmrzhupkwysbfzasbgaqztlnedopxjgdmigqenkrwvwftnkoavkcehbipfqxsgwneikmljtrcejdavbdvclfqmwzlrgrmkaolzpwbvpvodfyutdskzmkavjwyzcwrfpenflgfivytlxvcbbjgqgxefijsjeyqqkstnaadbmheydzfsnhfmaptbevdafmoeqphwzfeexbrgnnunpabpjetzzcdziioevjvnoimajenrlkid...
output:
0
result:
ok 1 number(s): "0"
Test #10:
score: 0
Accepted
time: 0ms
memory: 11468kb
input:
nwvacbyianbkhajfbosjpgdgcrlzfhluvngrmtfxxbfpqtbrhkizdpzdieaalnkjixdfcnwmmilkmukezvvslawfugcsahmblmhddfsmsqcvflefibpmhsihxdhrhkwvpqqozgbywbpcwbegpqxgtsectdhaxjmustxpvmdrxpnzmepknvkgdjkupvkdinrgulbeudfvrytlrufjbmxfkcmqsefflzcnvmeycknaxtlhntwxydixjcvnaddzdboumxtlhwbuvxvpijysyhocgayizljndkhjsyvbcicfkzrj...
output:
0
result:
ok 1 number(s): "0"
Test #11:
score: 0
Accepted
time: 0ms
memory: 14896kb
input:
yupzghqaodpuvsnsxblbogvgzvavftuphnhqjijtcdzdcoaepxunqaaaakydbopgdevmstmhcnoxjyrwavkuwskiekpoaltlkefnqgkknbproiiwkkxdojwtfhaeevigbkyyddbrishugetrmcvhkfhxfhunidvhwruhlmiorzzupdecnwztnvdfsisryzuorkzyolhevkeeyszhapnohverszsihpeylchzduauxcmgfhpzgfjdplzoiztjnizkfnaeeoqjwiisrjzdctnpbttozdcmzbcxazkhfxiujnxv...
output:
2
result:
ok 1 number(s): "2"
Test #12:
score: 0
Accepted
time: 0ms
memory: 8568kb
input:
nfkymyadwbanetkgfjappdvnigxhmjvyolktpbsmqsskqmisryxqyezwnndyzpipolnnxbgvniktairhaegxstihguiuwawznfaepjmjpebaydskonvfoztxzitvwdkwvucydbxmksbkigpidgbnjpnqoowwshwvuuklubqmjyzrtuuougufinqvboovepksvwbrkavoauxphfysvsabucagfqjacvdzobigjwnejnyxkpycgsnamakuvigteimnhtlolzxqdhsroqskqtleyybaymkihmkrxkoidesysbss...
output:
0
result:
ok 1 number(s): "0"
Test #13:
score: 0
Accepted
time: 0ms
memory: 7744kb
input:
eemjzpjmbskgdfbetpwbdowqfbeucslhejsvjqyjplevtiuazrfcrjusyeuakxiewavdarfhovzmrwkmxkpcoqpaehnevesbmzuzcczexlhiyrglowyxjllnphkquhtdxemyiecpuukhwgvrlgeaeknwmtfuwmqyeebejxoqyzlzfyxqwsgkrugylwgbzwdpswsonxnovipfsnqaypdvlheickewpadzoplgoihhnezhicpulgcioluyuvoyvosjzrxdjkhoiltaveyeyuudldfeepcgfjaqmfoczgoftnsy...
output:
8
result:
ok 1 number(s): "8"
Test #14:
score: 0
Accepted
time: 2ms
memory: 12916kb
input:
fylyxatvgpgzwucvatzbxmsosznqirwrwgmavvhkgvexvmfdkjqnvdummdjzfivgyfktkycykgrursrkniruszlbuqtaabecapgjpooemrxolmmybyzktujpofotgdfgngdyxbtvgfyqddrnkagrpefwwjzotdqdjchhhizhqpddijwfiuctrgemggddtjtuanewgrofoxthvewqzrxlyexqbhxnkstukhmmjxnugjuqwbrgehojfxrpysmffmfqmbfdsgnzuqegjdkoqpaajpytpprtipmlwwzzugiklvkx...
output:
0
result:
ok 1 number(s): "0"
Test #15:
score: 0
Accepted
time: 0ms
memory: 10976kb
input:
chjdiwxbkhheyftmsvpwpasgdxjeaezjrvgzulsvtjdppfsdqeqbwqfumvyiqckyhmrvdrsfbsebsikicojnexcnkjdnabcuyxomsfklozvnneqvvecocvaokmhosozhbiywlnqkvtpjwpejgilseflfcpahzaafqzovqrbmqvhhqzrveyscsnkdgnmgoxarrvvzllieinbnhusabbemguaeimnaieavtnhtyahgkxarveowpvirtjlqrqodrilutfkincmqyrilfjjerocumfbhnpstgemxmyqqldtazlda...
output:
27
result:
ok 1 number(s): "27"
Test #16:
score: 0
Accepted
time: 3ms
memory: 16912kb
input:
lernfhclelygquvugbqsqeruujgdlcelovicfrwcjecfjstybzgkdkqselbzlfvevmhhoaihuzvynwmpvgxsuljfgarxgnzhjiwciohkmuljnjrchmmdfvfircmmcqknjxutmecyjbrclyzxeldjhgkxhahbftbhrrjaznmfhldhslqwvmascclwotdacnqvmqwwdgargadvpnywvuhjoymhrxfryzbstxnwxsiulcsjbnlqedzmitskxobtsoluromgbimvmgwveagsbwnhgwlagiukygovscnrvaoukiny...
output:
0
result:
ok 1 number(s): "0"
Test #17:
score: 0
Accepted
time: 1ms
memory: 5852kb
input:
fuhxgpnpetrlqruqnvywbpedbesuidqpynvndrmrksiykfijlicxxbwmiyykwrpsalpcspitsccuwggrnwsewxfbtbuhdtkvdamlebywprwmvlzyjnnhjpqdevtyycpikpcfqzbanzfmamyykbnrezromumjysbesjpnddhgamqfzkagxdbxhdqrzxchmwpycgrhcskrzyxtlsoadnkpvinkypukwohajglndxzzenewqejejxsrtjonjgohnmkkhwwpagxsgykkkszoigmcttcbusszuwqvpjjgomzprbgs...
output:
0
result:
ok 1 number(s): "0"
Test #18:
score: 0
Accepted
time: 2ms
memory: 12988kb
input:
twexopdmkgzgrtvlnrtrrvqhudnhmyzuvukqhwkqeyvkoopwwhuauqvrvwrclhiuvmkbkzroktevpozcplxlxaipbjfimrfgdnfeoejzwjcpdfotuwswxgllbdqrjxmndakjlgmfupocfajzxwdudeahxunzubelwczacarecdwivvfgnjqqapewbeemxcsjbqrmzeoeffntbhfxuxirtkyomeudbwlxfhkoprfittezelbvoehhlorncnytgiowysbttsnumoqmgrzjnliwlyafvohscwketpcnobsigvyh...
output:
1
result:
ok 1 number(s): "1"
Test #19:
score: 0
Accepted
time: 1ms
memory: 6236kb
input:
rdopcckjfrsctztajhwnllofpmvuvqdxohclrnglhpyrrspjnqfbvtudaifawcgzhldcheeoncpwudovguryduvrelejjeqnyynlmzvczfrntshjivohhdirepsivunpqptjepjsdgosuqprimakvemugulqmlfxvlchexwjcqimefrxjejejotqeekhaswxmcxefpmfsttrichvvenvcziqokhdzlbgnqdvpzwfyltfvhzzzbweuefmoapstmuxuwcdtzroetntaixdrrzvcpmdprhddrylpmfksffegraq...
output:
0
result:
ok 1 number(s): "0"
Test #20:
score: 0
Accepted
time: 0ms
memory: 12516kb
input:
qlxkhhookpfzdocaiqrsrnyfqqbyxksduvncfqqyeidpjzcxhekadpnqvkbvtccyyquypswirsvumckyxmlqcrlkuruqtzuhsyjnlnzxwixeydzcbvwvqhuwdqlxgcmitnaxbuaqlkxgnwxpfysgmsytfverptksfdyugynbsxxakyuuizvbvpocpkcsqqlwofbqinttheelhaufwieawbjsqdjblranjcpevpqwvrsufcsdldoziktezrvwltodavfbozrhlvggizefhkgsznlkqdzvwavsbiartljdsxjf...
output:
10
result:
ok 1 number(s): "10"
Test #21:
score: 0
Accepted
time: 0ms
memory: 14752kb
input:
qwilhgbizqsgiidczikomrdeaxkeoqwfzysdakjjwgjpwsngveyfsczpekrnaioclsxdxfnnnfleptezzkxnesatqmmwyjnrzanokegnxgfjtvnjsfifzjbshyrhycdilvndwtsesyxlvmtnhzlysfgfuioxjnuijsydqtzvorwqfjpdvvbadxjywmkhelqxpvrsuxqzfbgmvtjyazmpndxmcnqloaauopnvlybcliqexeonwczikywpwbazpxsirpnweffuwppvhyhluqlrthpjnwesbrnuvosmuacoqyrw...
output:
25
result:
ok 1 number(s): "25"
Test #22:
score: 0
Accepted
time: 2ms
memory: 9864kb
input:
zitjmmdkozuikkqgjhkeuvpftukgyblxksrhvvsbfroardghbqhuvihvjxaqmeldropymuoreaznlyqzdakielkcovhixbedyvbwvirsnxstjestroljlrnfgcqqgifonfydimekiymhhfdqqpvezdnwvctfivrjuwycdphrrgxzomtbqljpkjbnqirxznakndexpsaoqtizllrlpzcqbupzpzjhriqrkzpzmyggfpqxvrccivyohluqmbiqvjhjuomczamludynwlpnlzbgepedtfpsjhzeyedjyqklmqrk...
output:
1
result:
ok 1 number(s): "1"
Test #23:
score: 0
Accepted
time: 1ms
memory: 6176kb
input:
wrekifnafzaderenkiozevnkundiftaemamzqhuzvlggyowwvtdpeupzwofswavyquzjlkrhfxmfbtsukamdapfmfinpjftvcfveixpwfaubcrrqbepcqyxagwxgiykwyntgjpipzsqdmejbpkbdhwcnofxpqluuxptumrxyhwytvefrezwrrfllhezadhucgxfyfbjluzqnqzxfnziwhfrdkhphioleyhnjegusawjffdjztzwckcjsvdptxfjbfaifbncvyovueqbqnkjmnsxyzagdxvuxgtzeugktnjvt...
output:
9
result:
ok 1 number(s): "9"
Test #24:
score: 0
Accepted
time: 2ms
memory: 11484kb
input:
jasdfsbxdabmpsciszbzevshtbryojwtwpocbmcbiuijcivvnaithskkqjyfikdgiwtnssyovkmdukienkdiudtjouqatbpujyopvzrxsqpnnkujxunavvlequgyuqkdbqsebukfesqhvqqalwnhgzqlhiafieaxipegterzuqzlpnnbqzwdrrmhprjagjuyzspjacjunrxqzrkxjcpasctmdzvnlqxoztshswolotfcoovchsjlntnpuyxnasoahxngmzwaqhxdmgwqcjypawgzqypwuhllwidaktovolzs...
output:
1
result:
ok 1 number(s): "1"
Test #25:
score: 0
Accepted
time: 1ms
memory: 8672kb
input:
rtbuzdrrqermdipukrkkrkezrapjflfzhiwqyurrfexsaqzgqqklbbvljkczspqqnhtzwmelixsyhlyigzacrvqgviwxbiswmdmlhoskudffweyrivmcfwjuthzfmfhmvqmmmxvaoddnfnjhuwdsgyhxwotqwvenzpatynteawukyljhnmftktqpllfqqlawkzdgwtfuuggzymvuyfwppuumuknzrasbdmxprhkopvalrtkvtzmbzzfwxgnzkxilwhrsyzdoshsbjnuvkyljbmjajapuzcrjamlnvqrtxeuc...
output:
0
result:
ok 1 number(s): "0"
Test #26:
score: 0
Accepted
time: 2ms
memory: 14756kb
input:
itwelbhqwororjzstyxtmqtdvccovelcxksenflsnqxnznbikfsxwkprcmgqhfpfytlsqorsijxgtlwdlbehlwnjqmvjikhkvapecgkazffgqjvjxrkvrgelxnqxuffkqrajlbdgqgedmelxxrhhjgdmrurphldzkmthfqqnwtlpyztvuksjqprkdamczqimxfqbamvqwvltpnclseeogbpijgskoxflvzdyumwdhfsinddxeegrxfczaflomvmqndruzgqjtpblxcqyhireekrbyvorplhorlzzihyqjayc...
output:
0
result:
ok 1 number(s): "0"
Test #27:
score: 0
Accepted
time: 3ms
memory: 13996kb
input:
hybefislodltkilhaaayfrhicxwrnzcgjtcagilwjukxxztyobzqmrqfbkwiwrjoyrqlpqbfzxzufwcmdngwowamuhdameasetaprphhrlgivknwdwpkbzsvagwspyhvedrchbwrmgczlwyddjxyeqqpoowgqlyrhmzzxydbxlxvzqqtjxjtxtuswkyvhkuajloyrxtpimeppdbsrstamjmolkybsealsgyluaeczscuyrvwnbquveejasultnkgsjmnzbtmunipvtmfjzpohfyljmkulapigcpucdrtoluu...
output:
0
result:
ok 1 number(s): "0"
Test #28:
score: 0
Accepted
time: 2ms
memory: 13580kb
input:
ajffkzritrebcsmzxetvrxwfdolnjsjmvgrswdpzdxwjqgodtkdndndcemmttxtmtxoppxplmyjqwhuainihluliukpvegpxatswjrsdsmspwriykqhrklvmpmgfhnkznafxlassoqwtsytfcmasnxwmrgajskqrvjfpvssqebvzbugekavosuhxvncxbzkthgorqdsxxnfcdquskvatckicmfkarvhczlitpvjgynxhvyszpyazawfrgectanffjghwtjiqdohvinvdzfycayskatwswjemtkritjlwewjh...
output:
0
result:
ok 1 number(s): "0"
Test #29:
score: 0
Accepted
time: 0ms
memory: 11552kb
input:
sbdgvjpezlodulhkbupofawgglwpdndjdckzqmdhqxvvvouzeyhwkzpmsspyixbtblvsjrixqcdkffwygzwxjfvrwvcpehqqrtncikkzsgvuifkksfcmvlkdhumqiuzyyhhqsjmsasxaxtfcseuskllzxsplggogrxduleprotuvueggkgrhpdbelytwefadmzfldmvezitmndmtrfokyeqssjlyfwijktcrfcmttpilwagpujpniciuughglsfjdebocagpulqpffjyqfwzlcciuxxkshlkdmdwgvszowpa...
output:
1
result:
ok 1 number(s): "1"
Test #30:
score: 0
Accepted
time: 0ms
memory: 12772kb
input:
usbtyqtiqbvmpqoqvorlzifleakgedgfdrhjaubkhaankwqrjmptklmovcwnbedjvlbmrlepubzqmmnyabqeucapwaxrzhopfukxjbfeqqaogiysexwdiezfhtecryomllcgbbkiosjpxmsfzxjmevlpjthwpfxlxedhkmrivphzobzxwfpqhzbjtaomssphqbaauapbagdzbfftfrqcnmivdahprwxpldawpdfosjdkbueebovxbzpaoowjggqouojosnquvgcnxxxownpraqyecwcuaiifmtifrtzwrpyp...
output:
2
result:
ok 1 number(s): "2"
Test #31:
score: 0
Accepted
time: 2ms
memory: 11772kb
input:
ftytnmimmbiikqnvvzcmswamqjvevlzvwzvmwtprqdxdqqdmutnffzhrspfomhxkubfbobgdarfdhljtqqfstiydrcmgqnjkgejjjtgufrelucjhonwdakveddrtubpnhdexcouxqeynsgkifzmsywfhyjchrdocsxykxepthsnbbfolcmunxrlvgkibqbmpyuytwbokdiqclznbndveyfqmkjyblnjbyqxichfncdtoqdektpdqhibcsgevkmcegiohkfbazkddshtvuqtsydywmobvjfcewbwsdzvvbnts...
output:
0
result:
ok 1 number(s): "0"
Test #32:
score: 0
Accepted
time: 1ms
memory: 8692kb
input:
mlqoebrnadbfqrczgnzusffqhefqeifeeyvgiexbhmjxydgxblskskhmbnyrpkqzsrzitkaiqkjrqwicyoakknzqrlotfikastbdzqawvzrqwzcitgtyxmtwnjvjgmmwhaulfpmyhnzjzdalbyqlnitdglqbmnntvqxdjrstuupdsevvqfmhhgqvzfmzcwoxloefduropcfblmpwzeacceolvtogthfckwrldseilikzgykfvoowipdbfncesdsghfxtzaqyffulxjycfqcrpfgujgzuqayrzxvlecxphnvc...
output:
0
result:
ok 1 number(s): "0"
Test #33:
score: 0
Accepted
time: 1ms
memory: 7248kb
input:
nhyfhidusidywpjfvogngnwzdmdfazbbrbympmxldmynabkfhaapubiiohmjosrwxyfhyuvgvtscumbqvcqduuaypduawstmtcfbdqtbjqmpgnxtspthvlghfknudvtivqrkajoaeanamboscaggebvmwuxgdlkqjhyeecntdecxyhhwwmovswuywjfgfoejictzdpfijjvfojidykntzezhamgyxtyneaneobibmcwlrctpyjesneugwokzgirhysqicntpcpbgesmpgomsrsmrjhujxoghsrfsssvsngux...
output:
0
result:
ok 1 number(s): "0"
Test #34:
score: 0
Accepted
time: 2ms
memory: 15096kb
input:
zskxagpwjzojdbhgafthlzqtzvsurfcsquymkenmpbwbhmksiesdsyodnauylbwheubeoarrsuxzzlnwsxppiufgtbpyybfvxyltspesdumhxywqyuohubppqbnfpzjrruyfrwmpzvqjvwlodsxqnhadudtkisgcjekwbdbcslvpqgaskqxefxtukfacidrrhcgdilothyjlzfhvwvryuytkgxvaknpzfkvszuzjakhxfeidtctyhgwfyrpezrnxzwzwykcyhrwzwdeccxrpbttxvytmoivpjqzjwzcubnih...
output:
2
result:
ok 1 number(s): "2"
Test #35:
score: 0
Accepted
time: 0ms
memory: 12436kb
input:
tahusokxrujrbapbsulumbwcfjzzzziuzkaugtbcbnagcumjhxsaviyvyhqyaqeofyhmvudfrcrilucxtmxcfxvitcnuewzrklomacjtlnaaqgdggsvgyeaekjkafkhxctzdegcyzyhxfhofrnfjzftaptakncmcrzcmbwcfyxrfusamnodjnpxojfkrjqhjcmwklthpqxprurnuakjrqtnublaudoesgnjxadexgfvkprzqmsrvimzxvjgrbvzozzsfaojbgqehkvrokvbvwgcevqbyimfjuqtfxbkhayhd...
output:
1
result:
ok 1 number(s): "1"
Test #36:
score: 0
Accepted
time: 2ms
memory: 13364kb
input:
aeopmcmwrhguiwffrvfmijwdutvhvzgdvuaflykkwerynjfneclfafkusghbszsjmynmjslvcebzylkvvxasdftmbbemukudtizeuumhaxscvqnonborllzznvomcuifdfyhhgdqsbhuiinxqtdhkqvkngsqegfnljyyvwzhxpnaffajjcmkcdxqvxfwivskhcolqbyqyugnpmgykpmrrihxblvjpkzegrcietflntaneaphunzzdzcclkquwjsdrpdoldvqkbxgidnplshogjbpxmygdsuopaamuxkzcdtt...
output:
0
result:
ok 1 number(s): "0"
Test #37:
score: 0
Accepted
time: 0ms
memory: 13492kb
input:
joodulqotoczxazdkimprykjknkmujncmpycodzpwtbjrrbndhgbxxekaybkzsigroqqrpvmhnwhjornbmkfyyzfojojevqzwydgafhnxqtnokzoxlorvslfdaluinzespzbxhkdcramydwulbfwsowfuniegxqmmvvdajqsrkbsctkrqlqdiahwtmqcqvbrzvzkvdxlshpcjiwfcdwqtyxagpdblwrslmqzkbfjyxrhjttmrxpkcyyzuqbmjehhgqdfygovbzvcbqphkhvvlluijvktffqavvylsiwsraco...
output:
71844
result:
ok 1 number(s): "71844"
Test #38:
score: 0
Accepted
time: 0ms
memory: 15564kb
input:
lybjbzfknkyvboxthhvnvaqjteuzpcmjbjnjwfzxfddznavcrqccwbnictqsappurkwggncfaglunyeuktnnchyqbuiteeviwtqzlxhhhbrmfqyncrvznevlrunvxvfohrwphfwknsaapivwjvelupynxmatpauycjcyzimxedxpftlmqwftrndnkrrugysbbejxxcnqcxtbvhdxembcesvxioprsiknxudktqlhizesohqupjxccndcqjualdjlijenxmtqxoihjiviyutlnxznblyppdqiqrtedsymvwme...
output:
89902
result:
ok 1 number(s): "89902"
Test #39:
score: 0
Accepted
time: 1ms
memory: 7732kb
input:
lzvkohlegolcyfulxkpwzxojhfkvhtlgfdotseoehggarsalneqxjsbiighvikqewqgwbwqqlbztlknqsajhajohaldpuinwhruamtvgcghtemmketzdfokydkbcmnuzlkvsswauqdivjlzsmbovlapjgvhkkpjtqxpsmielrdquvqahzgiusojmufnaxbjumswmizbpfpvntbrngcvpnqkdctxzkupycbpiqstcabnrqfrdezcwybqdjeedeforkjgrxvjtmycwqfltcxjvskxjrxtkmkoftquzrneaqjbl...
output:
20798
result:
ok 1 number(s): "20798"
Test #40:
score: 0
Accepted
time: 2ms
memory: 13228kb
input:
oqharueledfczgdcgyweucrrcongczqtkmgpdwnidncwjkpgplxiloytgaxlzzcywijuzymgpjicddtrpigkgpfqsjkeqxvjvjaxhytivhwnqbdwncumlebgfwpybdqlfmbktataxxughlselpdqvwnrsariittqowwbywthpnghmbaqsewdjyfppyqikoxrqlflmvyfhpmrmswwqnpucjtlmpvqkvgvogzhtitjgiaukfhrgrrbvnxvejolakkdfipqguuzrwgdlydsrostddyudcsssyetzjjafccmjugh...
output:
71962
result:
ok 1 number(s): "71962"
Test #41:
score: 0
Accepted
time: 0ms
memory: 13332kb
input:
udrqbueehmjmsocxltmfzejwlbilsrhgeijeruvdeuxpxxiplvwffhhymxzppqvknrjkxvmsmcjrdxonlgmdjdltirmtyhfkjvfkqazjtkiwyfboofyiyyijvkhauxtdbewcafqtzlctdjdjyygdmbtkqqnuhwzztywhzqfxrxloqgwbqmfmbsxevpdpkkkjpgxbybmxkxqleoklasrzeayflsayczxjweazmurayimyagqltxdczeddahkzultipvnviubmwzhumlcdjayluwknwzcfrwpauksdjbjruime...
output:
10026
result:
ok 1 number(s): "10026"
Test #42:
score: -100
Wrong Answer
time: 1ms
memory: 9360kb
input:
nputuglbamiqdmdffqzlvftxjpborzpsurbcclrvberfqbvfzypsfcdqdlsjzyeizgbwswegoppffvflsdezkhgrqmvmlonemezckisygyquzvtmsmrbqmqzmydrzuhowoxjiqzrappaasqrjfjhatgincwdbmtgyhlcfxhxaccdaazfcwvebruexghyjvtasrhuosuhcsmqycffivcxrzmihnojalgogeuusgrfuguyczbqulmehxbtboeuwksjaezaqoerebnxokovxtfdcrhbqhrwxlvmmypfqreggzfo...
output:
32390
result:
wrong answer 1st numbers differ - expected: '32389', found: '32390'