結果

問題 No.2209 Flip and Reverse
ユーザー MasKoaTS
提出日時 2023-02-10 21:31:32
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 191 bytes
コンパイル時間 251 ms
コンパイル使用メモリ 82,048 KB
実行使用メモリ 80,896 KB
最終ジャッジ日時 2024-07-07 15:42:36
合計ジャッジ時間 4,453 ms
ジャッジサーバーID
(参考情報)
judge3 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 4
other AC * 17 WA * 13
権限があれば一括ダウンロードができます

ソースコード

diff #

n = int(input())
s = input()
t = input()

cnt = 0
for a, b in zip(s, t):
    cnt += (a != b)
ans = cnt
cnt = 0
for a, b in zip(s[::-1], t):
    cnt += (a != b)
ans = min(ans, cnt)
print(ans)
0