結果

問題 No.2209 Flip and Reverse
ユーザー Yaowei Lyu
提出日時 2023-02-10 21:27:02
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 236 bytes
コンパイル時間 826 ms
コンパイル使用メモリ 82,560 KB
実行使用メモリ 87,680 KB
最終ジャッジ日時 2024-07-07 15:36:28
合計ジャッジ時間 3,846 ms
ジャッジサーバーID
(参考情報)
judge1 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 4
other AC * 18 WA * 12
権限があれば一括ダウンロードができます

ソースコード

diff #

import sys
input = sys.stdin.buffer.readline
n = int(input())
s = input()
t = input()
d = sum([s[i] != t[i] for i in range(n)])
if d % 2 == 0:
    print(d)
else:
    t = list(reversed(t))
    print(sum([s[i] != t[i] for i in range(n)]))
0