QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#275289 | #7262. String Modification | PetroTarnavskyi# | AC ✓ | 1ms | 3856kb | C++17 | 892b | 2023-12-04 16:18:13 | 2023-12-04 16:18:13 |
Judging History
answer
#include <bits/stdc++.h>
using namespace std;
#define FOR(i, a, b) for(int i = (a); i < (b); i++)
#define RFOR(i, a, b) for(int i = (a) - 1; i >= (b); i--)
#define SZ(a) int(a.size())
#define ALL(a) a.begin(), a.end()
#define PB push_back
#define MP make_pair
#define F first
#define S second
typedef long long LL;
typedef vector<int> VI;
typedef pair<int, int> PII;
typedef double db;
int main()
{
ios::sync_with_stdio(0);
cin.tie(0);
cout << fixed << setprecision(15);
string s, t;
cin >> s >> t;
set<char> se;
int j = 0;
FOR (i, 0, SZ(t))
{
if (j < SZ(s) && s[j] == t[i])
{
se.insert(s[j]);
j++;
continue;
}
if ((i && t[i] != t[i - 1]) || (SZ(se) > 1))
{
se.insert(t[i]);
continue;
}
cout << "No\n";
return 0;
}
if (j == SZ(s))
cout << "Yes\n";
else
cout << "No\n";
return 0;
}
Details
Tip: Click on the bar to expand more detailed information
Test #1:
score: 100
Accepted
time: 0ms
memory: 3844kb
input:
snuke snukent
output:
Yes
result:
ok answer is YES
Test #2:
score: 0
Accepted
time: 0ms
memory: 3592kb
input:
snuke ssnuke
output:
No
result:
ok answer is NO
Test #3:
score: 0
Accepted
time: 0ms
memory: 3840kb
input:
babaaaabaabbabbbbaaabaabbbbbbaaaababababbbbaabbaaaababababaaabaababbaaabbbbaabbbbbbbabaaabbaaaaabbbbabbabaabbbaaabaababbbabbaababbaaaababbaabbbaabbbababbbb baabbaababaaabababababbabbaabbbabbbbaaaabbabaababbababbaabbbaababaabbbabbbaabaabbababaababbaaabbaaababbaaaabbababababbbaaabbababababbbaaabbbabab...
output:
Yes
result:
ok answer is YES
Test #4:
score: 0
Accepted
time: 0ms
memory: 3620kb
input:
babbbaabbababaababaabaaaabaaabbbbabaabaaabaaaabaabbabbbababaababaaabbbaaabbbbaabbbaababbbbaaababaaabaaaaaaabaabbbbaaaabbabbbaabbaaaabbbbabbbbaaaabaaabbbaaa bbbaabaabbbababbbbabbabbababaaaabbabbaababababbabbaababbaaabaaaabbaaababaabaabaaabbbbabaabbabbaaaabaaabaaaaabbaaabaabbaabaaabbbabbbbbaaabaaaabbb...
output:
No
result:
ok answer is NO
Test #5:
score: 0
Accepted
time: 0ms
memory: 3616kb
input:
aabbbabbbaabbbaabbabaababbbabbbbabbaaababbabbaaabababaabaaabbbaaaabbaaaabbaaababaababbbbbbbaaaababaaabbaabbbaababbabbaaabaaababbbaabbbabaabbaaababbaaabaabb abaaababbabbbabbaabaabbbaabaaaababbabbabbbbbabbaaaaaabaabbbbbbbbabbbbbabbbbbbbbabaaaabaababbbabbbbababaababbaabbaabbabaaabaabaabaabbabbaaabbabaa...
output:
Yes
result:
ok answer is YES
Test #6:
score: 0
Accepted
time: 0ms
memory: 3620kb
input:
abababbaababaaaababbaaaaabbbbbbbbbbabababbbbbbbabbaabbabaabaaaabbbaababbbbabaababbabbabbbaaabbaaababbaaaaababbbaaaabaabaaaabaabbbbbaaaaaaaabaaababaabbbaaaa abaaababababaababbababbaabaababaaabababaaababbbaaabaaaabbaababababaaaabababababbabbabbababababbbababaabbbabaabababbabbabbababababababababbabaabb...
output:
Yes
result:
ok answer is YES
Test #7:
score: 0
Accepted
time: 0ms
memory: 3624kb
input:
aabbababababbbaaaaaabbaababbbbaaaaabaabaabaabbbabaaabaabaababbbabababbababababbbbabaaabaabbabaabbababbaaaabbaaaaabaabaabbbbaaabbbbaaaabababbaaaababbbbaaaba aaaabbaabbbbbaaabbaabaabbababbabbaabaaabbbababbbbbaaaaabaaabbbaaaabbbaaababaabbabaabbaaaabbbbbbabaababbaabbbababaabbbbbababbbbaaabbbbaabaaabaaba...
output:
No
result:
ok answer is NO
Test #8:
score: 0
Accepted
time: 0ms
memory: 3592kb
input:
aabababbaaaaabaabaabbabbabbaabbaabaaabbaaabaaabbbbbaaaabaabbaaaabbaabaaaaabaabbabababbbabababaabbaabbbbabbabbababaaaabaaababbaaaababbababbbabbabababbabbaaa abbaabbaababbbabbaaabaaababbabbbbababbaabbbbabaaabbabaababbaabbaaaabbaaabaababaabbaabbbbaaabbbbabaabaaaaaaaaabbaaaaabbbaaababbbbbbabbabbaabbbbba...
output:
Yes
result:
ok answer is YES
Test #9:
score: 0
Accepted
time: 0ms
memory: 3500kb
input:
bbbaaaaaaaabaabbabaabaaabbabbbbabbababbbbbaaabaaaaababbbaaaababbbabbababbabbbbabbbaabbaabbabbaabbabababaaabbaaabababaaabaaabababababbbaaababbbbaaaabbabbbba bababbbabbaabbaababaabbabababbaabaaaabbbaabbaaabbabbaababbaabaaabaabaaabbbaabbabbabbababbababbabbabaaababababbaabaabbababbababababaabaabbabababa...
output:
Yes
result:
ok answer is YES
Test #10:
score: 0
Accepted
time: 0ms
memory: 3616kb
input:
abaaaaaaabbaabbbbbababbbbbaabababbbaaababbbaaaaabbbaabaabababbaababbabbabbaababbbbbabbbabaaabbbabababbaaaaaaaabbaaababaabbaaaabababababaaaaababbabaabbaabab abaabaaaabbaaaaabbbabaaabababbbaabaaaaabbbbabbbbabaaaabbbbaaabaabbbabbbbbbbbabbbbbbababbbaabbabaaabbbaaaaaababbabaaabbbabbabbbabaaabbabbbaaaaabb...
output:
Yes
result:
ok answer is YES
Test #11:
score: 0
Accepted
time: 0ms
memory: 3836kb
input:
ababaaaaaabbaabbbaaabbbaaaabaaabbaaabbaabaabbbbbbbbbabaabbaaaaaabbbbabbbabbbbabbbbababaaaabaaabbaabbbaabbaababbababbaabaaabbaaaaabbabbbbabbaaaababababbbabb abbababaaabaaaabaabaaaabbaabaaababababaaababababbbbaaabababaaaabbbbbbbbbbbbabbababbbbaaabababbbbbbaaaabababbabbbaabbbabbbabbbbbbbbbbabaabaabaaab...
output:
Yes
result:
ok answer is YES
Test #12:
score: 0
Accepted
time: 1ms
memory: 3568kb
input:
bbbbaaaaaababababbabaabbaababbabbbababbabaabbabbabbaabbbaabbbaababbaaabaabbbbabbaabbbbbababababbbbbbaaaaabbbbabbbabaabbaaababababbabbbbabbabbbabaaabaaabaabaaabaaaaaaabbaabbbbabaababababaabbabababbbbabaaaaabbabababbbaaabaabbabaaaaaabbbabaaabbbbbbaabbbbababaabababaabaabaaabbabaaaababbabbbaabbbaabababa...
output:
Yes
result:
ok answer is YES
Test #13:
score: 0
Accepted
time: 0ms
memory: 3560kb
input:
aaaaabbbbaaaabbabbbababbaaaabbabbbbbbaaabaabbabbaaaaaaabababbabbababbaabbbbbabaaabaababbbbababbaaabbbbbbabaabbbbaaabbbbaabbbbaabbbbaabbababbaaaaaabaababaabaabaabababbbabbabbbbbbabbbaabbaabbbaaababbaaabaaaaababaaababbaabababbbaaabaababbabbbbaabbaaabbababbbbbbbbbbbbbaaabaabbbaaababaaabbbabbabaaaababab...
output:
Yes
result:
ok answer is YES
Test #14:
score: 0
Accepted
time: 0ms
memory: 3564kb
input:
babababaaaabbaabbbbababababbbabbabaabbbaaaabbaaaaaaababbbaabbbbbaaaabaababbaaabbbabbabaaabaabbabaabbbbabaabbaaabbaaababaaaaaabababbbabaaaabbabbaabbbbabbbabbabbaaababbabbaaabbbbabbaabababaabbaabbbbbbabaaaabaabaabbabbbabbaaaabbabaabbababaabbabbbaabbababaabbabbbbabababababaabbbbabaaabaababaaababbbbabab...
output:
No
result:
ok answer is NO
Test #15:
score: 0
Accepted
time: 0ms
memory: 3628kb
input:
abbbbabbaaaabbbbabaabaaaababbaaabbbaaabbabbbaaabbbabbaaaaabaabbbaabbaabaabbabaaabaababaabaabbaaaabbbbabbabababbabbababababaaabaabbaaaabaaababaabaaaabaaaabbbbabbbabbabbbaaabaaaabbbabbaabbbbababaaaabbbbabbabbbabbbbbbaababaaaabbabbbbabbbababbbbabaaaabbaaababbbbaababbbbbbabbabbaaaabbabaaabbaabbbaaabbaaa...
output:
Yes
result:
ok answer is YES
Test #16:
score: 0
Accepted
time: 0ms
memory: 3508kb
input:
babaaabbabaaabbaaabababbbabaaabbaaababbbaaababbaabbbabbbbbabbbabbbabbbbabaaaaaaabaababbaaabababaaaaabbbbbbbaaaaaaaabbababbabaaaaaabbbbbbaabaaabaaabababababbbbbaabbbabaabaaaabbbaaabbabbabbabbbabbaaabbbbbbaabbbbaaaaaabbaababbaaabaabbbababaaababbaaaaabaaaaaababaaabbaabaabaaababbbaabababaabaabbaabaaaaab...
output:
Yes
result:
ok answer is YES
Test #17:
score: 0
Accepted
time: 0ms
memory: 3568kb
input:
babaaaaaabbaabaaabaaabbabbbbbbbababbaaababababbbaabaababaabbbabbabababbabbbbbbaaabbabbabababbbabbbababaaaabbbaaabbaaabbbbabaaabaabaaaaabaaabbabbbaaaaaaabaababbbbabaabbabaabbaabbaaabaaabbbabbabbaababaaababaaabaabbbabbaaababaaabbababbbbbbbabaabbbbbbaabbbababbbaabaabaabbbababbababbaaaaabbbabbabbaaaabaa...
output:
No
result:
ok answer is NO
Test #18:
score: 0
Accepted
time: 0ms
memory: 3560kb
input:
abaaabbaabbbaabbbbbbbabbabaabababaaaabaabbaaabbabaaabaabaaaaabaaabbabbaaabaaaabaaabababbaabaabbbbbbabbababaaababbaaaaaaaaababaaaaabbbbbabbbbaaababbaaabaaabaabbabaababbbabbbaababbaaababaaaaabbbaaababaaabbaaaabbabbbbaaababbaabbbaaabbbbbabaaabbbbababbaabbbabbbbaaaababaabbababbbbabaabbaababaababababbaba...
output:
Yes
result:
ok answer is YES
Test #19:
score: 0
Accepted
time: 0ms
memory: 3628kb
input:
babbbaabbbbabbabaaaabbbababababbabbaaaabaabaaaabbbabbbaaabbaababaaaabbaabbabbbababbbaaababbbaaabaaaaaaaaababaabbabaaaabbbaababaaaabbbaaaaaababbbaaaaabaaabaaabbaaabbbbbbbaaaaaabaabababbabbbbbbbaababbaaaaaababaaabbbaabbaaaabaaababaabbabababbbbabbabaaababaaaaababbbaabbaaaaaaaaababaabbbaaaabbbbabbaabaaa...
output:
Yes
result:
ok answer is YES
Test #20:
score: 0
Accepted
time: 0ms
memory: 3568kb
input:
aabbbabbbabababbabbbbabaabbbabbabbbabaaabbaababbabaabababbaaaabbabaabababbbbabaabbbbbbbaaaabbbbababababbaaababaabaaabbabbbababababaababaaaabbbabaabbbbababaabbaaabbaaabababbbababbaababbaaaabaabbaabbabbababbbbababbaabbbbbabbbaaababaababbbaabbaabbabbbbbaabbbbbaabbbbbbaababbbabbaaaabbababbababaaababbbbb...
output:
No
result:
ok answer is NO
Test #21:
score: 0
Accepted
time: 0ms
memory: 3596kb
input:
rjpasogyjvbvvoktzfxbubmoycqgngssowfkszviaqvjmcephxfbuowkjniqeqadlqjotalrnpfzricoivfnuqxkcccnxvowexhhosrhubzdyhxedxjjnatmrbenwnuomtdvrxgnhuopydydddvxwvzjpmktjlrdedkpeumyesptcmvgedxqnnsohafwlorhcvhrtjguqoqfegkgebcsgouhbxfksqisyzchowltjdxzwqkbnrsmabzalehtebpxxnlozehchvrglxtxcczzubwnafykgmpxkjdjdoazruxs...
output:
Yes
result:
ok answer is YES
Test #22:
score: 0
Accepted
time: 0ms
memory: 3564kb
input:
oddoybpchccvijeqmtjyipytwfnebyntyvtpvejxxowwkbqlpevtzchzdxorfoafemqvyjwzjqlapflaacnjtwaambhacyhbeviigsrpxifmdtxapdpbrzdmjtmqiwzzppkydeegxtmcxlnnekmwfkimwrzppmptvgyexnziaoaaypuaufkwtglfzyxoaedyleixooeexjkpxtaznmarglrfpcvlegrpwijblhpkkejkyyjtkplsxteisungdqayubuwzmcuhpvjftczzknoglujdvnlutejdhokuzmmtijg...
output:
Yes
result:
ok answer is YES
Test #23:
score: 0
Accepted
time: 0ms
memory: 3608kb
input:
xuydwbcmtlayumrmsiuueutqhonbkvywecdorvgsqobcovenbvbdaodzcvsmryttmwgpujzonvsdogpdykordfxuotbbxziikuyihjisixjodjwoefwwpzebbhotjxdtsulbunyqmagqtyavwmafxspumnqnpswyweorymfnrordzzynmidfzdflsvirdwyxkevlwovfqmrpzntuuwqkjrepvasnlehkcjqdmfxledwcpauuputevamycxgcrpmyizidyqvybvjntpagaaakzgvmblbirjaljbwshipixayj...
output:
No
result:
ok answer is NO
Test #24:
score: 0
Accepted
time: 0ms
memory: 3560kb
input:
unsxzpjewyirblkzgusgtkgmtyyyuposeiwgthbqhsmijougetqlujltwlcnmfnwaaqihofkdlebctbkteneipincvhwlmyxdqioflenlcwqrbtmemvyjondlxnfvjbpxsiwqtlvmwmvhymqbcnralxaadvghigaiowgbggrqidmqyesweqqwpdmqvtnmoiqhhmtyooyscvxkuitniqlfekwtkhfyawwxsaankxahknwulvymdwekodqjtprzdkxcerbndlvdragvpnbvvclfhvczijtkqatzjxyfzfeyzoh...
output:
Yes
result:
ok answer is YES
Test #25:
score: 0
Accepted
time: 0ms
memory: 3624kb
input:
wsqeywynfwqjynejgdommykqnebbszcifsenlkgtjlkhodrshlsdmwhfuhvktijpxdebjvygzyvociioivrprknkrpnfuvydfbktnwupiuhlpqbwaveixdaggiqzhjjurcdqqxudkjjdhljaeivgtyksprqvqqikdlsmocvohhykbcrwcwykwykivdnvyskpxlntrpxufdkedcvhmlfriirwemktcmrgtmwqeeztbwrjjnbatgakhnlxsxeyihoafubkgdoyyozayinbaothgadiqplsgpuvurgnxxqqhpfs...
output:
Yes
result:
ok answer is YES
Test #26:
score: 0
Accepted
time: 0ms
memory: 3660kb
input:
noacdjquzfvdhpmishqcduvxdxegpgyunnpshsfjqctcrkfwviuoxslpznxqksbhzailaghqdoyrvprwoeeipxdyjjmrtdqbxjdgqajrahluokuhtubdrbhivzqvwgbftvkcsknivjqxrnxvyjgwgsjshkbljtxhdumzhqmwnlpqkkxdcxxfpplibqesikbsdlbrhwcevmfnwvmuhcuybxtmuqdmrnxlodsbwmlkucemteysmigwymiqrsccwwfowyfnxaewwzxmzaldcamoicokqussudabzymdxlsvvyjw...
output:
No
result:
ok answer is NO
Test #27:
score: 0
Accepted
time: 0ms
memory: 3616kb
input:
hhetrzeyrtvinztqqszhgppllyzzuyrfvtcziiunmtzyjmjcsoyqlifcjpepfjvwqsdxghogskyvqxihkxxskkssggmunjjxzfmfsbmxmifkbvuclrkjgivkkmdifemfifrqudoqtiidvwwcllyyabriduitthofdmcgizqwxxmueiezobqnqbkkweyettbnpcycsdkwkxedliapnrkxylohcsvugcsnskxmssrexpjqbnhgdpsxprgptzndljychdmaawhcnpwxavunwpdayfexizgccwdwrnbnvcixibyn...
output:
Yes
result:
ok answer is YES
Test #28:
score: 0
Accepted
time: 0ms
memory: 3620kb
input:
ztjxpjjnbldssbglkmncptynicwspotxrgmertzalkiattjwbowxivnvcrdrbaygwuibazqzlfihrlgtqdugbzwocxlwjsgpzuyzdviczkdieaijgiagbjajyrwglayaatpfqglrdmebylfzvrstubbqxskelfkodpznbbicreevgjarccqpfmhxsgakdtbtymhxzaoxyvkidvljwutwwwebrtlsbhujdhumqrfcwlqkdgkghvwhxdjtkodvrqwbqhonjztumwuaipygncfnfohodtrlceqqagxqvinbuobz...
output:
Yes
result:
ok answer is YES
Test #29:
score: 0
Accepted
time: 0ms
memory: 3556kb
input:
dgppwjunfsuzqlqdevvzbiapopczqikjlfsimjwcytoblxewkxmkjjvxqyulszzgpnlrwoycbnpnqjineztlgafzzuounxxazhtyxmapburkglfntgardqklapjberdyrcilkfoxcvrknybocdvyzifjgphbadmvwgzcoutpqlcwksjomlwavjdprruktxchcvnowhktegiveylocgtmaasvtvpupelkssqtwumyfopntrrlniwfbfezsrxwhjgghosndrqpbymqrljdcphhatxypdyrwnmulhddnebbuvpe...
output:
No
result:
ok answer is NO
Test #30:
score: 0
Accepted
time: 0ms
memory: 3628kb
input:
lyajbptvgbpzebanuelrgazkpxwfmybqxgntcsxvynmcfcvztctuulwbxosffwpxclbofshgmormuehvvtmxvrvqcjbxtgpshsbtiuudkcmlniecabenxbgcrhqatltdgxhodxrkdxxnczpbqqzejhjfdehwcqfvjelbdxobnmkrptdmskqjhtusgwabyptmiukhbxxhtwxyqggznwylgeljmpyupuvdrfvpghtmebcmornzphdkffcstaeiafmuuexdftflizyglkydejpitcwuquybogrzumcpdjprhvdy...
output:
Yes
result:
ok answer is YES
Test #31:
score: 0
Accepted
time: 1ms
memory: 3564kb
input:
cjyzfwkcwdowuxwvcrrqblotqfnboaoxxujcpoopmopiihzinolvtyvifofgfvlizjtsklvwzoghnescciazmtqbnmuslsvxslpsxxmtaoozgmpryhywurxrgjhcujkwegomcubegbhsulchhwqcfetodgxjpmtgwimcinazhdevdvkbfctjdadrmuucdsdnhnmnxxydbeqhajqshlbmrsemjvsneeapjquczmnupbhizeyyzxwiqnetllyqivmfjqgzfzixjhzjizljyrhrmtntnenkiqwwacxwgbwxxoim...
output:
Yes
result:
ok answer is YES
Test #32:
score: 0
Accepted
time: 0ms
memory: 3672kb
input:
kzyqvyzoguyulotbhxbpioedgvksklujedcvcnimppsfwqqxqrdccrobjmkucibfepizokistsqrhlgeqyluvvackmowslhenpumonesmxumrcnleghjzuilgtkdibdylbstvovfsaglilxpxjdhfccmrlqlgeauqerdzsnswaqtmgxkdwtlhqnhzpbmhnekffqmijnhflqwqkhdmoskthtstcqljauwfmllbcsintjaxswmnpwowbwnawdhrprwgzmyqdmppvrgvypbsyqlxrnykrwwforejdedappaugse...
output:
No
result:
ok answer is NO
Test #33:
score: 0
Accepted
time: 1ms
memory: 3568kb
input:
zbddmwisiiyazyosvavyaphjuekofzzdbbwjckkbhzbubuuadrusxhpguruynagrnannpjbzdcqaljsljefcwqlunjgeyfsksoqthibhqaiynzwumeukhsghpbkoeljcpnpnxapgbonwhtwjwljyagikwmecglhgeiljqfnydsshuonixnerdurhzirabxrieevvgrtmyuzkrsbzuhibeyizdsofnnyadrdvbdbihjobyajszyjywasxgaltsucnlybueanuivemasyfgoklhibfiukjssugrwqczofgbhee...
output:
Yes
result:
ok answer is YES
Test #34:
score: 0
Accepted
time: 0ms
memory: 3632kb
input:
jtlhlcvibpsqskueotsbibjudctrdmyqvyhjkvjgvxhomdwagawiefcskhhzbrksusaurhwuomwbnmmaebudrpofmlyzvzqxstlkfizasuxjrfmeygtpuhjqjhwvedipdhmwgkppavarxxnubezpwjhtimuhgtazortfmgmwbjlojbmzavfpttzurwrljprkueyfmwgrxdaqzdtwbsevbxojyrhnidxixuvtdumdlcxlowueoiemstqoceqofhfviywglwugyqhsnqijrhjzbmebmkryddjebooyiwucyauy...
output:
Yes
result:
ok answer is YES
Test #35:
score: 0
Accepted
time: 0ms
memory: 3668kb
input:
jrxwaykcasdaoerevupskjgbhavpcfxiebaqlujrdhgjjsykslsnsjiualfhlygvajmjafwdecyxtcrzfvmqltljqjatkexrmhnqedrixzzcwohhacqokjacqsunwqevtelrbacnauqgxvlgntztzyvwrkhtxziwbalcxfbwruceuwdbczvqaimtjsibhztqcsqyhrenobdvhsxcyaxptasscvznwkvbryojoobgeiojbrgnhwckaogazxaplvxkfydoawvdditybpagueysjwyxlstyjzmamwwotquuclil...
output:
No
result:
ok answer is NO
Test #36:
score: 0
Accepted
time: 0ms
memory: 3636kb
input:
pbtthusbywagdrlnalykzfecogjgzeuoqwyddktqqtyysifulfygjjbutncmqmjghlwfjdroftzkrcgewawfkgackqupjovojzmgfbzgoqejfhrrxqmymimdunrkctlmtbkochbqqvyfvudqrtloalcpegyjkfpsnqqtckhgzzfgthbnassvhccjijqgvftehfzagurdjurwhrvarwqxdietywtckppcbefihuhombdamhtizpjetfzpwifibjhuhlvltpzbbcyvjsookshjhjoncxlamyhplfedmhkwplkp...
output:
Yes
result:
ok answer is YES
Test #37:
score: 0
Accepted
time: 0ms
memory: 3572kb
input:
jribphgsooltytdnjnegcemenjrodhypxhsbhtnhfswoxalbrrbifeuurfccapupydeuohlrhfkgvvpkvwrfjizmssuivodlqxmqdlaixuzljvreazizwnldcmgfqvfvjoogctrjwwlnotgtaihaylkhbkerzlcmchrpjpzsoxwlgweopjsttykziirwiutygnanvskbfrximfrnyrsgopoxossjmghqzvgozeiggzdmunqbutatajpflqllqcnymccxrdelvakmqykllnjwzcbcbmgiwxlamfxrjubepybe...
output:
No
result:
ok answer is NO
Test #38:
score: 0
Accepted
time: 0ms
memory: 3856kb
input:
tisnocqgkcpjhfnedirtxwgmzggbjanvclpvkoivkofrtczndpovcizfbiztugjsjnddxnzkpqjsdmasgjjuwvzhzkznkqeexvxxcpcwnowqitqljymspnzygaznuvbjaqsbnxuxhmkmimzkmpnxacttacpeshzerguwjesjglcivushpsqievtvhcbbqngdytzwdlopojspavyygnsuvzqecmlgmqrqbowzkiielycasljhtgfjdgbrantdeiilygeydfvyxhmetphvalanwmoetvtxmvjqvxvwbhrhxjku...
output:
No
result:
ok answer is NO
Test #39:
score: 0
Accepted
time: 0ms
memory: 3616kb
input:
effcibjafjjaehakiaihehacihihdkdhffdjkiijjkicdeaggddhbckkbkkiccfifdbiebfbkceejieghhagfahaghfdejciahgjhhka eibfgchdaacdffcehbejhhcidfkdkakfikiegkjhidaedhbkafkecdeadjgjaijjdfcfabfhaehfhadbcegcahedakfiekafbdefjjkaejaieacbckagfdefiddgaidfijjjeadfchgakceddjhadbfbedhjkibajjegkjfdjaigkekgfikjbkikhkgdeahgjkb...
output:
Yes
result:
ok answer is YES
Test #40:
score: 0
Accepted
time: 0ms
memory: 3616kb
input:
faafcjaadjbefhhiakhdbfkccbcickkjdekbajahgakigiiddijabfkgjijbcgdgibefbcghgcjkfikebekbicegjigcegjfafgchbhf fbdjfdgiikfbkfhdjcaajgagjcbifegebebcefhhggcabjkbdakffkffdbijkbhbafehkhcjjgcjacdebecjajjffiafajfjagjihijigdhkakkahdkckcdkkgbcgkddjigikcdfijiikgbddhebghidafjbjdchchgjckbhadkajaeggidgedjkiikbdeaikjj...
output:
Yes
result:
ok answer is YES
Test #41:
score: 0
Accepted
time: 0ms
memory: 3552kb
input:
ibiddadkhgcgkckeiihbicjhjaihaafkiddbgdgjkafcfcdbcbcbejekicifbdkhkbgdjhccchiafgihjacdajgifegckjakjhaiibde ghiecfeikdcabbgfhjecagekibddcdeakfdbeehhdedicdfkgdfebiadkfkahahkkfbekchhaedfbbkjbffjigdaeahakhbgjhhbfajcjfgacfdjgjjgekjcgiibkhieckiehdkcihfgcgidgdbkegaddakgejbkjfgabajidabceefheigdjdbeikgagjkdfff...
output:
No
result:
ok answer is NO
Test #42:
score: 0
Accepted
time: 0ms
memory: 3556kb
input:
kgjdahdecficbcdejjaajckbadacibdkggbbjiecbgedbcjbegfjbjbabaghcdbfibaiakakkdibffehedaggbkgcfedbddjgjfjjcee kfiidbefeiegbhjdggkgebejbjhddkgakgfkghjdcehcifgdbgddggjekegcabdagbhdcgekdakjdkcbdegfaacfcgdehjdajikjhfgebgabhdaehidafeegaaedfhgeecgihahebahgajjafagkcjgfjbddjkbhdcejiegdgajeeeifdcecijkaejegidbbgbj...
output:
Yes
result:
ok answer is YES
Test #43:
score: 0
Accepted
time: 0ms
memory: 3812kb
input:
ffkeecbjcjhfjjcahiadceeickkibkddcbajekkckkghdfdiiffciahhdhjdhjfjfiddjggcfbahikjjcggaaeaijggikfffcaeijhgk fejjhcckaeihijehbdjdbeadeeagehjkkeafedjafkfjihkehfkfdahgjeefeeeigfbedjjceahgahcjkabdgkihdicifhecbbkdchkdfhbkfbcejdkdhcbjjgjiabfhchkhghehefbfjkcdfjgdekkefgfhkhihgifkdjkigakjdbdfbhdbiiihchjeagiaiaa...
output:
Yes
result:
ok answer is YES
Test #44:
score: 0
Accepted
time: 0ms
memory: 3500kb
input:
cgdjkbghcgdggddbbjifahdkffkhafigfihbafkfffcdbffidjfiebfadgbjgahkikkdfjijggfgjfkgaebdfafacikgahjeakiddkhd ihijakjiegcckjaeccgbadhgiiebihjjhjjibkgajjhebkiadkdekgijggcjfckghjcfccdjbkcjghefkedakecefbbadihgiecjjgicjgeahgfbgkjacehejebcaidiehfaggjhkbkcefhkeichehfghkfbffjahfgajhkcjfabfffiejgdidjecihdbkdebck...
output:
No
result:
ok answer is NO
Test #45:
score: 0
Accepted
time: 0ms
memory: 3776kb
input:
fhgcdjhcbfggcdgkjejkeedeaibjiafiggbfehkfeakckhghiaebabcgjdkggkkbfgehiehkgcfeggcaghjhfaeehfdjhbhahfebjbej fajcfkjheiihgkkgdeeiffdgkiehageehabigedajkfgbhbigjibhcjchiabjfcdchcdjbfaecadechcgjcgadkajeieeeckdifbeadhggjibgedchhdajkgkjcifakceebahcgkfkaiibhegehckghkjkbdgehaafkkfefickadgcacbefckakfgjbhagddekh...
output:
Yes
result:
ok answer is YES
Test #46:
score: 0
Accepted
time: 0ms
memory: 3592kb
input:
kbcihkkciekhgfdbhiiddcfegejhkfghfeaebjjcjcgcjcchhccfijghdbkbckgfeikakghekeckiidajcjfchgebdikbbgkdehebagg kgcickbagbfggdhckficagkhecgfheaghijfickjjgghcbhhbedakchcdjaejjbhebgkgaicdbgededfbihgjhakhgjdhfbdckbebfhhjgghgkahgjckddkieciahhiccigcijhfffacfbkkfddjcdidaajifjjedijjbdbdaebgacjaheiekfhkdedadjfhied...
output:
Yes
result:
ok answer is YES
Test #47:
score: 0
Accepted
time: 0ms
memory: 3616kb
input:
hhjgikdgghhcfadgfkgjcfhdgeecdbbfhbbbidchfbhbaiadbbgfgihcicfihhijjekijgdcdegdedjjiaabfhidadjhcihkeaajhika fkajhfaidbcicdaibahibahggijaehkaeedkifcjddakhabgcckhfeejeihjdghdkehjedgikhckdjgiehbediaficceakdggkeagdjbhgkdjicjdheeajbhedchcakakjikajbecaibikibfhkiackjkfggfekciggfahbgjbdgidbgdhkfjcekbcbhkkkfaij...
output:
No
result:
ok answer is NO
Test #48:
score: 0
Accepted
time: 0ms
memory: 3560kb
input:
gbdfagadjgcagekhfdfffieelgcfhajbecjlaflebclcclkhlgfliljikdfjlaklfkkddbfelehgfdjlhgifdebkjjllgbhcfkhebkdibdhkeeijhhdbfgijgiikiddcialldiagllkijdkekfakhjcfdfahfgdaddcdaieeliidghgiebfedfilhdiajljhfhbiijhfdgjlkidbbcjillfckghlfahdcbcgalcckkffblgigeefgjbgbdjdaiiicldjdcdaehfledfikdddjfbhlikfceahgdlcblbibged...
output:
Yes
result:
ok answer is YES
Test #49:
score: 0
Accepted
time: 0ms
memory: 3568kb
input:
hfijbhbdfcibjhgcelldjjfkjbehblfgfkllcfjagbgdcblfdjeiceljccihjkihiakchficccljhflaiejgkibgfdhijggbjeacljhcbiafgbdbjaijfbbjegchjlhfgbfiglbhheigfdkdkghjedfikcdkhghffhcdeblfjedehdedjfjckkebhladjghijhbljclakkcaihjhafgblhglebibkhkhdeijchlbgbeejbgfkkdjhjdkafejcbbhbgldggkhbbbgfegblfhhljechgcbfjcfjbelfgfcadjg...
output:
Yes
result:
ok answer is YES
Test #50:
score: 0
Accepted
time: 0ms
memory: 3616kb
input:
hckkkldeeffkadjhlaiihcjdifcbgbdagckkfjjelclabadaiheahkhejfelbjjjalfclfljcaehgdjbdcgfheagfcfklkclbfaaebaaieblkhjaclbhcejbfbadjfchcfbdehiajfeibebaigkhleajaiejfikefcgeikdjfhdlhgjffbcajcllgfcfjcfgiadjkhcljhbhfchacccgjbggdhabjadbkhkifaehadkachfikefgbjlkalflldijaajaklfhgbdggfcjflidageladjcbafdicdkclbjibdc...
output:
No
result:
ok answer is NO
Test #51:
score: 0
Accepted
time: 0ms
memory: 3564kb
input:
ebgekgkiiabghddifgaeafbhgachhcjcbgcjlcccilbkfhlhkiciffkabiegigiekbllahfjcaeekalikheifldghbekbablcjghablkecccgdggbhjcbgdbiieaaakejgjhibbaebdkflabaijcagkfbelgdegkhacfhkkljkeddegfkhbcdaedibfgjkjjbliefikhiiacfkllhdlaegcchllllfafjaafclfahdlkkclgeffdbglkclibdfjkbceckeddalbhddckhddhjilaleajhdcfbjcjcgflfehj...
output:
Yes
result:
ok answer is YES
Test #52:
score: 0
Accepted
time: 0ms
memory: 3852kb
input:
ibfdadibjdecbdhhchghacbkabalhkjhakifcicliachlaleahabhjcfjacfdkbbaffddbdldgagblkkkafegblgjfhfcaliiecllahfffegceickgkedlhibghfidjagjlhkeldcjahgfklgcgjejhhebhlgdckaakkbkghdkecjadbkdfeabbdgfcklahifhfjhieakfcfaegiebdaahdflhihakkejilcaebgjficcfcfcejblbaeejgehcjcaciiifckehbjhlaldbgiffiaebdlkhladjfdaighbjci...
output:
Yes
result:
ok answer is YES
Test #53:
score: 0
Accepted
time: 0ms
memory: 3844kb
input:
glgbblegkijgkjhkbgchiakleigeaaalegggbgeljfhhjjiigkhhdebcdkgliihlakfflhabahbbikjhckaikjkkfjfikjkjadhbcbhajccecijhgaikldlacbifhidahbfglikigldilleaildgildhgkgiaaeefbgeeaibcfgclilhkdjdjehlgiejibagdgcahgjebebbhffddbdjagfebeekeiiahifelejeijljkekjadibhjhhlfebglcadhikjiebkkjcibklhdaffcadaihfeiebdegcdcdahfjf...
output:
No
result:
ok answer is NO
Test #54:
score: 0
Accepted
time: 0ms
memory: 3628kb
input:
klcdfbbcdckhbfkblkiaciehdaghcddhadjcggcfikfkleaglfdhfaelckblkeffcalhgfjbildlaecekfjahflddbcbakkacheecbicififefgeigkhidjjeghlgccecdfdfgkfkaaaehkejfkkehhajhldedkjfibddaeaieaicdbhcfcdeiifigdiejfaidafaeijfglkjliccgffhgaglhbgejdebklleaaekfbjgcjgfadijgejfalghkijclihaghdbfhfkjgeidaacccbhlihfifegbjahccaehek...
output:
Yes
result:
ok answer is YES
Test #55:
score: 0
Accepted
time: 0ms
memory: 3628kb
input:
hhfchcgaeagehfgaejcfighcefjabjgikfcebhfgkaehkaabcifkchidkjfgeigalkglkahjhebebefedfheckafdgibkffjihkeghjgekkcdkcehdadgfliladcillaicfgcecaifgbaebblcjebkkjkaedjgjilcefefghlbjbfaaegdbbdjalfjfcjdjbglfjkagajkilfbdeibaijibglljlijjiajcllebkdjfkiieffahbcjfkakailaedbbkkebdbljckkdblcifkgdbebllljalijkckeaejickl...
output:
Yes
result:
ok answer is YES
Test #56:
score: 0
Accepted
time: 0ms
memory: 3848kb
input:
dglkgkcjiaghgaffebkjheaidcfjbkadcjlhkifllgbadekcjcjlbekddhahaeijfjkjgihligeheagekfikgleicfcgcehildlffffijhkdicbdfgfkhgfbbblceageicfflhblbbkedkdeahgldlbfhgaaakibfkbdbgjljadgfkbghgckgifbeiadajbebhfdgkalhjkcdigfecjcailgelhdekkiacddkagcfdblhhgkjdehgajblaffgecfgbkffdabkglbhlbejbjbdjgbcjdlekblihlelljkhgei...
output:
No
result:
ok answer is NO
Test #57:
score: 0
Accepted
time: 0ms
memory: 3632kb
input:
babaababbbaaabbbbbaaababbabbbaabbbababbababbaaaaababaaabbaaabababbabbbabbaaabababbaabaaabbbaaaaababbaaaaaaababbbabbabaaabbabaababbabaaababbbaaabaabaabbabbbabbabbbbbbaababababbabbaabbabaaaaaaabaaabbbbbbaabbbababbabaabbabbbaaaaabbbbbabbbbabbbaabaabaaabaabaabbaabaaaaabbabaaabaaabbbabbaabbabaabaaabbaaba...
output:
Yes
result:
ok answer is YES
Test #58:
score: 0
Accepted
time: 0ms
memory: 3636kb
input:
odvmjqwmmkruizissumakqvldnuvfggbgxwmcgibhxubcpzhnftchhdnumbosnzizhoujpaowwrdcyuvovmigtychffbxpxlxzxeujvaljagehjujwvwdondqanbmgzholpfxkrfgsafqhtzudbmomjbtdbuwptmrqjwvxhkfbsoqafjfkwbjdiyxffmklnfkjqjifquymybrgqsoxapmkkmehxeaqiqjyukahovdihdpidqvkgwweyeeldkyahtqrdiirfzvfvjtlzuondtvtjbizrudfddzkaedbnmxtah...
output:
Yes
result:
ok answer is YES
Test #59:
score: 0
Accepted
time: 0ms
memory: 3636kb
input:
a aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa...
output:
No
result:
ok answer is NO
Test #60:
score: 0
Accepted
time: 0ms
memory: 3636kb
input:
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa...
output:
Yes
result:
ok answer is YES
Test #61:
score: 0
Accepted
time: 0ms
memory: 3556kb
input:
a ab
output:
Yes
result:
ok answer is YES
Test #62:
score: 0
Accepted
time: 0ms
memory: 3612kb
input:
a ab
output:
Yes
result:
ok answer is YES
Test #63:
score: 0
Accepted
time: 0ms
memory: 3500kb
input:
b baa
output:
Yes
result:
ok answer is YES
Test #64:
score: 0
Accepted
time: 0ms
memory: 3612kb
input:
a aab
output:
No
result:
ok answer is NO
Test #65:
score: 0
Accepted
time: 0ms
memory: 3608kb
input:
b baab
output:
Yes
result:
ok answer is YES
Test #66:
score: 0
Accepted
time: 0ms
memory: 3556kb
input:
b bbbb
output:
No
result:
ok answer is NO
Test #67:
score: 0
Accepted
time: 0ms
memory: 3620kb
input:
b babaa
output:
Yes
result:
ok answer is YES
Test #68:
score: 0
Accepted
time: 0ms
memory: 3552kb
input:
a abaab
output:
Yes
result:
ok answer is YES
Test #69:
score: 0
Accepted
time: 0ms
memory: 3552kb
input:
a abbaab
output:
Yes
result:
ok answer is YES
Test #70:
score: 0
Accepted
time: 0ms
memory: 3616kb
input:
a aaaaaa
output:
No
result:
ok answer is NO
Test #71:
score: 0
Accepted
time: 0ms
memory: 3556kb
input:
bb bba
output:
Yes
result:
ok answer is YES
Test #72:
score: 0
Accepted
time: 0ms
memory: 3588kb
input:
aa aba
output:
Yes
result:
ok answer is YES
Test #73:
score: 0
Accepted
time: 0ms
memory: 3596kb
input:
bb baab
output:
Yes
result:
ok answer is YES
Test #74:
score: 0
Accepted
time: 0ms
memory: 3476kb
input:
ba baab
output:
Yes
result:
ok answer is YES
Test #75:
score: 0
Accepted
time: 0ms
memory: 3780kb
input:
bb babaa
output:
Yes
result:
ok answer is YES
Test #76:
score: 0
Accepted
time: 0ms
memory: 3840kb
input:
aa ababb
output:
Yes
result:
ok answer is YES
Test #77:
score: 0
Accepted
time: 0ms
memory: 3624kb
input:
ab abbaba
output:
Yes
result:
ok answer is YES
Test #78:
score: 0
Accepted
time: 0ms
memory: 3620kb
input:
ba bbaaba
output:
No
result:
ok answer is NO
Test #79:
score: 0
Accepted
time: 0ms
memory: 3616kb
input:
bba bbaa
output:
Yes
result:
ok answer is YES
Test #80:
score: 0
Accepted
time: 0ms
memory: 3660kb
input:
bba bbab
output:
Yes
result:
ok answer is YES
Test #81:
score: 0
Accepted
time: 0ms
memory: 3844kb
input:
aba abbab
output:
Yes
result:
ok answer is YES
Test #82:
score: 0
Accepted
time: 0ms
memory: 3656kb
input:
abb aabab
output:
No
result:
ok answer is NO
Test #83:
score: 0
Accepted
time: 0ms
memory: 3560kb
input:
aba abaaba
output:
Yes
result:
ok answer is YES
Test #84:
score: 0
Accepted
time: 0ms
memory: 3556kb
input:
abb ababbb
output:
Yes
result:
ok answer is YES
Test #85:
score: 0
Accepted
time: 0ms
memory: 3616kb
input:
aaba aabaa
output:
Yes
result:
ok answer is YES
Test #86:
score: 0
Accepted
time: 0ms
memory: 3620kb
input:
aaab aaaab
output:
No
result:
ok answer is NO
Test #87:
score: 0
Accepted
time: 0ms
memory: 3624kb
input:
bbab bbaabb
output:
Yes
result:
ok answer is YES
Test #88:
score: 0
Accepted
time: 0ms
memory: 3548kb
input:
abbb abbabb
output:
Yes
result:
ok answer is YES
Test #89:
score: 0
Accepted
time: 0ms
memory: 3556kb
input:
abaab ababab
output:
Yes
result:
ok answer is YES
Test #90:
score: 0
Accepted
time: 0ms
memory: 3624kb
input:
bbbbb bbbbba
output:
Yes
result:
ok answer is YES