結果

問題 No.1183 コイン遊び
ユーザー SPD_9X2
提出日時 2020-08-22 13:05:02
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 346 ms / 2,000 ms
コード長 299 bytes
コンパイル時間 447 ms
コンパイル使用メモリ 81,920 KB
実行使用メモリ 275,776 KB
最終ジャッジ日時 2024-10-15 07:10:04
合計ジャッジ時間 10,003 ms
ジャッジサーバーID
(参考情報)
judge4 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 32
権限があれば一括ダウンロードができます

ソースコード

diff #

from sys import stdin

N = int(stdin.readline())

A = list(map(int,stdin.readline().split()))
B = list(map(int,stdin.readline().split()))

ans = 0
now = 0
for i in range(N):

    if A[i] ^ B[i] == 1:
       if now == 0:
           now = 1
           ans += 1
    else:
        now = 0

print (ans)
0