結果
問題 | No.582 キャンディー・ボックス3 |
ユーザー |
👑 |
提出日時 | 2022-01-19 23:18:10 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 41 ms / 2,000 ms |
コード長 | 219 bytes |
コンパイル時間 | 145 ms |
コンパイル使用メモリ | 82,140 KB |
実行使用メモリ | 52,224 KB |
最終ジャッジ日時 | 2024-11-23 14:07:27 |
合計ジャッジ時間 | 1,719 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 17 |
ソースコード
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")