結果

問題 No.2209 Flip and Reverse
ユーザー qibqib
提出日時 2023-03-04 17:44:33
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 322 ms / 2,000 ms
コード長 187 bytes
コンパイル時間 267 ms
コンパイル使用メモリ 81,856 KB
実行使用メモリ 264,912 KB
最終ジャッジ日時 2023-10-18 04:36:36
合計ジャッジ時間 11,039 ms
ジャッジサーバーID
(参考情報)
judge15 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 37 ms
53,412 KB
testcase_01 AC 38 ms
53,412 KB
testcase_02 AC 37 ms
53,412 KB
testcase_03 AC 37 ms
53,412 KB
testcase_04 AC 37 ms
53,412 KB
testcase_05 AC 38 ms
53,412 KB
testcase_06 AC 38 ms
53,412 KB
testcase_07 AC 38 ms
53,412 KB
testcase_08 AC 322 ms
264,816 KB
testcase_09 AC 38 ms
53,408 KB
testcase_10 AC 38 ms
53,408 KB
testcase_11 AC 38 ms
53,408 KB
testcase_12 AC 38 ms
53,408 KB
testcase_13 AC 38 ms
53,408 KB
testcase_14 AC 293 ms
264,908 KB
testcase_15 AC 294 ms
264,896 KB
testcase_16 AC 293 ms
264,908 KB
testcase_17 AC 292 ms
264,904 KB
testcase_18 AC 292 ms
264,904 KB
testcase_19 AC 294 ms
264,896 KB
testcase_20 AC 292 ms
264,904 KB
testcase_21 AC 291 ms
264,908 KB
testcase_22 AC 292 ms
264,908 KB
testcase_23 AC 290 ms
264,908 KB
testcase_24 AC 281 ms
264,896 KB
testcase_25 AC 291 ms
264,912 KB
testcase_26 AC 284 ms
264,904 KB
testcase_27 AC 291 ms
264,904 KB
testcase_28 AC 251 ms
246,568 KB
testcase_29 AC 250 ms
246,416 KB
testcase_30 AC 248 ms
246,576 KB
testcase_31 AC 280 ms
264,904 KB
testcase_32 AC 247 ms
246,128 KB
testcase_33 AC 278 ms
264,884 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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]]))
0