結果

問題 No.582 キャンディー・ボックス3
ユーザー RyutoRyuto
提出日時 2017-12-26 22:46:53
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 74 ms / 2,000 ms
コード長 273 bytes
コンパイル時間 284 ms
コンパイル使用メモリ 86,824 KB
実行使用メモリ 71,288 KB
最終ジャッジ日時 2023-08-22 22:06:21
合計ジャッジ時間 2,718 ms
ジャッジサーバーID
(参考情報)
judge12 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 72 ms
71,012 KB
testcase_01 AC 71 ms
71,072 KB
testcase_02 AC 73 ms
71,028 KB
testcase_03 AC 73 ms
71,268 KB
testcase_04 AC 73 ms
71,104 KB
testcase_05 AC 71 ms
71,044 KB
testcase_06 AC 73 ms
71,220 KB
testcase_07 AC 73 ms
71,164 KB
testcase_08 AC 72 ms
71,264 KB
testcase_09 AC 73 ms
71,220 KB
testcase_10 AC 74 ms
71,288 KB
testcase_11 AC 71 ms
71,176 KB
testcase_12 AC 72 ms
71,264 KB
testcase_13 AC 72 ms
70,996 KB
testcase_14 AC 72 ms
70,916 KB
testcase_15 AC 73 ms
71,248 KB
testcase_16 AC 72 ms
71,196 KB
testcase_17 AC 71 ms
70,936 KB
testcase_18 AC 72 ms
71,244 KB
testcase_19 AC 71 ms
71,140 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

N = int(input())
boxes = [int(x) for x in input().split()]

n1 = 0
n2 = 0
n3 = 0
for box in boxes:
    if box == 1:
        n1 += 1
    elif box == 2:
        n2 += 1
    elif box > 2:
        n3 += 1

if n1%2==1 and n2 <= 1 and n3 == 0:
    print('A')
else:
    print('B')
0