結果
| 問題 |
No.2209 Flip and Reverse
|
| コンテスト | |
| ユーザー |
coder_So_hey
|
| 提出日時 | 2023-02-10 21:30:46 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 221 bytes |
| コンパイル時間 | 235 ms |
| コンパイル使用メモリ | 82,156 KB |
| 実行使用メモリ | 80,776 KB |
| 最終ジャッジ日時 | 2024-07-07 15:41:39 |
| 合計ジャッジ時間 | 3,961 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 4 |
| other | AC * 17 WA * 13 |
ソースコード
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))
coder_So_hey