31182023-02-16 15:15:29DohajovDanielTükörtojás (75 pont)python3Accepted 75/7565ms16860 KiB
sdb=int(input())
volt=str(input())
VL=list(volt)
lesz=str(input())
LL=list(lesz)
db=0
for i in range(sdb-1,-1,-1):
    if VL[i]==LL[i] and db%2==1: db=db+1
    if VL[i]!=LL[i] and db%2==0: db=db+1
print(db)
    

        
        
SubtaskSumTestVerdictTimeMemory
base75/75
1Accepted0/017ms11164 KiB
2Accepted0/041ms13132 KiB
3Accepted5/517ms11664 KiB
4Accepted5/517ms11972 KiB
5Accepted5/517ms12044 KiB
6Accepted5/517ms12140 KiB
7Accepted5/517ms12248 KiB
8Accepted5/517ms12296 KiB
9Accepted5/518ms12832 KiB
10Accepted5/517ms12820 KiB
11Accepted5/517ms13112 KiB
12Accepted5/561ms16408 KiB
13Accepted5/563ms16440 KiB
14Accepted5/565ms16372 KiB
15Accepted5/564ms16860 KiB
16Accepted5/565ms16624 KiB
17Accepted5/561ms16636 KiB