結果
問題 | No.582 キャンディー・ボックス3 |
ユーザー |
|
提出日時 | 2017-10-27 23:42:58 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
WA
|
実行時間 | - |
コード長 | 359 bytes |
コンパイル時間 | 146 ms |
コンパイル使用メモリ | 12,288 KB |
実行使用メモリ | 10,624 KB |
最終ジャッジ日時 | 2024-11-21 23:34:10 |
合計ジャッジ時間 | 1,639 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 10 WA * 7 |
ソースコード
def main(): N = int(input()) C = tuple(map(int, input().split())) sumc = sum(C) maxc = max(C) if maxc == 1: if sumc % 2: ans = 'B' else: ans = 'A' elif maxc == 2: if sumc % 2: ans = 'A' else: ans = 'B' else: ans = 'B' print(ans) main()