結果
| 問題 | No.5 数字のブロック |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2020-09-30 11:40:12 |
| 言語 | Python3 (3.14.3 + numpy 2.4.4 + scipy 1.17.1) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 229 bytes |
| 記録 | |
| コンパイル時間 | 385 ms |
| コンパイル使用メモリ | 20,668 KB |
| 実行使用メモリ | 15,392 KB |
| 最終ジャッジ日時 | 2026-03-27 03:57:03 |
| 合計ジャッジ時間 | 4,605 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge2_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 27 WA * 7 |
ソースコード
L = int(input())
N = int(input())
W = list(map(int, input().split()))
temp = 0
list.sort(W)
for i in range(N):
temp += W[i]
if temp > L:
print(i)
break
elif temp == L:
print(i+1)
break