結果
| 問題 | No.5 数字のブロック |
| コンテスト | |
| ユーザー |
tkmgami2
|
| 提出日時 | 2019-12-10 12:17:42 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 204 bytes |
| コンパイル時間 | 90 ms |
| コンパイル使用メモリ | 12,800 KB |
| 実行使用メモリ | 11,776 KB |
| 最終ジャッジ日時 | 2024-06-24 00:40:56 |
| 合計ジャッジ時間 | 2,124 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 8 WA * 26 |
ソースコード
L = int(input())
N = int(input())
W_n = list(map(int, input().split()))
W_n.sort()
box = []
for W_i in W_n:
if sum(box) > 100:
box.pop()
break
box.append(W_i)
print(len(box))
tkmgami2