結果
| 問題 |
No.582 キャンディー・ボックス3
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2017-10-27 23:01:33 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 294 bytes |
| コンパイル時間 | 78 ms |
| コンパイル使用メモリ | 12,416 KB |
| 実行使用メモリ | 10,624 KB |
| 最終ジャッジ日時 | 2024-11-21 22:41:02 |
| 合計ジャッジ時間 | 1,355 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 6 WA * 11 |
ソースコード
N = int(input())
boxes = list(map(int,input().split()))
choiceA = 0
choiceB = 0
for candy in boxes:
if candy == 0:
choiceB += 1
elif candy % 2 == 1:
choiceB += 1
elif candy % 2 == 0:
choiceA += 1
if choiceA >= choiceB:
print("A")
else:
print("B")