結果
| 問題 |
No.1183 コイン遊び
|
| コンテスト | |
| ユーザー |
toshiro_yanagi
|
| 提出日時 | 2023-06-30 23:31:52 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
AC
|
| 実行時間 | 910 ms / 2,000 ms |
| コード長 | 289 bytes |
| コンパイル時間 | 321 ms |
| コンパイル使用メモリ | 12,672 KB |
| 実行使用メモリ | 36,020 KB |
| 最終ジャッジ日時 | 2024-07-07 11:24:33 |
| 合計ジャッジ時間 | 22,130 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 32 |
ソースコード
n = int(input())
a, b = [[*map(int, input().split())] for _ in range(2)]
for i, bi in enumerate(b):
a[i] = (a[i] + bi) % 2
flg = True
cnt = 0
while len(a) > 0:
if a.pop() == 1:
if flg:
cnt += 1
flg = False
else:
flg = True
print(cnt)
toshiro_yanagi