結果
| 問題 | No.582 キャンディー・ボックス3 |
| コンテスト | |
| ユーザー |
夕叢霧香(ゆうむらきりか)
|
| 提出日時 | 2017-10-27 22:46:01 |
| 言語 | Python3 (3.15.0 + numpy 2.5.4 + scipy 1.18.1 + ACL) |
| 結果 |
AC
不安定
|
| 実行時間 | 26 ms / 2,000 ms |
| + 365µs | |
| コード長 | 271 bytes |
| 記録 | |
| コンパイル時間 | 500 ms |
| コンパイル使用メモリ | 14,720 KB |
| 実行使用メモリ | 11,392 KB |
| 最終ジャッジ日時 | 2026-10-19 12:50:38 |
| 合計ジャッジ時間 | 2,527 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge1_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 18 |
ソースコード
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')
夕叢霧香(ゆうむらきりか)