結果
| 問題 |
No.582 キャンディー・ボックス3
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2022-10-18 19:09:30 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
RE
|
| 実行時間 | - |
| コード長 | 365 bytes |
| コンパイル時間 | 78 ms |
| コンパイル使用メモリ | 12,416 KB |
| 実行使用メモリ | 10,752 KB |
| 最終ジャッジ日時 | 2024-06-29 02:09:01 |
| 合計ジャッジ時間 | 1,471 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 13 RE * 4 |
ソースコード
def main():
_ = int(input())
C = list(map(int, input().split()))
if sum(C) % 2 == 0:
print("B")
return
B_choice = list(filter(lambda num: num >= 2, C))
if len(B_choice) >= 2:
print("B")
return
if B_choice[0] > 2:
print("B")
else:
print("A")
if __name__ == "__main__":
main()