結果

問題 No.1183 コイン遊び
ユーザー kikagekikage
提出日時 2021-08-15 14:05:03
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 666 ms / 2,000 ms
コード長 193 bytes
コンパイル時間 100 ms
コンパイル使用メモリ 12,544 KB
実行使用メモリ 44,084 KB
最終ジャッジ日時 2024-04-16 16:53:22
合計ジャッジ時間 17,807 ms
ジャッジサーバーID
(参考情報)
judge2 / judge1
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 32 ms
10,752 KB
testcase_01 AC 29 ms
10,752 KB
testcase_02 AC 30 ms
10,752 KB
testcase_03 AC 33 ms
10,752 KB
testcase_04 AC 30 ms
10,752 KB
testcase_05 AC 29 ms
10,880 KB
testcase_06 AC 29 ms
10,752 KB
testcase_07 AC 29 ms
10,752 KB
testcase_08 AC 30 ms
10,752 KB
testcase_09 AC 29 ms
10,752 KB
testcase_10 AC 42 ms
11,392 KB
testcase_11 AC 67 ms
12,996 KB
testcase_12 AC 424 ms
31,424 KB
testcase_13 AC 386 ms
29,112 KB
testcase_14 AC 617 ms
41,736 KB
testcase_15 AC 663 ms
43,928 KB
testcase_16 AC 662 ms
43,956 KB
testcase_17 AC 661 ms
44,084 KB
testcase_18 AC 648 ms
43,876 KB
testcase_19 AC 663 ms
43,956 KB
testcase_20 AC 653 ms
43,956 KB
testcase_21 AC 633 ms
43,896 KB
testcase_22 AC 621 ms
44,056 KB
testcase_23 AC 628 ms
43,960 KB
testcase_24 AC 630 ms
43,952 KB
testcase_25 AC 651 ms
43,952 KB
testcase_26 AC 660 ms
43,956 KB
testcase_27 AC 664 ms
44,080 KB
testcase_28 AC 663 ms
43,956 KB
testcase_29 AC 613 ms
43,956 KB
testcase_30 AC 666 ms
43,956 KB
testcase_31 AC 653 ms
43,952 KB
testcase_32 AC 644 ms
43,952 KB
testcase_33 AC 658 ms
43,952 KB
testcase_34 AC 650 ms
44,072 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

N=int(input())
A=list(map(int,input().split()))
B=list(map(int,input().split()))
C=[A[i]^B[i] for i in  range(N)]+[1-A[N-1]^B[N-1]]
D=[C[i] for i in range(N) if C[i]!=C[i+1] ]
print(D.count(1))
0