結果
問題 | No.29 パワーアップ |
ユーザー |
![]() |
提出日時 | 2017-12-31 16:39:57 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
AC
|
実行時間 | 36 ms / 5,000 ms |
コード長 | 328 bytes |
コンパイル時間 | 249 ms |
コンパイル使用メモリ | 12,416 KB |
実行使用メモリ | 10,752 KB |
最終ジャッジ日時 | 2024-12-21 15:28:42 |
合計ジャッジ時間 | 1,763 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 22 |
ソースコード
battle = int(input()) items = [0]*11 powerUp = 0 option = 0 for i in range(battle): get_item = list(map(int, input().split())) for j in range(3): items[get_item[j]] += 1 for item in items: powerUp += int(item/2) item = item%2 option += item powerUp += int(option/4) print(powerUp)