結果
| 問題 | No.29 パワーアップ |
| コンテスト | |
| ユーザー |
y_nakamura_CC2
|
| 提出日時 | 2017-12-31 16:39:57 |
| 言語 | Python3 (3.14.3 + numpy 2.4.4 + scipy 1.17.1) |
| 結果 |
AC
|
| 実行時間 | 92 ms / 5,000 ms |
| + 504µs | |
| コード長 | 328 bytes |
| 記録 | |
| コンパイル時間 | 296 ms |
| コンパイル使用メモリ | 21,412 KB |
| 実行使用メモリ | 15,868 KB |
| 最終ジャッジ日時 | 2026-07-15 22:00:15 |
| 合計ジャッジ時間 | 3,638 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge2_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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)
y_nakamura_CC2