結果

問題 No.582 キャンディー・ボックス3
ユーザー 👑 H20H20
提出日時 2021-02-10 11:05:59
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 74 ms / 2,000 ms
コード長 313 bytes
コンパイル時間 247 ms
コンパイル使用メモリ 87,136 KB
実行使用メモリ 71,464 KB
最終ジャッジ日時 2023-09-22 04:24:52
合計ジャッジ時間 2,574 ms
ジャッジサーバーID
(参考情報)
judge11 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 74 ms
71,236 KB
testcase_01 AC 70 ms
71,200 KB
testcase_02 AC 70 ms
71,224 KB
testcase_03 AC 70 ms
71,440 KB
testcase_04 AC 71 ms
71,224 KB
testcase_05 AC 70 ms
71,284 KB
testcase_06 AC 70 ms
71,404 KB
testcase_07 AC 71 ms
71,396 KB
testcase_08 AC 70 ms
71,248 KB
testcase_09 AC 68 ms
71,224 KB
testcase_10 AC 71 ms
71,464 KB
testcase_11 AC 70 ms
71,284 KB
testcase_12 AC 69 ms
71,084 KB
testcase_13 AC 71 ms
71,336 KB
testcase_14 AC 71 ms
71,440 KB
testcase_15 AC 70 ms
71,292 KB
testcase_16 AC 70 ms
71,336 KB
testcase_17 AC 70 ms
71,020 KB
testcase_18 AC 71 ms
71,340 KB
testcase_19 AC 70 ms
71,340 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

N = int(input())
C = list(map(int,input().split()))
one = 0
two = 0
more = False 
for i in range(N):
    if C[i]==1:
        one+=1
    if C[i]==2:
        two+=1
    if C[i]>2:
        more=True
if not more and two<=1:
    if (one+two*2)%2==1:
        print('A')
    else:
        print('B')
else:
    print('B')
0