結果

問題 No.2209 Flip and Reverse
ユーザー coder_So_heycoder_So_hey
提出日時 2023-02-10 21:30:46
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 221 bytes
コンパイル時間 301 ms
コンパイル使用メモリ 86,692 KB
実行使用メモリ 81,540 KB
最終ジャッジ日時 2023-09-21 22:34:03
合計ジャッジ時間 5,468 ms
ジャッジサーバーID
(参考情報)
judge13 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 74 ms
71,268 KB
testcase_01 AC 74 ms
71,316 KB
testcase_02 AC 74 ms
71,292 KB
testcase_03 AC 74 ms
71,080 KB
testcase_04 AC 72 ms
71,152 KB
testcase_05 AC 73 ms
71,100 KB
testcase_06 AC 73 ms
71,048 KB
testcase_07 AC 74 ms
70,924 KB
testcase_08 WA -
testcase_09 AC 74 ms
71,288 KB
testcase_10 AC 75 ms
71,300 KB
testcase_11 AC 75 ms
71,244 KB
testcase_12 AC 73 ms
71,336 KB
testcase_13 WA -
testcase_14 AC 123 ms
81,060 KB
testcase_15 WA -
testcase_16 WA -
testcase_17 WA -
testcase_18 AC 121 ms
81,208 KB
testcase_19 AC 123 ms
81,212 KB
testcase_20 WA -
testcase_21 WA -
testcase_22 WA -
testcase_23 AC 122 ms
81,216 KB
testcase_24 AC 118 ms
81,084 KB
testcase_25 WA -
testcase_26 WA -
testcase_27 WA -
testcase_28 AC 107 ms
81,204 KB
testcase_29 AC 108 ms
81,132 KB
testcase_30 AC 109 ms
81,300 KB
testcase_31 WA -
testcase_32 AC 107 ms
81,292 KB
testcase_33 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

N = int(input())
S = input()
T = input()

count1 = 0
for i in range(N):
    if S[i] != T[i]:
        count1 += 1

count2 = 0
for i in range(N):
    if S[N - i - 1] != T[i]:
        count2 += 1

print(min(count1, count2))
0