結果
| 問題 | No.5 数字のブロック |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2021-06-19 16:09:06 |
| 言語 | PyPy3 (7.3.17) |
| 結果 |
AC
|
| 実行時間 | 28 ms / 5,000 ms |
| コード長 | 202 bytes |
| 記録 | |
| コンパイル時間 | 126 ms |
| コンパイル使用メモリ | 85,380 KB |
| 実行使用メモリ | 61,996 KB |
| 最終ジャッジ日時 | 2026-03-07 04:31:09 |
| 合計ジャッジ時間 | 1,931 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 34 |
ソースコード
inpl = lambda: list(map(int,input().split()))
L = int(input())
N = int(input())
W = sorted(inpl())
S = 0
for i in range(N):
S += W[i]
if S > L:
print(i)
break
else:
print(N)