結果
| 問題 | No.582 キャンディー・ボックス3 |
| コンテスト | |
| ユーザー |
👑 |
| 提出日時 | 2022-01-19 23:18:10 |
| 言語 | PyPy3 (8.0.1 + ACL) |
| 結果 |
AC
不安定
|
| 実行時間 | 34 ms / 2,000 ms |
| + 154µs | |
| コード長 | 219 bytes |
| 記録 | |
| コンパイル時間 | 80 ms |
| コンパイル使用メモリ | 64,640 KB |
| 実行使用メモリ | 53,632 KB |
| 最終ジャッジ日時 | 2026-10-20 03:43:58 |
| 合計ジャッジ時間 | 2,403 ms |
|
ジャッジサーバーID (参考情報) |
judge5_0 / judge3_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 18 |
ソースコード
n = int(input())
C = list(map(int, input().split()))
A = []
for c in C:
if c != 0:
A.append(c)
else:
n -= 1
tot = sum(A)
if tot >= n + 2 or tot % 2 == 0:
print("B")
else:
print("A")