結果

問題 No.582 キャンディー・ボックス3
ユーザー dragonlaunchdragonlaunch
提出日時 2017-11-12 02:51:47
言語 Python3
(3.11.6 + numpy 1.26.0 + scipy 1.11.3)
結果
WA  
実行時間 -
コード長 334 bytes
コンパイル時間 118 ms
コンパイル使用メモリ 10,612 KB
実行使用メモリ 7,936 KB
最終ジャッジ日時 2023-08-16 07:55:27
合計ジャッジ時間 1,405 ms
ジャッジサーバーID
(参考情報)
judge11 / judge13
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 16 ms
7,800 KB
testcase_01 AC 16 ms
7,816 KB
testcase_02 AC 16 ms
7,808 KB
testcase_03 AC 16 ms
7,776 KB
testcase_04 AC 16 ms
7,824 KB
testcase_05 AC 16 ms
7,936 KB
testcase_06 AC 16 ms
7,832 KB
testcase_07 AC 16 ms
7,876 KB
testcase_08 WA -
testcase_09 WA -
testcase_10 WA -
testcase_11 AC 16 ms
7,808 KB
testcase_12 AC 16 ms
7,728 KB
testcase_13 WA -
testcase_14 AC 17 ms
7,776 KB
testcase_15 AC 16 ms
7,776 KB
testcase_16 WA -
testcase_17 AC 17 ms
7,800 KB
testcase_18 AC 16 ms
7,812 KB
testcase_19 AC 16 ms
7,740 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

N = int(input())
C = [int(i) for i in input().split()]
count = 0
result = "A"
sum = 0
for i in range(N):
    sum += C[i]
    if C[i] >= 3:
        result = "B"
        break
    if C[i] >= 2:
        count += 1
    if count >= 2:
        result="B"
        break
    else:
        if sum % 2 == 0:
            result="B"
print(result)
0