結果
| 問題 | No.582 キャンディー・ボックス3 |
| コンテスト | |
| ユーザー |
夕叢霧香(ゆうむらきりか)
|
| 提出日時 | 2017-10-27 22:46:01 |
| 言語 | Python3 (3.14.7 + numpy 2.5.2 + scipy 1.18.0 + ACL) |
| 結果 |
AC
不安定
|
| 実行時間 | 21 ms / 2,000 ms |
| + 445µs | |
| コード長 | 271 bytes |
| 記録 | |
| コンパイル時間 | 123 ms |
| コンパイル使用メモリ | 14,976 KB |
| 実行使用メモリ | 11,008 KB |
| 最終ジャッジ日時 | 2026-09-28 02:50:20 |
| 合計ジャッジ時間 | 1,953 ms |
|
ジャッジサーバーID (参考情報) |
judge3_1 / judge1_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 17 |
ソースコード
n = int(input())
c = sorted(filter(lambda x: x != 0, map(int, input().split())))
a_is_winning = False
if (len(c) % 2 == 1 and c[-1] == 1) or \
(len(c) >= 2 and len(c) % 2 == 0 and c[-1] == 2 and c[-2] == 1):
a_is_winning = True
print('A' if a_is_winning else 'B')
夕叢霧香(ゆうむらきりか)