結果

問題 No.2209 Flip and Reverse
ユーザー deepjugglingdeepjuggling
提出日時 2023-02-10 22:20:54
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 270 bytes
コンパイル時間 299 ms
コンパイル使用メモリ 87,136 KB
実行使用メモリ 173,716 KB
最終ジャッジ日時 2023-09-21 23:35:54
合計ジャッジ時間 7,681 ms
ジャッジサーバーID
(参考情報)
judge15 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 75 ms
71,332 KB
testcase_01 AC 75 ms
71,120 KB
testcase_02 AC 74 ms
71,316 KB
testcase_03 AC 72 ms
71,456 KB
testcase_04 AC 74 ms
71,328 KB
testcase_05 AC 76 ms
71,408 KB
testcase_06 AC 73 ms
71,292 KB
testcase_07 AC 75 ms
71,268 KB
testcase_08 WA -
testcase_09 AC 75 ms
71,312 KB
testcase_10 AC 73 ms
71,384 KB
testcase_11 AC 73 ms
71,108 KB
testcase_12 AC 73 ms
71,564 KB
testcase_13 AC 72 ms
71,560 KB
testcase_14 AC 230 ms
173,612 KB
testcase_15 AC 227 ms
173,600 KB
testcase_16 AC 228 ms
173,488 KB
testcase_17 AC 227 ms
173,644 KB
testcase_18 AC 229 ms
173,664 KB
testcase_19 AC 227 ms
173,492 KB
testcase_20 AC 226 ms
173,716 KB
testcase_21 AC 230 ms
173,708 KB
testcase_22 AC 227 ms
173,584 KB
testcase_23 AC 226 ms
173,616 KB
testcase_24 AC 218 ms
173,604 KB
testcase_25 AC 216 ms
173,632 KB
testcase_26 WA -
testcase_27 WA -
testcase_28 AC 207 ms
173,412 KB
testcase_29 AC 203 ms
173,652 KB
testcase_30 AC 204 ms
173,660 KB
testcase_31 AC 203 ms
173,696 KB
testcase_32 AC 202 ms
173,556 KB
testcase_33 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

n = int(input())
s = input()
t = input()
s = list(s)
t = list(t)
ss = list(s)
ss.reverse()
mae = 0
usi = 0
for i in range(n):
    if s[i] != t[i]:
        mae += 1
    if ss[i] != t[i]:
        usi += 1
if mae <= usi and mae % 2 == 0:
    print(mae)
else:
    print(usi)
0