結果
| 問題 | No.1183 コイン遊び |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2020-08-24 00:03:08 |
| 言語 | Python3 (3.14.7 + numpy 2.5.2 + scipy 1.18.0 + ACL) |
| 結果 |
AC
不安定
|
| 実行時間 | 378 ms / 2,000 ms |
| + 60µs | |
| コード長 | 221 bytes |
| 記録 | |
| コンパイル時間 | 56 ms |
| コンパイル使用メモリ | 14,976 KB |
| 実行使用メモリ | 40,300 KB |
| 最終ジャッジ日時 | 2026-09-18 22:09:29 |
| 合計ジャッジ時間 | 11,928 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge3_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 32 |
ソースコード
n = int(input())
a = list(map(int, input().split()))
b = list(map(int, input().split()))
cnt = 0
for i in range(n):
if (a[i] != b[i]):
if (i == 0 or (i != 0 and a[i - 1] == b[i - 1])): cnt += 1
print(cnt)