結果
| 問題 | No.5 数字のブロック |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2023-11-12 02:39:33 |
| 言語 | PyPy3 (7.3.17) |
| 結果 |
AC
|
| 実行時間 | 31 ms / 5,000 ms |
| コード長 | 136 bytes |
| 記録 | |
| コンパイル時間 | 233 ms |
| コンパイル使用メモリ | 85,376 KB |
| 実行使用メモリ | 59,904 KB |
| 最終ジャッジ日時 | 2026-04-13 05:41:47 |
| 合計ジャッジ時間 | 2,448 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge2_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 34 |
ソースコード
L = int(input()) N = int(input()) W = sorted(map(int, input().split())) i = 0 while i < N and W[i] <= L: L -= W[i] i += 1 print(i)