結果

問題 No.1183 コイン遊び
ユーザー 37zigen37zigen
提出日時 2020-08-22 17:43:58
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 717 ms / 2,000 ms
コード長 206 bytes
コンパイル時間 78 ms
コンパイル使用メモリ 12,672 KB
実行使用メモリ 37,388 KB
最終ジャッジ日時 2024-04-23 11:33:17
合計ジャッジ時間 17,499 ms
ジャッジサーバーID
(参考情報)
judge3 / judge4
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 26 ms
10,752 KB
testcase_01 AC 26 ms
10,880 KB
testcase_02 AC 32 ms
10,752 KB
testcase_03 AC 28 ms
10,752 KB
testcase_04 AC 27 ms
10,752 KB
testcase_05 AC 26 ms
10,752 KB
testcase_06 AC 25 ms
10,752 KB
testcase_07 AC 26 ms
10,752 KB
testcase_08 AC 26 ms
10,880 KB
testcase_09 AC 27 ms
10,752 KB
testcase_10 AC 39 ms
11,392 KB
testcase_11 AC 67 ms
12,480 KB
testcase_12 AC 449 ms
26,560 KB
testcase_13 AC 398 ms
25,112 KB
testcase_14 AC 666 ms
34,580 KB
testcase_15 AC 696 ms
36,304 KB
testcase_16 AC 715 ms
36,468 KB
testcase_17 AC 714 ms
36,644 KB
testcase_18 AC 693 ms
37,280 KB
testcase_19 AC 707 ms
36,000 KB
testcase_20 AC 699 ms
36,056 KB
testcase_21 AC 611 ms
36,124 KB
testcase_22 AC 614 ms
36,060 KB
testcase_23 AC 702 ms
36,896 KB
testcase_24 AC 632 ms
36,124 KB
testcase_25 AC 717 ms
36,124 KB
testcase_26 AC 701 ms
36,124 KB
testcase_27 AC 706 ms
36,056 KB
testcase_28 AC 711 ms
36,124 KB
testcase_29 AC 615 ms
37,172 KB
testcase_30 AC 707 ms
37,388 KB
testcase_31 AC 700 ms
37,148 KB
testcase_32 AC 704 ms
36,060 KB
testcase_33 AC 701 ms
36,120 KB
testcase_34 AC 695 ms
36,048 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

N=int(input())
A=list(map(int,input().split()))
B=list(map(int,input().split()))
for i in range(N):
    A[i]^=B[i]
ans=0
for i in range(N):
    if A[i]==1 and (i==0 or A[i-1]==0):
        ans+=1

print(ans)
0