結果

問題 No.1183 コイン遊び
ユーザー anagohirame
提出日時 2020-08-22 13:27:32
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 359 ms / 2,000 ms
コード長 227 bytes
コンパイル時間 169 ms
コンパイル使用メモリ 82,104 KB
実行使用メモリ 276,200 KB
最終ジャッジ日時 2024-10-15 07:43:00
合計ジャッジ時間 9,743 ms
ジャッジサーバーID
(参考情報)
judge4 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 32
権限があれば一括ダウンロードができます

ソースコード

diff #

n = int(input())
A = list(map(int, input().split()))
B = list(map(int, input().split()))
ans = 0
tmp = 0
for a, b in zip(A, B):
	if a != b:
		tmp += 1
	else:
		if tmp > 0:
			ans += 1
			tmp = 0
if tmp > 0:
	ans += 1
print(ans)
0