結果

問題 No.582 キャンディー・ボックス3
ユーザー roarisroaris
提出日時 2019-07-26 12:21:05
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 305 bytes
コンパイル時間 108 ms
コンパイル使用メモリ 10,652 KB
実行使用メモリ 8,268 KB
最終ジャッジ日時 2023-09-15 00:16:38
合計ジャッジ時間 1,593 ms
ジャッジサーバーID
(参考情報)
judge12 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 16 ms
8,172 KB
testcase_01 AC 16 ms
8,124 KB
testcase_02 AC 16 ms
8,176 KB
testcase_03 AC 15 ms
7,860 KB
testcase_04 AC 16 ms
8,184 KB
testcase_05 AC 15 ms
8,232 KB
testcase_06 AC 15 ms
7,920 KB
testcase_07 AC 15 ms
8,268 KB
testcase_08 WA -
testcase_09 WA -
testcase_10 AC 15 ms
7,788 KB
testcase_11 WA -
testcase_12 AC 15 ms
8,160 KB
testcase_13 AC 14 ms
7,968 KB
testcase_14 AC 14 ms
7,832 KB
testcase_15 AC 15 ms
7,804 KB
testcase_16 WA -
testcase_17 AC 15 ms
8,204 KB
testcase_18 AC 15 ms
8,184 KB
testcase_19 AC 15 ms
8,188 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

N = int(input())
C = list(map(int, input().split()))
two = 0

for C_i in C:
    if C_i == 2:
        two += 1
        
    if C_i >= 3:
        print('B')
        exit()

if two >= 2:
    print('B')
    exit()

if (two == 1 and N % 2 == 0) or (two == 0 and N % 2 == 1):
    print('A')
else:
    print('B')
0