結果
| 問題 | No.1183 コイン遊び |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2020-08-22 13:08:05 |
| 言語 | PyPy3 (7.3.17) |
| 結果 |
AC
|
| 実行時間 | 384 ms / 2,000 ms |
| コード長 | 354 bytes |
| 記録 | |
| コンパイル時間 | 386 ms |
| コンパイル使用メモリ | 85,656 KB |
| 実行使用メモリ | 296,336 KB |
| 最終ジャッジ日時 | 2026-05-03 22:03:51 |
| 合計ジャッジ時間 | 11,261 ms |
|
ジャッジサーバーID (参考情報) |
judge2_1 / judge3_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 32 |
ソースコード
N = int(input())
A = list(map(int, input().split())) + [0]
B = list(map(int, input().split())) + [0]
x = 0
ans = 0
for i in range(N + 1):
if A[i] == B[i] and x == 1:
ans += 1
x = 0
elif A[i] != B[i] and x == 0:
ans += 1
x = 1
print(ans // 2)