QOJ.ac
QOJ
ID | 题目 | 提交者 | 结果 | 用时 | 内存 | 语言 | 文件大小 | 提交时间 | 测评时间 |
---|---|---|---|---|---|---|---|---|---|
#246519 | #4666. Delete And Win | atgc | WA | 5ms | 25784kb | C++14 | 910b | 2023-11-10 21:38:20 | 2023-11-10 21:38:20 |
Judging History
answer
/*YYC is Thinking Here*/
#include<bits/stdc++.h>
#define mids(l,r) const auto mid = (l + r) >> 1
#define lb(x) (x&-x)
#define ls (x<<1)
#define rs (ls|1)
#define int long long
#define pii pair<int,int>
#define inf 0x3f3f3f3f3f3f3f3f
using namespace std;
const int maxn = 2e5+10;
char s[maxn],t[maxn];
int n,m;
int nxt[maxn][26];
int ans = 0;
signed main() {
ios::sync_with_stdio(0),cin.tie(0);
cin>>(t+1)>>(s+1);
n = strlen(s+1), m = strlen(t+1);
for(int i = 0;i < 26;++i) nxt[m+1][i] = m+1;
for(int i = m;i;--i) {
memcpy(nxt[i],nxt[i+1],sizeof nxt[0]);
nxt[i][t[i]-'a'] = i;
}
int p = 1;
for(int i = 1;i <= n;++i) {
int g = m+1;
for(int c = 0;c < s[i]-'a';++c) g = min(g,nxt[p][c]);
// deb(p,i,g);
ans = max(ans,i + m - g);
p = nxt[p][s[i]-'a']+1;
if(p >= m+1) break;
}
cout<< m - ans;
}
/*
* I love it all
* Go forward,move forward !
*/
详细
Test #1:
score: 100
Accepted
time: 0ms
memory: 3592kb
input:
pqsrpspqz pqrpqz
output:
2
result:
ok 1 number(s): "2"
Test #2:
score: 0
Accepted
time: 3ms
memory: 13496kb
input:
dbgaifphufyoiulauzhjxjzdthwmutqasyeptbzfmoarvvhvwiykeevdysxiktbpaverxfaepvhdzxudjfzpyqcmdmcbuuitvpmmgsojxdafsihpdzkooiveaugnvzqzcvgvedgpwwcdmbpiiqvjwmhsibyupaghqxshjqlrsbnnnwugbjyxabhvixqkzblduvviuhaseorvwdbhyoyhkzqvtehjlsuynzkwwjofehqcbypelelxmnzwdcbfwfiumbizqxyxbisokciiazerartyyoqjccmlkiexwxnzauep...
output:
0
result:
ok 1 number(s): "0"
Test #3:
score: 0
Accepted
time: 0ms
memory: 14416kb
input:
ypxfdrimydfnolhohthwdmrfvusanxncqdxkezjdwtmtheybpysnzehdvlnjyhemufmvsszieuqvwpahskgvnrpoilqhwfjglyfmijrfgjbjdzxtyenzbbxwgazzccvispjnamqjlwvyhsxlrswpblgooqslyjftorzcwuuaoteahfkvpyegdbzvbwgdgpjrqysjlvpwdxowrtwpuyjvumckbkcqyoeenqeaceeztrqsdzdcaymthkeastusjzllxrlxxtkqqzsllfnceuttlwestfqxnqesqfrvxydgeves...
output:
1
result:
ok 1 number(s): "1"
Test #4:
score: 0
Accepted
time: 2ms
memory: 21884kb
input:
prsmhkfxvssywgvrjsfpphacyuycajbgshqzxahpgoogwrsnmxmddfmwuvnaovehsltgziwopsfdbtecihmiloifpwhbqssuhpmsmkyexascnocrtcjioyrfuaswxrfbhywoubmzbudqquusfwraghnwrewqdoiplbschshpfrzdbetegonoulujoxgtfrvfsyjbkviregncozimrvnhsypgvlmdtdgbljaekvtabmbcdbmzdhjoobyczjeguaorvpoqsqopmlojcycrxtpoouxtggxncnahbwyavqctvvfl...
output:
0
result:
ok 1 number(s): "0"
Test #5:
score: 0
Accepted
time: 0ms
memory: 14256kb
input:
dwnkhsgvmfpjzpnlofendpvvepjwgmwfrzuflngcwmvchenozawonavjkarczvvuquxjwfjgfygstuuroqhaisghamuirsylvuhbyefawzunjdcouhcemhepnitjxpnvgqowyxlcxcfbivktfbqayajwglsnzuloshwyiylyukywnjrwvaxpnkgkmgsihekvolhwmxpkzuswbytpzeqnnkboslafcmxusqkylqroiuzthrzskhyiuwerevnsjpuejjszomemqettmfrhqfjuwlryyweallgblbaicrlxcstw...
output:
52
result:
ok 1 number(s): "52"
Test #6:
score: 0
Accepted
time: 2ms
memory: 12708kb
input:
taiwysfibzjgmalatsphlatassfkxtabvazuxiuvkcsnfudqzfflarlokugvxfxgrxgwcjcwrlhrenxhqrncqcqarouokcnpwxucrtyowoypqmfgexbpdqzwdwhgrixsgifbppkhafxqggsvyakrpotmoeqtgpuieodilewpphgicvfjbssjaawisvmecnkvsvxtplftlcgfaycosrudgjuzvbghjlywncwyzmlceijifevlmbtxfkvuimglzrhfxhywqscwunblxiftebdoyimdtzgblvixjysnnrzsfnpf...
output:
1
result:
ok 1 number(s): "1"
Test #7:
score: 0
Accepted
time: 0ms
memory: 15384kb
input:
eemsxvnwjeggaqmdxbvahxicfdawydtgmovvqrbpeuxhmgjlvihnjsplpwjrcvgbcxrwoolxdazbtvrbnvioozifdgloimangudrconywzwdlvnvapkxvtzmkacbipnvrfnlbxxufrphdvfgrlfnsskbodgdxjtltsyyowgewdbiebmacdquatxvkpuqxxfmxqlgdamxgkfvhcqaqvjkynkxzbtkxruejlaqcuuowbylmazucqnigpnpxczqavhaycwjuneyrktdqjsztjgooyjuwcxwdjrxsiaydjgdadph...
output:
0
result:
ok 1 number(s): "0"
Test #8:
score: 0
Accepted
time: 0ms
memory: 23440kb
input:
avwarmblnotielodndehnrpwmgoxmahbzuhvvtundkaotzxmvijyzhxtaodlnekztvayxxmoadhxqyxpmznuogkxolshgvrymjgaqiffntmojihciacvhqvkrwmdejkynuxxsiuzirlumbkwcfoimojaouxwbhpcvwydqvgveqgcnjgtwsdbvimctcpdcuostrjorezofcgbhcudxudslfcfmitaeedegepxxzisvsravfqavfhptbmzlujdwofbzgfrljrwkydpycmlrqswpcfztuwomivnwxrmtvgzhhik...
output:
0
result:
ok 1 number(s): "0"
Test #9:
score: 0
Accepted
time: 0ms
memory: 6516kb
input:
kjiwehfrgkmnttxzqceyeqsgrvvoufcpivgfibwdegrljefbxgzxoewwlslpwjnmrzhupkwysbfzasbgaqztlnedopxjgdmigqenkrwvwftnkoavkcehbipfqxsgwneikmljtrcejdavbdvclfqmwzlrgrmkaolzpwbvpvodfyutdskzmkavjwyzcwrfpenflgfivytlxvcbbjgqgxefijsjeyqqkstnaadbmheydzfsnhfmaptbevdafmoeqphwzfeexbrgnnunpabpjetzzcdziioevjvnoimajenrlkid...
output:
0
result:
ok 1 number(s): "0"
Test #10:
score: 0
Accepted
time: 0ms
memory: 19704kb
input:
nwvacbyianbkhajfbosjpgdgcrlzfhluvngrmtfxxbfpqtbrhkizdpzdieaalnkjixdfcnwmmilkmukezvvslawfugcsahmblmhddfsmsqcvflefibpmhsihxdhrhkwvpqqozgbywbpcwbegpqxgtsectdhaxjmustxpvmdrxpnzmepknvkgdjkupvkdinrgulbeudfvrytlrufjbmxfkcmqsefflzcnvmeycknaxtlhntwxydixjcvnaddzdboumxtlhwbuvxvpijysyhocgayizljndkhjsyvbcicfkzrj...
output:
0
result:
ok 1 number(s): "0"
Test #11:
score: 0
Accepted
time: 0ms
memory: 21844kb
input:
yupzghqaodpuvsnsxblbogvgzvavftuphnhqjijtcdzdcoaepxunqaaaakydbopgdevmstmhcnoxjyrwavkuwskiekpoaltlkefnqgkknbproiiwkkxdojwtfhaeevigbkyyddbrishugetrmcvhkfhxfhunidvhwruhlmiorzzupdecnwztnvdfsisryzuorkzyolhevkeeyszhapnohverszsihpeylchzduauxcmgfhpzgfjdplzoiztjnizkfnaeeoqjwiisrjzdctnpbttozdcmzbcxazkhfxiujnxv...
output:
2
result:
ok 1 number(s): "2"
Test #12:
score: 0
Accepted
time: 0ms
memory: 12428kb
input:
nfkymyadwbanetkgfjappdvnigxhmjvyolktpbsmqsskqmisryxqyezwnndyzpipolnnxbgvniktairhaegxstihguiuwawznfaepjmjpebaydskonvfoztxzitvwdkwvucydbxmksbkigpidgbnjpnqoowwshwvuuklubqmjyzrtuuougufinqvboovepksvwbrkavoauxphfysvsabucagfqjacvdzobigjwnejnyxkpycgsnamakuvigteimnhtlolzxqdhsroqskqtleyybaymkihmkrxkoidesysbss...
output:
0
result:
ok 1 number(s): "0"
Test #13:
score: 0
Accepted
time: 0ms
memory: 10580kb
input:
eemjzpjmbskgdfbetpwbdowqfbeucslhejsvjqyjplevtiuazrfcrjusyeuakxiewavdarfhovzmrwkmxkpcoqpaehnevesbmzuzcczexlhiyrglowyxjllnphkquhtdxemyiecpuukhwgvrlgeaeknwmtfuwmqyeebejxoqyzlzfyxqwsgkrugylwgbzwdpswsonxnovipfsnqaypdvlheickewpadzoplgoihhnezhicpulgcioluyuvoyvosjzrxdjkhoiltaveyeyuudldfeepcgfjaqmfoczgoftnsy...
output:
8
result:
ok 1 number(s): "8"
Test #14:
score: 0
Accepted
time: 0ms
memory: 15244kb
input:
fylyxatvgpgzwucvatzbxmsosznqirwrwgmavvhkgvexvmfdkjqnvdummdjzfivgyfktkycykgrursrkniruszlbuqtaabecapgjpooemrxolmmybyzktujpofotgdfgngdyxbtvgfyqddrnkagrpefwwjzotdqdjchhhizhqpddijwfiuctrgemggddtjtuanewgrofoxthvewqzrxlyexqbhxnkstukhmmjxnugjuqwbrgehojfxrpysmffmfqmbfdsgnzuqegjdkoqpaajpytpprtipmlwwzzugiklvkx...
output:
0
result:
ok 1 number(s): "0"
Test #15:
score: 0
Accepted
time: 3ms
memory: 13952kb
input:
chjdiwxbkhheyftmsvpwpasgdxjeaezjrvgzulsvtjdppfsdqeqbwqfumvyiqckyhmrvdrsfbsebsikicojnexcnkjdnabcuyxomsfklozvnneqvvecocvaokmhosozhbiywlnqkvtpjwpejgilseflfcpahzaafqzovqrbmqvhhqzrveyscsnkdgnmgoxarrvvzllieinbnhusabbemguaeimnaieavtnhtyahgkxarveowpvirtjlqrqodrilutfkincmqyrilfjjerocumfbhnpstgemxmyqqldtazlda...
output:
27
result:
ok 1 number(s): "27"
Test #16:
score: 0
Accepted
time: 0ms
memory: 22916kb
input:
lernfhclelygquvugbqsqeruujgdlcelovicfrwcjecfjstybzgkdkqselbzlfvevmhhoaihuzvynwmpvgxsuljfgarxgnzhjiwciohkmuljnjrchmmdfvfircmmcqknjxutmecyjbrclyzxeldjhgkxhahbftbhrrjaznmfhldhslqwvmascclwotdacnqvmqwwdgargadvpnywvuhjoymhrxfryzbstxnwxsiulcsjbnlqedzmitskxobtsoluromgbimvmgwveagsbwnhgwlagiukygovscnrvaoukiny...
output:
0
result:
ok 1 number(s): "0"
Test #17:
score: 0
Accepted
time: 0ms
memory: 5636kb
input:
fuhxgpnpetrlqruqnvywbpedbesuidqpynvndrmrksiykfijlicxxbwmiyykwrpsalpcspitsccuwggrnwsewxfbtbuhdtkvdamlebywprwmvlzyjnnhjpqdevtyycpikpcfqzbanzfmamyykbnrezromumjysbesjpnddhgamqfzkagxdbxhdqrzxchmwpycgrhcskrzyxtlsoadnkpvinkypukwohajglndxzzenewqejejxsrtjonjgohnmkkhwwpagxsgykkkszoigmcttcbusszuwqvpjjgomzprbgs...
output:
0
result:
ok 1 number(s): "0"
Test #18:
score: 0
Accepted
time: 0ms
memory: 16384kb
input:
twexopdmkgzgrtvlnrtrrvqhudnhmyzuvukqhwkqeyvkoopwwhuauqvrvwrclhiuvmkbkzroktevpozcplxlxaipbjfimrfgdnfeoejzwjcpdfotuwswxgllbdqrjxmndakjlgmfupocfajzxwdudeahxunzubelwczacarecdwivvfgnjqqapewbeemxcsjbqrmzeoeffntbhfxuxirtkyomeudbwlxfhkoprfittezelbvoehhlorncnytgiowysbttsnumoqmgrzjnliwlyafvohscwketpcnobsigvyh...
output:
1
result:
ok 1 number(s): "1"
Test #19:
score: 0
Accepted
time: 2ms
memory: 8380kb
input:
rdopcckjfrsctztajhwnllofpmvuvqdxohclrnglhpyrrspjnqfbvtudaifawcgzhldcheeoncpwudovguryduvrelejjeqnyynlmzvczfrntshjivohhdirepsivunpqptjepjsdgosuqprimakvemugulqmlfxvlchexwjcqimefrxjejejotqeekhaswxmcxefpmfsttrichvvenvcziqokhdzlbgnqdvpzwfyltfvhzzzbweuefmoapstmuxuwcdtzroetntaixdrrzvcpmdprhddrylpmfksffegraq...
output:
0
result:
ok 1 number(s): "0"
Test #20:
score: 0
Accepted
time: 2ms
memory: 21796kb
input:
qlxkhhookpfzdocaiqrsrnyfqqbyxksduvncfqqyeidpjzcxhekadpnqvkbvtccyyquypswirsvumckyxmlqcrlkuruqtzuhsyjnlnzxwixeydzcbvwvqhuwdqlxgcmitnaxbuaqlkxgnwxpfysgmsytfverptksfdyugynbsxxakyuuizvbvpocpkcsqqlwofbqinttheelhaufwieawbjsqdjblranjcpevpqwvrsufcsdldoziktezrvwltodavfbozrhlvggizefhkgsznlkqdzvwavsbiartljdsxjf...
output:
10
result:
ok 1 number(s): "10"
Test #21:
score: 0
Accepted
time: 0ms
memory: 20928kb
input:
qwilhgbizqsgiidczikomrdeaxkeoqwfzysdakjjwgjpwsngveyfsczpekrnaioclsxdxfnnnfleptezzkxnesatqmmwyjnrzanokegnxgfjtvnjsfifzjbshyrhycdilvndwtsesyxlvmtnhzlysfgfuioxjnuijsydqtzvorwqfjpdvvbadxjywmkhelqxpvrsuxqzfbgmvtjyazmpndxmcnqloaauopnvlybcliqexeonwczikywpwbazpxsirpnweffuwppvhyhluqlrthpjnwesbrnuvosmuacoqyrw...
output:
25
result:
ok 1 number(s): "25"
Test #22:
score: 0
Accepted
time: 0ms
memory: 13388kb
input:
zitjmmdkozuikkqgjhkeuvpftukgyblxksrhvvsbfroardghbqhuvihvjxaqmeldropymuoreaznlyqzdakielkcovhixbedyvbwvirsnxstjestroljlrnfgcqqgifonfydimekiymhhfdqqpvezdnwvctfivrjuwycdphrrgxzomtbqljpkjbnqirxznakndexpsaoqtizllrlpzcqbupzpzjhriqrkzpzmyggfpqxvrccivyohluqmbiqvjhjuomczamludynwlpnlzbgepedtfpsjhzeyedjyqklmqrk...
output:
1
result:
ok 1 number(s): "1"
Test #23:
score: 0
Accepted
time: 1ms
memory: 6384kb
input:
wrekifnafzaderenkiozevnkundiftaemamzqhuzvlggyowwvtdpeupzwofswavyquzjlkrhfxmfbtsukamdapfmfinpjftvcfveixpwfaubcrrqbepcqyxagwxgiykwyntgjpipzsqdmejbpkbdhwcnofxpqluuxptumrxyhwytvefrezwrrfllhezadhucgxfyfbjluzqnqzxfnziwhfrdkhphioleyhnjegusawjffdjztzwckcjsvdptxfjbfaifbncvyovueqbqnkjmnsxyzagdxvuxgtzeugktnjvt...
output:
9
result:
ok 1 number(s): "9"
Test #24:
score: 0
Accepted
time: 0ms
memory: 18088kb
input:
jasdfsbxdabmpsciszbzevshtbryojwtwpocbmcbiuijcivvnaithskkqjyfikdgiwtnssyovkmdukienkdiudtjouqatbpujyopvzrxsqpnnkujxunavvlequgyuqkdbqsebukfesqhvqqalwnhgzqlhiafieaxipegterzuqzlpnnbqzwdrrmhprjagjuyzspjacjunrxqzrkxjcpasctmdzvnlqxoztshswolotfcoovchsjlntnpuyxnasoahxngmzwaqhxdmgwqcjypawgzqypwuhllwidaktovolzs...
output:
1
result:
ok 1 number(s): "1"
Test #25:
score: 0
Accepted
time: 2ms
memory: 10480kb
input:
rtbuzdrrqermdipukrkkrkezrapjflfzhiwqyurrfexsaqzgqqklbbvljkczspqqnhtzwmelixsyhlyigzacrvqgviwxbiswmdmlhoskudffweyrivmcfwjuthzfmfhmvqmmmxvaoddnfnjhuwdsgyhxwotqwvenzpatynteawukyljhnmftktqpllfqqlawkzdgwtfuuggzymvuyfwppuumuknzrasbdmxprhkopvalrtkvtzmbzzfwxgnzkxilwhrsyzdoshsbjnuvkyljbmjajapuzcrjamlnvqrtxeuc...
output:
0
result:
ok 1 number(s): "0"
Test #26:
score: 0
Accepted
time: 0ms
memory: 21380kb
input:
itwelbhqwororjzstyxtmqtdvccovelcxksenflsnqxnznbikfsxwkprcmgqhfpfytlsqorsijxgtlwdlbehlwnjqmvjikhkvapecgkazffgqjvjxrkvrgelxnqxuffkqrajlbdgqgedmelxxrhhjgdmrurphldzkmthfqqnwtlpyztvuksjqprkdamczqimxfqbamvqwvltpnclseeogbpijgskoxflvzdyumwdhfsinddxeegrxfczaflomvmqndruzgqjtpblxcqyhireekrbyvorplhorlzzihyqjayc...
output:
0
result:
ok 1 number(s): "0"
Test #27:
score: 0
Accepted
time: 3ms
memory: 25784kb
input:
hybefislodltkilhaaayfrhicxwrnzcgjtcagilwjukxxztyobzqmrqfbkwiwrjoyrqlpqbfzxzufwcmdngwowamuhdameasetaprphhrlgivknwdwpkbzsvagwspyhvedrchbwrmgczlwyddjxyeqqpoowgqlyrhmzzxydbxlxvzqqtjxjtxtuswkyvhkuajloyrxtpimeppdbsrstamjmolkybsealsgyluaeczscuyrvwnbquveejasultnkgsjmnzbtmunipvtmfjzpohfyljmkulapigcpucdrtoluu...
output:
0
result:
ok 1 number(s): "0"
Test #28:
score: 0
Accepted
time: 5ms
memory: 23804kb
input:
ajffkzritrebcsmzxetvrxwfdolnjsjmvgrswdpzdxwjqgodtkdndndcemmttxtmtxoppxplmyjqwhuainihluliukpvegpxatswjrsdsmspwriykqhrklvmpmgfhnkznafxlassoqwtsytfcmasnxwmrgajskqrvjfpvssqebvzbugekavosuhxvncxbzkthgorqdsxxnfcdquskvatckicmfkarvhczlitpvjgynxhvyszpyazawfrgectanffjghwtjiqdohvinvdzfycayskatwswjemtkritjlwewjh...
output:
0
result:
ok 1 number(s): "0"
Test #29:
score: 0
Accepted
time: 0ms
memory: 17080kb
input:
sbdgvjpezlodulhkbupofawgglwpdndjdckzqmdhqxvvvouzeyhwkzpmsspyixbtblvsjrixqcdkffwygzwxjfvrwvcpehqqrtncikkzsgvuifkksfcmvlkdhumqiuzyyhhqsjmsasxaxtfcseuskllzxsplggogrxduleprotuvueggkgrhpdbelytwefadmzfldmvezitmndmtrfokyeqssjlyfwijktcrfcmttpilwagpujpniciuughglsfjdebocagpulqpffjyqfwzlcciuxxkshlkdmdwgvszowpa...
output:
1
result:
ok 1 number(s): "1"
Test #30:
score: 0
Accepted
time: 2ms
memory: 20912kb
input:
usbtyqtiqbvmpqoqvorlzifleakgedgfdrhjaubkhaankwqrjmptklmovcwnbedjvlbmrlepubzqmmnyabqeucapwaxrzhopfukxjbfeqqaogiysexwdiezfhtecryomllcgbbkiosjpxmsfzxjmevlpjthwpfxlxedhkmrivphzobzxwfpqhzbjtaomssphqbaauapbagdzbfftfrqcnmivdahprwxpldawpdfosjdkbueebovxbzpaoowjggqouojosnquvgcnxxxownpraqyecwcuaiifmtifrtzwrpyp...
output:
2
result:
ok 1 number(s): "2"
Test #31:
score: 0
Accepted
time: 2ms
memory: 18732kb
input:
ftytnmimmbiikqnvvzcmswamqjvevlzvwzvmwtprqdxdqqdmutnffzhrspfomhxkubfbobgdarfdhljtqqfstiydrcmgqnjkgejjjtgufrelucjhonwdakveddrtubpnhdexcouxqeynsgkifzmsywfhyjchrdocsxykxepthsnbbfolcmunxrlvgkibqbmpyuytwbokdiqclznbndveyfqmkjyblnjbyqxichfncdtoqdektpdqhibcsgevkmcegiohkfbazkddshtvuqtsydywmobvjfcewbwsdzvvbnts...
output:
0
result:
ok 1 number(s): "0"
Test #32:
score: 0
Accepted
time: 1ms
memory: 7904kb
input:
mlqoebrnadbfqrczgnzusffqhefqeifeeyvgiexbhmjxydgxblskskhmbnyrpkqzsrzitkaiqkjrqwicyoakknzqrlotfikastbdzqawvzrqwzcitgtyxmtwnjvjgmmwhaulfpmyhnzjzdalbyqlnitdglqbmnntvqxdjrstuupdsevvqfmhhgqvzfmzcwoxloefduropcfblmpwzeacceolvtogthfckwrldseilikzgykfvoowipdbfncesdsghfxtzaqyffulxjycfqcrpfgujgzuqayrzxvlecxphnvc...
output:
0
result:
ok 1 number(s): "0"
Test #33:
score: 0
Accepted
time: 0ms
memory: 7188kb
input:
nhyfhidusidywpjfvogngnwzdmdfazbbrbympmxldmynabkfhaapubiiohmjosrwxyfhyuvgvtscumbqvcqduuaypduawstmtcfbdqtbjqmpgnxtspthvlghfknudvtivqrkajoaeanamboscaggebvmwuxgdlkqjhyeecntdecxyhhwwmovswuywjfgfoejictzdpfijjvfojidykntzezhamgyxtyneaneobibmcwlrctpyjesneugwokzgirhysqicntpcpbgesmpgomsrsmrjhujxoghsrfsssvsngux...
output:
0
result:
ok 1 number(s): "0"
Test #34:
score: 0
Accepted
time: 4ms
memory: 18412kb
input:
zskxagpwjzojdbhgafthlzqtzvsurfcsquymkenmpbwbhmksiesdsyodnauylbwheubeoarrsuxzzlnwsxppiufgtbpyybfvxyltspesdumhxywqyuohubppqbnfpzjrruyfrwmpzvqjvwlodsxqnhadudtkisgcjekwbdbcslvpqgaskqxefxtukfacidrrhcgdilothyjlzfhvwvryuytkgxvaknpzfkvszuzjakhxfeidtctyhgwfyrpezrnxzwzwykcyhrwzwdeccxrpbttxvytmoivpjqzjwzcubnih...
output:
2
result:
ok 1 number(s): "2"
Test #35:
score: 0
Accepted
time: 0ms
memory: 18456kb
input:
tahusokxrujrbapbsulumbwcfjzzzziuzkaugtbcbnagcumjhxsaviyvyhqyaqeofyhmvudfrcrilucxtmxcfxvitcnuewzrklomacjtlnaaqgdggsvgyeaekjkafkhxctzdegcyzyhxfhofrnfjzftaptakncmcrzcmbwcfyxrfusamnodjnpxojfkrjqhjcmwklthpqxprurnuakjrqtnublaudoesgnjxadexgfvkprzqmsrvimzxvjgrbvzozzsfaojbgqehkvrokvbvwgcevqbyimfjuqtfxbkhayhd...
output:
1
result:
ok 1 number(s): "1"
Test #36:
score: 0
Accepted
time: 0ms
memory: 19284kb
input:
aeopmcmwrhguiwffrvfmijwdutvhvzgdvuaflykkwerynjfneclfafkusghbszsjmynmjslvcebzylkvvxasdftmbbemukudtizeuumhaxscvqnonborllzznvomcuifdfyhhgdqsbhuiinxqtdhkqvkngsqegfnljyyvwzhxpnaffajjcmkcdxqvxfwivskhcolqbyqyugnpmgykpmrrihxblvjpkzegrcietflntaneaphunzzdzcclkquwjsdrpdoldvqkbxgidnplshogjbpxmygdsuopaamuxkzcdtt...
output:
0
result:
ok 1 number(s): "0"
Test #37:
score: 0
Accepted
time: 0ms
memory: 21640kb
input:
joodulqotoczxazdkimprykjknkmujncmpycodzpwtbjrrbndhgbxxekaybkzsigroqqrpvmhnwhjornbmkfyyzfojojevqzwydgafhnxqtnokzoxlorvslfdaluinzespzbxhkdcramydwulbfwsowfuniegxqmmvvdajqsrkbsctkrqlqdiahwtmqcqvbrzvzkvdxlshpcjiwfcdwqtyxagpdblwrslmqzkbfjyxrhjttmrxpkcyyzuqbmjehhgqdfygovbzvcbqphkhvvlluijvktffqavvylsiwsraco...
output:
71844
result:
ok 1 number(s): "71844"
Test #38:
score: 0
Accepted
time: 0ms
memory: 22808kb
input:
lybjbzfknkyvboxthhvnvaqjteuzpcmjbjnjwfzxfddznavcrqccwbnictqsappurkwggncfaglunyeuktnnchyqbuiteeviwtqzlxhhhbrmfqyncrvznevlrunvxvfohrwphfwknsaapivwjvelupynxmatpauycjcyzimxedxpftlmqwftrndnkrrugysbbejxxcnqcxtbvhdxembcesvxioprsiknxudktqlhizesohqupjxccndcqjualdjlijenxmtqxoihjiviyutlnxznblyppdqiqrtedsymvwme...
output:
89902
result:
ok 1 number(s): "89902"
Test #39:
score: 0
Accepted
time: 2ms
memory: 10096kb
input:
lzvkohlegolcyfulxkpwzxojhfkvhtlgfdotseoehggarsalneqxjsbiighvikqewqgwbwqqlbztlknqsajhajohaldpuinwhruamtvgcghtemmketzdfokydkbcmnuzlkvsswauqdivjlzsmbovlapjgvhkkpjtqxpsmielrdquvqahzgiusojmufnaxbjumswmizbpfpvntbrngcvpnqkdctxzkupycbpiqstcabnrqfrdezcwybqdjeedeforkjgrxvjtmycwqfltcxjvskxjrxtkmkoftquzrneaqjbl...
output:
20798
result:
ok 1 number(s): "20798"
Test #40:
score: 0
Accepted
time: 0ms
memory: 21696kb
input:
oqharueledfczgdcgyweucrrcongczqtkmgpdwnidncwjkpgplxiloytgaxlzzcywijuzymgpjicddtrpigkgpfqsjkeqxvjvjaxhytivhwnqbdwncumlebgfwpybdqlfmbktataxxughlselpdqvwnrsariittqowwbywthpnghmbaqsewdjyfppyqikoxrqlflmvyfhpmrmswwqnpucjtlmpvqkvgvogzhtitjgiaukfhrgrrbvnxvejolakkdfipqguuzrwgdlydsrostddyudcsssyetzjjafccmjugh...
output:
71962
result:
ok 1 number(s): "71962"
Test #41:
score: 0
Accepted
time: 0ms
memory: 19000kb
input:
udrqbueehmjmsocxltmfzejwlbilsrhgeijeruvdeuxpxxiplvwffhhymxzppqvknrjkxvmsmcjrdxonlgmdjdltirmtyhfkjvfkqazjtkiwyfboofyiyyijvkhauxtdbewcafqtzlctdjdjyygdmbtkqqnuhwzztywhzqfxrxloqgwbqmfmbsxevpdpkkkjpgxbybmxkxqleoklasrzeayflsayczxjweazmurayimyagqltxdczeddahkzultipvnviubmwzhumlcdjayluwknwzcfrwpauksdjbjruime...
output:
10026
result:
ok 1 number(s): "10026"
Test #42:
score: -100
Wrong Answer
time: 2ms
memory: 11988kb
input:
nputuglbamiqdmdffqzlvftxjpborzpsurbcclrvberfqbvfzypsfcdqdlsjzyeizgbwswegoppffvflsdezkhgrqmvmlonemezckisygyquzvtmsmrbqmqzmydrzuhowoxjiqzrappaasqrjfjhatgincwdbmtgyhlcfxhxaccdaazfcwvebruexghyjvtasrhuosuhcsmqycffivcxrzmihnojalgogeuusgrfuguyczbqulmehxbtboeuwksjaezaqoerebnxokovxtfdcrhbqhrwxlvmmypfqreggzfo...
output:
32390
result:
wrong answer 1st numbers differ - expected: '32389', found: '32390'