結果
| 問題 | No.5 数字のブロック |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2021-02-18 00:03:38 |
| 言語 | PyPy3 (7.3.17) |
| 結果 |
AC
|
| 実行時間 | 67 ms / 5,000 ms |
| + 936µs | |
| コード長 | 167 bytes |
| 記録 | |
| コンパイル時間 | 286 ms |
| コンパイル使用メモリ | 95,784 KB |
| 実行使用メモリ | 83,328 KB |
| 最終ジャッジ日時 | 2026-08-27 00:03:43 |
| 合計ジャッジ時間 | 4,523 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge3_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 34 |
ソースコード
l = int(input())
n = int(input())
w = sorted(list(map(int,input().split())))
ans = 0
for i in range(n):
ans += w[i]
if ans > l:
exit(print(i))
print(n)