結果
問題 |
No.582 キャンディー・ボックス3
|
ユーザー |
|
提出日時 | 2018-09-18 14:28:41 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
WA
|
実行時間 | - |
コード長 | 248 bytes |
コンパイル時間 | 65 ms |
コンパイル使用メモリ | 12,544 KB |
実行使用メモリ | 10,624 KB |
最終ジャッジ日時 | 2024-07-18 07:58:47 |
合計ジャッジ時間 | 1,238 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 13 WA * 4 |
ソースコード
N = int(input()) l = list(map(int, input().split())) bwin_f = 0 two_f = 0 for l_i in l: if l_i > 2: bwin_f += 1 if l_i == 2: two_f += 1 if bwin_f == 0 and two_f < 2 and N % 2 == 0: print("A") else: print("B")