結果

問題 No.2209 Flip and Reverse
ユーザー MasKoaTSMasKoaTS
提出日時 2023-02-10 21:31:32
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 191 bytes
コンパイル時間 274 ms
コンパイル使用メモリ 87,064 KB
実行使用メモリ 81,708 KB
最終ジャッジ日時 2023-09-21 22:35:10
合計ジャッジ時間 6,207 ms
ジャッジサーバーID
(参考情報)
judge12 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 74 ms
71,264 KB
testcase_01 AC 72 ms
71,196 KB
testcase_02 AC 70 ms
71,336 KB
testcase_03 AC 70 ms
71,200 KB
testcase_04 AC 69 ms
70,880 KB
testcase_05 AC 72 ms
71,036 KB
testcase_06 AC 71 ms
71,060 KB
testcase_07 AC 71 ms
71,140 KB
testcase_08 WA -
testcase_09 AC 71 ms
71,080 KB
testcase_10 AC 73 ms
71,200 KB
testcase_11 AC 73 ms
71,356 KB
testcase_12 AC 73 ms
70,928 KB
testcase_13 WA -
testcase_14 AC 159 ms
81,664 KB
testcase_15 WA -
testcase_16 WA -
testcase_17 WA -
testcase_18 AC 161 ms
81,316 KB
testcase_19 AC 159 ms
81,412 KB
testcase_20 WA -
testcase_21 WA -
testcase_22 WA -
testcase_23 AC 161 ms
81,564 KB
testcase_24 AC 153 ms
81,656 KB
testcase_25 WA -
testcase_26 WA -
testcase_27 WA -
testcase_28 AC 137 ms
81,580 KB
testcase_29 AC 136 ms
81,412 KB
testcase_30 AC 138 ms
81,396 KB
testcase_31 WA -
testcase_32 AC 131 ms
81,424 KB
testcase_33 WA -
権限があれば一括ダウンロードができます

ソースコード

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