結果
| 問題 |
No.2209 Flip and Reverse
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2023-03-04 17:44:33 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
AC
|
| 実行時間 | 300 ms / 2,000 ms |
| コード長 | 187 bytes |
| コンパイル時間 | 207 ms |
| コンパイル使用メモリ | 81,920 KB |
| 実行使用メモリ | 265,216 KB |
| 最終ジャッジ日時 | 2024-09-18 01:19:24 |
| 合計ジャッジ時間 | 8,710 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 4 |
| other | AC * 30 |
ソースコード
n = int(input()) s = list(map(int, list(input()))) t = list(map(int, list(input()))) if s.count(1) % 2 != t.count(1) % 2: t.reverse() print(len([i for i in range(n) if s[i] != t[i]]))