結果
| 問題 | No.5 数字のブロック |
| コンテスト | |
| ユーザー |
Kiri8128
|
| 提出日時 | 2020-09-06 00:23:19 |
| 言語 | PyPy3 (7.3.17) |
| 結果 |
AC
|
| 実行時間 | 30 ms / 5,000 ms |
| コード長 | 188 bytes |
| 記録 | |
| コンパイル時間 | 277 ms |
| コンパイル使用メモリ | 85,120 KB |
| 実行使用メモリ | 59,776 KB |
| 最終ジャッジ日時 | 2026-05-23 03:16:09 |
| 合計ジャッジ時間 | 2,720 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge1_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 34 |
ソースコード
L = int(input())
N = int(input())
W = sorted([int(a) for a in input().split()])
s = 0
for i, w in enumerate(W):
s += w
if s > L:
print(i)
break
else:
print(N)
Kiri8128