結果
問題 | No.1183 コイン遊び |
ユーザー |
![]() |
提出日時 | 2025-03-20 21:03:14 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 364 ms / 2,000 ms |
コード長 | 223 bytes |
コンパイル時間 | 168 ms |
コンパイル使用メモリ | 82,368 KB |
実行使用メモリ | 276,332 KB |
最終ジャッジ日時 | 2025-03-20 21:03:32 |
合計ジャッジ時間 | 10,716 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 32 |
ソースコード
n = int(input())a = list(map(int, input().split()))b = list(map(int, input().split()))count = 0prev = 0for ai, bi in zip(a, b):c = ai ^ biif c == 1 and prev == 0:count += 1prev = cprint(count)