結果
| 問題 |
No.5 数字のブロック
|
| ユーザー |
10isiatama
|
| 提出日時 | 2024-12-05 21:04:24 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
AC
|
| 実行時間 | 49 ms / 5,000 ms |
| コード長 | 159 bytes |
| コンパイル時間 | 374 ms |
| コンパイル使用メモリ | 82,304 KB |
| 実行使用メモリ | 59,776 KB |
| 最終ジャッジ日時 | 2024-12-05 21:04:27 |
| 合計ジャッジ時間 | 2,948 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 34 |
ソースコード
l = int(input()) n = int(input()) a = list(map(int,input().split())) a.sort() tot = 0 for i in range(n): tot += a[i] if tot > l: print(i) exit() print(n)
10isiatama