結果
問題 |
No.5 数字のブロック
|
ユーザー |
|
提出日時 | 2022-05-26 19:36:27 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
RE
|
実行時間 | - |
コード長 | 171 bytes |
コンパイル時間 | 119 ms |
コンパイル使用メモリ | 12,544 KB |
実行使用メモリ | 11,776 KB |
最終ジャッジ日時 | 2024-09-20 15:05:49 |
合計ジャッジ時間 | 1,958 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 24 RE * 10 |
ソースコード
L = int(input()) N = int(input()) l = list(map(int, input().split())) l.sort() i = 0 s = 0 x = 0 while (i < N + 1): s += l[i] i += 1 if s > L: break print(i - 1)