結果
| 問題 |
No.2209 Flip and Reverse
|
| コンテスト | |
| ユーザー |
Kude
|
| 提出日時 | 2023-02-10 21:30:47 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
AC
|
| 実行時間 | 158 ms / 2,000 ms |
| コード長 | 179 bytes |
| コンパイル時間 | 291 ms |
| コンパイル使用メモリ | 82,072 KB |
| 実行使用メモリ | 80,432 KB |
| 最終ジャッジ日時 | 2024-07-07 15:41:44 |
| 合計ジャッジ時間 | 5,275 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 4 |
| other | AC * 30 |
ソースコード
n = int(input()) s = input() t = input() c0 = sum(c0 != c1 for c0, c1 in zip(s, t)) c1 = sum(c0 != c1 for c0, c1 in zip(reversed(s), t)) ans = c0 if c0 % 2 == 0 else c1 print(ans)
Kude