QOJ.ac
QOJ
ID | 题目 | 提交者 | 结果 | 用时 | 内存 | 语言 | 文件大小 | 提交时间 | 测评时间 |
---|---|---|---|---|---|---|---|---|---|
#36076 | #4292. Sperhling | cheems_is_hiring | AC ✓ | 3ms | 3684kb | C++ | 274b | 2022-06-24 03:48:15 | 2022-06-24 03:48:18 |
Judging History
answer
#include <iostream>
using namespace std;
int main() {
string a,b; cin >> a >> b;
int l = min(a.size(), b.size());
int ans = a.size() + b.size();
for(int i = 0 ; i < l ; i ++) {
if(a[i] == b[i]) {
ans -= 2;
}
else {
break;
}
}
cout << ans << endl;
return 0;
}
详细
Test #1:
score: 100
Accepted
time: 2ms
memory: 3468kb
input:
mischevious mischievous
output:
12
result:
ok single line: '12'
Test #2:
score: 0
Accepted
time: 2ms
memory: 3628kb
input:
cerstermergerd customer
output:
20
result:
ok single line: '20'
Test #3:
score: 0
Accepted
time: 1ms
memory: 3580kb
input:
caitlin caitlynn
output:
5
result:
ok single line: '5'
Test #4:
score: 0
Accepted
time: 3ms
memory: 3684kb
input:
ieavjozqyqrahhsyvvfvasdvssymrxnfvjlkqoxvuzddbmdrevtzfqcltrgvrbukj ieavjozqyqrahhsyvvfvasddubezwuvfsntxyahsmjbbpkcgqhkptzybomdhscpjatoxginkvbbjhrtewtbt
output:
103
result:
ok single line: '103'
Test #5:
score: 0
Accepted
time: 2ms
memory: 3500kb
input:
vtboftmvphszwxsuvtgkychqyxkpyatiebcbvtpajixjhx vwhbbalbyzxhxtsqmgviebeyqfzvgwrnsbf
output:
79
result:
ok single line: '79'
Test #6:
score: 0
Accepted
time: 2ms
memory: 3524kb
input:
ljwxfeouzvoklg lhgclekhdillcegpozuyishvth
output:
38
result:
ok single line: '38'
Test #7:
score: 0
Accepted
time: 2ms
memory: 3524kb
input:
ykbeobmhpxdsqrufgxkkhtelffdedxorqjxyfmwflbryaungvdumstjsyekalaoqdvnsbqco ycejbgjtdyosnnvfhwwfgrvtcsmwrewjjl
output:
104
result:
ok single line: '104'
Test #8:
score: 0
Accepted
time: 2ms
memory: 3576kb
input:
idxasopahxthnljgzdgghiyqyxf ipzac
output:
30
result:
ok single line: '30'
Test #9:
score: 0
Accepted
time: 2ms
memory: 3528kb
input:
cipxgvebbjjznzczwqnihfywuodimsydebwmfaigyahgpbngvvyultadeeumkvfempxcieontopp cipxgvebbjjznzczwqnihfmmkhcjcfxkebrzukvfdlqddyzsppzaohxjafcqehnmbgyxwdtwkxekl
output:
109
result:
ok single line: '109'
Test #10:
score: 0
Accepted
time: 2ms
memory: 3632kb
input:
ribhncukiogpnsoyxdzavgpwongadexjsjwzbcczvzhjaeaufpubcynuiuygdzeuhuchskewtauatuamzpsfztah ribhncukiogpnsoyxdzavgpwongadqdakgujumipvoptydnkmcwwsnrazcwmhitrensszzpqmitqtj
output:
108
result:
ok single line: '108'
Test #11:
score: 0
Accepted
time: 2ms
memory: 3532kb
input:
pxolhlnbhnupyexkxzafegzwhfzolnhqgnttpsdhuoobzlnwxhrifgsdgfjnpariqgjgxdmcmnbqtxsbkgefnxs pxolhlnbhnuplodjfibfasvyksqbuoxdymzhxkpaznozquvhuicwthzqniyzsgko
output:
127
result:
ok single line: '127'
Test #12:
score: 0
Accepted
time: 2ms
memory: 3572kb
input:
mvaqczqxgowcdatezejnabgdmxuhnc mvaqzlmwjnqwlozsxuajefsbsorgyaxhzkhqep
output:
60
result:
ok single line: '60'
Test #13:
score: 0
Accepted
time: 2ms
memory: 3588kb
input:
pyiequknwhiidfgvqtrphkgkwokyggtyqloizjoytexbsvlqkbypbxitgwopdkgmxyeskycjrgcbduuhkn pyiequknwhiidfgvqtrphkgkwokyggtyqloizjoytexbsvlqkbypbxitgwopkqlmtqnaypdqoucpgqpdydkghtehgf
output:
52
result:
ok single line: '52'
Test #14:
score: 0
Accepted
time: 0ms
memory: 3516kb
input:
pzjuwxknsvtfzxpw pznbteyotbjwltfatwivpcrrwpllvssjnscsklwybznvkqykbgkqhybasdwrvlkdritjpilttzkyiuprkj
output:
94
result:
ok single line: '94'
Test #15:
score: 0
Accepted
time: 2ms
memory: 3600kb
input:
mxmblvclgujfrzwgcntghmqpjtmmcucskkakjaxashpagfzsyxjthbjwvsbrvjxsmsxjhyavpwgllktl mxmnuihx
output:
82
result:
ok single line: '82'
Test #16:
score: 0
Accepted
time: 0ms
memory: 3652kb
input:
tyifhrjbjf tyifhruowzilrcndhccfzjlscozqjr
output:
28
result:
ok single line: '28'
Test #17:
score: 0
Accepted
time: 2ms
memory: 3680kb
input:
mjrkdnchbjnujugqlpfnqpirjhjncothbhnkduapdcusxxxcenqgykymgvyymcpyjifybplcskaxglkwzsvwzybwfq mjrkdnchbjnujugqlpnr
output:
74
result:
ok single line: '74'
Test #18:
score: 0
Accepted
time: 2ms
memory: 3532kb
input:
ivonfcanpcxtwoozcqhmekpwzzthzahzkofosoheap ivonfcanpcxtwoozxruritbsgvgviwnpviwzxqjojyb
output:
53
result:
ok single line: '53'
Test #19:
score: 0
Accepted
time: 1ms
memory: 3468kb
input:
kmfjpkvwu kmfjpkdsnoprklhmkecmmbmywfpncjjxsjumqjwykfcqvkvziuuttwgeukbkdrbtswwidjcjvivcvsyopnjfedf
output:
84
result:
ok single line: '84'
Test #20:
score: 0
Accepted
time: 0ms
memory: 3580kb
input:
rchxvenyvtawbfovnnbktaotewvbxgyimwjiywqldzvrrclpnmnypccdflvhdphdmlbvbmugj rchxvenyvtawbxjcdjqwnkzmme
output:
73
result:
ok single line: '73'
Test #21:
score: 0
Accepted
time: 2ms
memory: 3532kb
input:
irgimwvrwnkqxvaityroeyarv irgimwvrwnkqxvcfjxepsyfwkecreisdffyrtjaaxxjouogynvslbwbnamjlsmscpoelexctdtambawbcmcnkk
output:
83
result:
ok single line: '83'
Test #22:
score: 0
Accepted
time: 2ms
memory: 3656kb
input:
hjolncvpenbfmyg hjsutzltqfeibsohokhobkqwuaoknxhfdgasuvtmstpddunzqzcdxjlkrzjjzpdzcwwgjlqq
output:
83
result:
ok single line: '83'
Test #23:
score: 0
Accepted
time: 2ms
memory: 3512kb
input:
zayvbqnddxyepyxcsqphm zayvbqnddxyepyxcs
output:
4
result:
ok single line: '4'
Test #24:
score: 0
Accepted
time: 2ms
memory: 3468kb
input:
yi yp
output:
2
result:
ok single line: '2'
Test #25:
score: 0
Accepted
time: 2ms
memory: 3656kb
input:
vtdc vtdcx
output:
1
result:
ok single line: '1'
Test #26:
score: 0
Accepted
time: 2ms
memory: 3516kb
input:
gkyec he
output:
7
result:
ok single line: '7'
Test #27:
score: 0
Accepted
time: 2ms
memory: 3652kb
input:
ydaha yvth
output:
7
result:
ok single line: '7'
Test #28:
score: 0
Accepted
time: 2ms
memory: 3680kb
input:
tepnw np
output:
7
result:
ok single line: '7'
Test #29:
score: 0
Accepted
time: 0ms
memory: 3516kb
input:
g gpife
output:
4
result:
ok single line: '4'
Test #30:
score: 0
Accepted
time: 2ms
memory: 3468kb
input:
wyvqd wygun
output:
6
result:
ok single line: '6'
Test #31:
score: 0
Accepted
time: 2ms
memory: 3608kb
input:
h hawf
output:
3
result:
ok single line: '3'
Test #32:
score: 0
Accepted
time: 0ms
memory: 3500kb
input:
rue r
output:
2
result:
ok single line: '2'
Test #33:
score: 0
Accepted
time: 0ms
memory: 3672kb
input:
xsd xsdls
output:
2
result:
ok single line: '2'
Test #34:
score: 0
Accepted
time: 2ms
memory: 3596kb
input:
aiqgk n
output:
6
result:
ok single line: '6'
Test #35:
score: 0
Accepted
time: 1ms
memory: 3464kb
input:
ffye fv
output:
4
result:
ok single line: '4'
Test #36:
score: 0
Accepted
time: 2ms
memory: 3576kb
input:
bmwb q
output:
5
result:
ok single line: '5'
Test #37:
score: 0
Accepted
time: 2ms
memory: 3528kb
input:
kvh kvw
output:
2
result:
ok single line: '2'
Test #38:
score: 0
Accepted
time: 2ms
memory: 3532kb
input:
z eqfy
output:
5
result:
ok single line: '5'
Test #39:
score: 0
Accepted
time: 1ms
memory: 3572kb
input:
khjm kh
output:
2
result:
ok single line: '2'
Test #40:
score: 0
Accepted
time: 2ms
memory: 3656kb
input:
xxrg uox
output:
7
result:
ok single line: '7'
Test #41:
score: 0
Accepted
time: 2ms
memory: 3580kb
input:
vr vtc
output:
3
result:
ok single line: '3'
Test #42:
score: 0
Accepted
time: 2ms
memory: 3468kb
input:
m mflqo
output:
4
result:
ok single line: '4'
Test #43:
score: 0
Accepted
time: 1ms
memory: 3656kb
input:
mfmp mfwe
output:
4
result:
ok single line: '4'
Test #44:
score: 0
Accepted
time: 0ms
memory: 3580kb
input:
bj coj
output:
5
result:
ok single line: '5'
Test #45:
score: 0
Accepted
time: 2ms
memory: 3472kb
input:
icqemloejqveyyaoezixasjtvotbnswnuvxmskbuhtamonybflrejbtuwywqhxxnjcgbfpvqczjiefeoeoyzniojphstovaacwaw icqemloejqveyyaoezixasjtvotbnswnudajoupntstxptjohjzbbzrfzoadpjyljniagnqwyvgakpcpdcqrydkqilorpmkxtfxi
output:
134
result:
ok single line: '134'
Test #46:
score: 0
Accepted
time: 2ms
memory: 3632kb
input:
qidttrgaramxxxsrjrqiswtbxyclcstuplcwxsoirkghwcdqnwwcztqjumbcoinbqonsclkjidufwrrwvrkuebofwpguuyhvvbhu qidttrhuouwbvvlakuasfbdfmgreyarepdrtdvjkmpqzjsdbmvhqzoktugphwrsfuinygqzrxkvugnvlmqxptpphbtcrxsdsevex
output:
188
result:
ok single line: '188'
Test #47:
score: 0
Accepted
time: 1ms
memory: 3636kb
input:
atfwqlvfmiuylcjzsatykxonnvonijzfgrnihlszvcnyackkdoqkztdjojzfqbyduopgykzcfoisclzgmsnmzjdzmthsisicxpfp atfwqlvfmiuylcjzsatykxonnvonijzfgrnihlszvcnyackkdoqkztdjojzfqbyduopgykzcfoisclzgmsnmzjdzmthsisizdsiw
output:
10
result:
ok single line: '10'
Test #48:
score: 0
Accepted
time: 2ms
memory: 3520kb
input:
qiriczgupropmqyiercaartljbjxdpvjhvouxlzsdswellkiodmopmpjnjrifpdcblbafhdfmtctctkouxrtsvuhwtkrzwnsuajq qiriczgupropmqyiercaartljbjxdpvjhvouxlzsdswellkiodmopmpjnjrifpdcblbafhdfmtctctkouxrtsvuhwtkrzdirdpzz
output:
14
result:
ok single line: '14'
Test #49:
score: 0
Accepted
time: 1ms
memory: 3604kb
input:
tlglfjsjkcddhvqjctqmpawxxwqujcmbtggsovukwlnzmbzafasnxehmkvctrbszcnnueekjncfghdvccpyftbowvdbixqxvhujo tlglfjsjkcddhvqmakhoduwismlkagjclemeyhrvxyijqwsczxbjxykpsndfacyhohhzfimohmaarfcvupctnzrowdbohpvjyngq
output:
170
result:
ok single line: '170'
Test #50:
score: 0
Accepted
time: 2ms
memory: 3656kb
input:
neguraruzgrnbdqgwrcwwqzngndffnauplttsogytbrjzmqlckhznuchxlnptmizuvxoxhimhnuyvgfjmntzjykdgdauevdkqxvw neguraruzgrnbdkklnxomjkvqebvclnewqqzurojtzmcqlfegfluosjfdikwkurdshvhkypdunyyijkbafpjbitgjvvwjxorkvqf
output:
172
result:
ok single line: '172'
Test #51:
score: 0
Accepted
time: 1ms
memory: 3660kb
input:
pyzrfnpoeqfcqsgljmeoucdulmkboqlpctltitigkgszzzbyarqvjpqssflhtvayqcfaexxnipgvgpdeujrdrcvyqsazltzqnxsw pyzrfnpoeqfcqsgljmvzgkuqxnpfkonpjbsxprqryxtphxjedmdxztonxvtdtybdqitiqovdushphchsgrejgvlznfivmxxvjudh
output:
164
result:
ok single line: '164'
Test #52:
score: 0
Accepted
time: 0ms
memory: 3636kb
input:
maotejttipoxllgmtvvgriprulxtxzugfrdkteoabhpnpaubifufjtzwklpooieqgvrhendqbabhoxcxxmynymddfghkueaevavy maotejttipoxllgmtvvgriprulxtxzeyvpfwfwntzoehnenwsyhcuwvipxxmaooguxkhdmlhgttnfzpzwdxhilkqhwekbwgjbwut
output:
140
result:
ok single line: '140'
Test #53:
score: 0
Accepted
time: 2ms
memory: 3588kb
input:
olmwtsvzfxlxnyhifxwgnegasfhgkrsoabrlelctvcdazhxjsybjhfkrjaukuvthhhmteobujnaposmshirtshqdciiflsvngpsp olmwtsvzfxlxnyhifxwgnegasfhgkrsoabrlelctvcdazhxjsybjhfkrjaukuvthhhmteozbdmjjcycpimwbkrjafvibqujakqkn
output:
60
result:
ok single line: '60'
Test #54:
score: 0
Accepted
time: 2ms
memory: 3612kb
input:
kbytqqzyggvocrmydptsmhzrhllvkerobzyilihiuhnyagypaztjlcdkbzkwrivdnspufpqbcaeaqhybqhkamegygiubrggpbpxd kbytqqzyggvocrmydptsmhzrhllvkerobzyilihiuhnyagyqmnxymzphbgoqfwqsnxzvoznygxltmofpgkwjtrrgduvofpekzbrk
output:
106
result:
ok single line: '106'
Test #55:
score: 0
Accepted
time: 2ms
memory: 3656kb
input:
mngdgatzitphdeifmxjeakcrwyloijqzvtinthlaqohuhggkxvwblawywxuwuylthkuxxhhwmtmbnmkpnwrntegopvizybthnxcs mngdgatzitphdeifmxjeakcrwyloijqzvtinthlaqohuhggnoguxbipmowrkcmtbulsobaylvgvzrmyckvkbksjajcwuccawwjhj
output:
106
result:
ok single line: '106'
Test #56:
score: 0
Accepted
time: 2ms
memory: 3584kb
input:
aulweqlwxavvvktqsqxencbulesrbtwwjnnffgjhkjpattxkaehxryajztckrubvcnakinbwdpmywwppuzlblbbvrsyyptrsgsra aulweqlwxavvvktqsqxencbulesrbtwwjnnffgjhkjgfxocbirzmiicjskiiqqtpxrfhxoyjxuhyccfzqmnnedjphmvqwykjkoyc
output:
116
result:
ok single line: '116'
Test #57:
score: 0
Accepted
time: 0ms
memory: 3532kb
input:
sjzoadxixulqpqiknmepjzkbupmopxtedxlbfouqiaizhimdacbstoyodxfurvssevdnqvrulotdtnhdwcuskcqindqrpyeuiuim sjzoadxixulqpqiknmepjzkbupmopxtedxlbfouqiaizhimdacbstoyodxfurvssevdnqvrulotdtnhdwcuskcqindqrpyeuhvtx
output:
8
result:
ok single line: '8'
Test #58:
score: 0
Accepted
time: 2ms
memory: 3584kb
input:
piqgjwrnsntedlackdzhpjycrofbvoartihendryijkiourdbjcjmqnbgpvlcoajvzxklcxnliujfcezlbezpdkmcznieckyjcyf piqgjwrnsntedlackdzhpjycrofbvoartihendryijkiourdbjcjmqijuykbmzfpkefshmaciakdborfyyvnhtezwdtmltukfjjb
output:
92
result:
ok single line: '92'
Test #59:
score: 0
Accepted
time: 2ms
memory: 3516kb
input:
vcwuglfnxycigrobynhofpfilpezpvasgnbhjreqqdtkbdzlehmitbazuxlnpilfkorstiwdwldvmqzbdhrpteacvumrrziptwkg vcwuglfnxycigrobynhofpfilpezpvasgnbhbtkaqsffkxoazugayydjyvcanmufpchujuqhtgmfslvrmzatmivchcyofjytmnkf
output:
128
result:
ok single line: '128'
Test #60:
score: 0
Accepted
time: 0ms
memory: 3676kb
input:
kqconagypiyrcqvgkrcahxcsucdsxgqddynbpvkgfqutksevcmqzwuvprvyntnoohthvkyvbfzczyaafsvuzwcimfmrodiiuniws kqconagypiyrcqvgkrcahxcsucdsxgqddynbpvkgfqutksevcmqzwuvdyrooanlmjfnxqsahdlccthmlsqdaaqzdoroqpqnypdqa
output:
90
result:
ok single line: '90'
Test #61:
score: 0
Accepted
time: 2ms
memory: 3588kb
input:
fqsvqxlghodagjhxqzvfortlqtkddiueqwicpscjotqjmemgzieqevllbsnpcxzkwsmwozjsyhvckiitsywmrszbjpevmeipphxc fqsvqxlghodagjhxqzvfortlqtkddiukeshdbymgmsokmtgbxxplsvjosuhjrvobwswpplolrsiyaksyfogoqzvdjfapglwenppp
output:
138
result:
ok single line: '138'
Test #62:
score: 0
Accepted
time: 2ms
memory: 3676kb
input:
wbzunsulfcbkxnnhkjsqtlijfeoqqbrtrjuhgdojtjexmwghyevtudgqzjlsiuxzqktkakgjpiznywrzcpflummguplvhfuffuyq wbzunsulfcbkxnntwlkxchufuukbaoxczlelklfbfskdvtmbweqoqfsiumoqdjzszhqmndmztmbawhssodvihsuugpwsiypebnam
output:
170
result:
ok single line: '170'
Test #63:
score: 0
Accepted
time: 2ms
memory: 3676kb
input:
omiajcqvtjwgjkfqsoggqlnnmfnpwqyxwvqmhyghrpikpdpitsyveunacmgastdcytqhpydfgobdfycgkwwugwviwdjhdtgduvtn omiajcqvtjwgjkfqsoggqlnnmfnpwqyxwvqmhyghrpikpdpitsyveunacmgastdcytqhpydfgobdfycgkwwugwviwdjflkskjrkh
output:
18
result:
ok single line: '18'
Test #64:
score: 0
Accepted
time: 0ms
memory: 3680kb
input:
fpxieskvlgjvchqdhbpntltzdimfwcvsgjyaqmxqbhsjmxqhjjrdwxfloqloeuxeghvbbphhgsacsgbdpqmgzbancckfmgkumnul fpxieskbafhzvuobfluavpyyguhbbyydsvmzmzshnxyokpxjhqgdrgqcbdhxbutvjhgokzddgzerihbraobupdruzwuudguyysdv
output:
186
result:
ok single line: '186'
Test #65:
score: 0
Accepted
time: 2ms
memory: 3632kb
input:
xbdic xbdic
output:
0
result:
ok single line: '0'
Test #66:
score: 0
Accepted
time: 2ms
memory: 3576kb
input:
heamp heamf
output:
2
result:
ok single line: '2'
Test #67:
score: 0
Accepted
time: 0ms
memory: 3528kb
input:
wapgl walwg
output:
6
result:
ok single line: '6'
Test #68:
score: 0
Accepted
time: 2ms
memory: 3656kb
input:
hszhn hszhz
output:
2
result:
ok single line: '2'
Test #69:
score: 0
Accepted
time: 0ms
memory: 3572kb
input:
tmnej tmgli
output:
6
result:
ok single line: '6'
Test #70:
score: 0
Accepted
time: 2ms
memory: 3580kb
input:
kppkm ykqag
output:
10
result:
ok single line: '10'
Test #71:
score: 0
Accepted
time: 2ms
memory: 3600kb
input:
gppks gppkz
output:
2
result:
ok single line: '2'
Test #72:
score: 0
Accepted
time: 2ms
memory: 3604kb
input:
gvbqm nkisn
output:
10
result:
ok single line: '10'
Test #73:
score: 0
Accepted
time: 1ms
memory: 3600kb
input:
gcydu gcydt
output:
2
result:
ok single line: '2'
Test #74:
score: 0
Accepted
time: 2ms
memory: 3604kb
input:
poynq poynq
output:
0
result:
ok single line: '0'
Test #75:
score: 0
Accepted
time: 1ms
memory: 3632kb
input:
xzbbv xgvkm
output:
8
result:
ok single line: '8'
Test #76:
score: 0
Accepted
time: 2ms
memory: 3464kb
input:
jlalt finvl
output:
10
result:
ok single line: '10'
Test #77:
score: 0
Accepted
time: 2ms
memory: 3576kb
input:
ygshg ygkix
output:
6
result:
ok single line: '6'
Test #78:
score: 0
Accepted
time: 1ms
memory: 3468kb
input:
mcglx mcglx
output:
0
result:
ok single line: '0'
Test #79:
score: 0
Accepted
time: 2ms
memory: 3600kb
input:
jqxpm jqxpm
output:
0
result:
ok single line: '0'
Test #80:
score: 0
Accepted
time: 2ms
memory: 3600kb
input:
uhxet uhxhr
output:
4
result:
ok single line: '4'
Test #81:
score: 0
Accepted
time: 2ms
memory: 3672kb
input:
icsxd icsxk
output:
2
result:
ok single line: '2'
Test #82:
score: 0
Accepted
time: 2ms
memory: 3500kb
input:
aibsz exshe
output:
10
result:
ok single line: '10'
Test #83:
score: 0
Accepted
time: 2ms
memory: 3572kb
input:
xdmjt zhpnl
output:
10
result:
ok single line: '10'
Test #84:
score: 0
Accepted
time: 1ms
memory: 3576kb
input:
fczhg hlmnq
output:
10
result:
ok single line: '10'
Test #85:
score: 0
Accepted
time: 1ms
memory: 3576kb
input:
mbtnh mbtds
output:
4
result:
ok single line: '4'