結果
問題 |
No.582 キャンディー・ボックス3
|
ユーザー |
![]() |
提出日時 | 2025-04-16 15:47:35 |
言語 | PyPy3 (7.3.15) |
結果 |
WA
|
実行時間 | - |
コード長 | 224 bytes |
コンパイル時間 | 281 ms |
コンパイル使用メモリ | 81,732 KB |
実行使用メモリ | 53,488 KB |
最終ジャッジ日時 | 2025-04-16 15:48:35 |
合計ジャッジ時間 | 1,565 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 12 WA * 5 |
ソースコード
n = int(input()) c = list(map(int, input().split())) ones = sum(1 for x in c if x == 1) has_large = any(x > 1 for x in c) if has_large: print("A" if ones % 2 == 1 else "B") else: print("A" if ones % 2 == 1 else "B")