結果
問題 |
No.582 キャンディー・ボックス3
|
ユーザー |
|
提出日時 | 2024-12-15 19:22:59 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
WA
|
実行時間 | - |
コード長 | 236 bytes |
コンパイル時間 | 287 ms |
コンパイル使用メモリ | 12,544 KB |
実行使用メモリ | 10,752 KB |
最終ジャッジ日時 | 2024-12-15 19:23:02 |
合計ジャッジ時間 | 1,661 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 12 WA * 5 |
ソースコード
n = int(input()) C = list(map(int, input().split())) box1 = box2 = 0 for c in C: if c == 1: box1 += 1 if c == 2: box2 += 1 if (box1 % 2 == 1 and box2 == 1) or box1 % 2 == 1: print("A") else: print("B")