結果

問題 No.1183 コイン遊び
ユーザー KudeKude
提出日時 2020-08-27 22:40:29
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 399 ms / 2,000 ms
コード長 195 bytes
コンパイル時間 422 ms
コンパイル使用メモリ 82,688 KB
実行使用メモリ 275,392 KB
最終ジャッジ日時 2024-04-26 04:19:48
合計ジャッジ時間 12,264 ms
ジャッジサーバーID
(参考情報)
judge5 / judge1
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 38 ms
51,712 KB
testcase_01 AC 39 ms
51,712 KB
testcase_02 AC 39 ms
51,840 KB
testcase_03 AC 39 ms
51,712 KB
testcase_04 AC 39 ms
51,712 KB
testcase_05 AC 40 ms
51,968 KB
testcase_06 AC 37 ms
51,840 KB
testcase_07 AC 36 ms
51,968 KB
testcase_08 AC 38 ms
53,120 KB
testcase_09 AC 40 ms
52,992 KB
testcase_10 AC 53 ms
67,456 KB
testcase_11 AC 64 ms
85,248 KB
testcase_12 AC 293 ms
217,252 KB
testcase_13 AC 247 ms
199,440 KB
testcase_14 AC 381 ms
265,252 KB
testcase_15 AC 394 ms
274,340 KB
testcase_16 AC 396 ms
274,240 KB
testcase_17 AC 387 ms
275,268 KB
testcase_18 AC 387 ms
274,888 KB
testcase_19 AC 389 ms
274,880 KB
testcase_20 AC 395 ms
274,880 KB
testcase_21 AC 386 ms
275,392 KB
testcase_22 AC 392 ms
274,788 KB
testcase_23 AC 388 ms
275,268 KB
testcase_24 AC 390 ms
274,752 KB
testcase_25 AC 392 ms
274,836 KB
testcase_26 AC 391 ms
274,816 KB
testcase_27 AC 393 ms
275,012 KB
testcase_28 AC 388 ms
274,888 KB
testcase_29 AC 386 ms
274,756 KB
testcase_30 AC 385 ms
274,888 KB
testcase_31 AC 392 ms
274,904 KB
testcase_32 AC 396 ms
274,752 KB
testcase_33 AC 396 ms
274,240 KB
testcase_34 AC 399 ms
274,732 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

n = int(input())
a = list(map(int, input().split()))
for i, b in enumerate(map(int, input().split())):
    a[i] ^= b
a = [0] + a + [0]
a = [x ^ y for x, y in zip(a, a[1:])]
print(a.count(1) // 2)
0