結果

問題 No.582 キャンディー・ボックス3
ユーザー rlangevinrlangevin
提出日時 2023-01-04 20:41:54
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 70 ms / 2,000 ms
コード長 156 bytes
コンパイル時間 298 ms
コンパイル使用メモリ 87,272 KB
実行使用メモリ 71,592 KB
最終ジャッジ日時 2023-08-18 17:43:57
合計ジャッジ時間 2,726 ms
ジャッジサーバーID
(参考情報)
judge15 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 65 ms
71,284 KB
testcase_01 AC 63 ms
71,588 KB
testcase_02 AC 65 ms
71,484 KB
testcase_03 AC 65 ms
71,432 KB
testcase_04 AC 68 ms
71,448 KB
testcase_05 AC 64 ms
71,348 KB
testcase_06 AC 67 ms
71,132 KB
testcase_07 AC 66 ms
71,412 KB
testcase_08 AC 65 ms
71,592 KB
testcase_09 AC 66 ms
71,340 KB
testcase_10 AC 70 ms
71,124 KB
testcase_11 AC 66 ms
71,220 KB
testcase_12 AC 65 ms
71,324 KB
testcase_13 AC 65 ms
71,424 KB
testcase_14 AC 64 ms
71,240 KB
testcase_15 AC 63 ms
71,056 KB
testcase_16 AC 69 ms
71,556 KB
testcase_17 AC 64 ms
71,268 KB
testcase_18 AC 65 ms
71,236 KB
testcase_19 AC 68 ms
71,336 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

N = int(input())
C = list(map(int, input().split()))
C.sort()
C[-1] -= 1
if max(C) >= 2:
    print("B")
elif sum(C) % 2:
    print("B")
else:
    print("A")
0