結果

問題 No.2209 Flip and Reverse
ユーザー Navier_BoltzmannNavier_Boltzmann
提出日時 2023-02-10 21:30:47
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 296 bytes
コンパイル時間 431 ms
コンパイル使用メモリ 86,840 KB
実行使用メモリ 191,912 KB
最終ジャッジ日時 2023-09-21 22:34:20
合計ジャッジ時間 9,675 ms
ジャッジサーバーID
(参考情報)
judge15 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 107 ms
73,004 KB
testcase_01 AC 104 ms
72,844 KB
testcase_02 AC 105 ms
72,892 KB
testcase_03 AC 105 ms
72,696 KB
testcase_04 AC 105 ms
73,148 KB
testcase_05 AC 105 ms
73,100 KB
testcase_06 AC 104 ms
73,000 KB
testcase_07 AC 105 ms
73,144 KB
testcase_08 WA -
testcase_09 AC 105 ms
72,844 KB
testcase_10 AC 103 ms
72,736 KB
testcase_11 AC 104 ms
73,208 KB
testcase_12 AC 105 ms
73,064 KB
testcase_13 WA -
testcase_14 AC 309 ms
191,356 KB
testcase_15 WA -
testcase_16 WA -
testcase_17 WA -
testcase_18 AC 298 ms
191,360 KB
testcase_19 AC 299 ms
191,648 KB
testcase_20 WA -
testcase_21 WA -
testcase_22 WA -
testcase_23 AC 305 ms
191,576 KB
testcase_24 AC 289 ms
191,456 KB
testcase_25 WA -
testcase_26 WA -
testcase_27 WA -
testcase_28 AC 270 ms
191,348 KB
testcase_29 AC 271 ms
191,412 KB
testcase_30 AC 267 ms
191,584 KB
testcase_31 WA -
testcase_32 AC 263 ms
191,420 KB
testcase_33 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

from collections import *
from itertools import *
from functools import *
from heapq import *
import sys,math
input = sys.stdin.readline

N = int(input())
S = list(input())[:-1]
T = list(input())[:-1]
X = sum(S[i]!=T[i] for i in range(N))
Y = sum(S[N-1-i]!=T[i] for i in range(N))
print(min(X,Y))
0