結果
| 問題 |
No.2209 Flip and Reverse
|
| コンテスト | |
| ユーザー |
naut3
|
| 提出日時 | 2023-09-16 20:31:20 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
AC
|
| 実行時間 | 376 ms / 2,000 ms |
| コード長 | 208 bytes |
| コンパイル時間 | 95 ms |
| コンパイル使用メモリ | 12,672 KB |
| 実行使用メモリ | 34,448 KB |
| 最終ジャッジ日時 | 2024-07-03 19:44:29 |
| 合計ジャッジ時間 | 8,691 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 4 |
| other | AC * 30 |
ソースコード
N = int(input())
S = list(input())
T = list(input())
S_rev = S[::-1]
c1 = sum(S[i] != T[i] for i in range(N))
c2 = sum(S_rev[i] != T[i] for i in range(N))
if c1 % 2 == 0:
print(c1)
else:
print(c2)
naut3