結果
問題 |
No.582 キャンディー・ボックス3
|
ユーザー |
|
提出日時 | 2017-12-26 22:46:13 |
言語 | PyPy3 (7.3.15) |
結果 |
WA
|
実行時間 | - |
コード長 | 265 bytes |
コンパイル時間 | 306 ms |
コンパイル使用メモリ | 82,416 KB |
実行使用メモリ | 53,748 KB |
最終ジャッジ日時 | 2024-12-18 00:35:01 |
合計ジャッジ時間 | 1,864 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 14 WA * 3 |
ソースコード
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 else: n3 += 1 if n1%2==1 and n2 <= 1 and n3 == 0: print('A') else: print('B')