31012023-02-15 16:59:28PallanekPéterTükörtojás (75 pont)python3Wrong answer 50/7557ms14104 KiB
n=int(input())
kezdet=input()
eloirt=input()
db=0; i=n-1
while i!=0:
    if db%2==0:
        if kezdet[i]!=eloirt[i]:
            db+=1
    else:
        if kezdet[i]==eloirt[i]:
            db+=1
    i-=1
print(db)
    
SubtaskSumTestVerdictTimeMemory
base50/75
1Accepted0/017ms11132 KiB
2Accepted0/035ms11692 KiB
3Accepted5/517ms11568 KiB
4Wrong answer0/517ms11540 KiB
5Accepted5/517ms11808 KiB
6Accepted5/517ms12152 KiB
7Accepted5/517ms12092 KiB
8Accepted5/517ms12068 KiB
9Accepted5/517ms12432 KiB
10Wrong answer0/517ms12672 KiB
11Accepted5/517ms12656 KiB
12Wrong answer0/554ms13516 KiB
13Wrong answer0/552ms13460 KiB
14Accepted5/552ms13592 KiB
15Accepted5/556ms13512 KiB
16Wrong answer0/557ms13896 KiB
17Accepted5/552ms14104 KiB