結果
| 問題 | No.582 キャンディー・ボックス3 |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2024-12-15 19:50:24 |
| 言語 | Python3 (3.14.3 + numpy 2.4.4 + scipy 1.17.1) |
| 結果 |
AC
|
| 実行時間 | 94 ms / 2,000 ms |
| コード長 | 274 bytes |
| 記録 | |
| コンパイル時間 | 610 ms |
| コンパイル使用メモリ | 20,828 KB |
| 実行使用メモリ | 15,360 KB |
| 最終ジャッジ日時 | 2026-05-26 04:11:04 |
| 合計ジャッジ時間 | 3,558 ms |
|
ジャッジサーバーID (参考情報) |
judge2_0 / judge3_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 17 |
ソースコード
n = int(input())
C = list(map(int, input().split()))
box1 = box2 = box3 = 0
for c in C:
if c == 1:
box1 += 1
elif c == 2:
box2 += 1
elif c > 2:
box3 += 1
if box1 % 2 == 1 and box2 <= 1 and box3 == 0:
print("A")
else:
print("B")