結果
| 問題 | No.5 数字のブロック |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2021-02-18 00:03:38 |
| 言語 | PyPy3 (7.3.17) |
| 結果 |
AC
|
| 実行時間 | 57 ms / 5,000 ms |
| コード長 | 167 bytes |
| 記録 | |
| コンパイル時間 | 1,177 ms |
| コンパイル使用メモリ | 85,248 KB |
| 実行使用メモリ | 59,904 KB |
| 最終ジャッジ日時 | 2026-04-04 11:33:22 |
| 合計ジャッジ時間 | 2,143 ms |
|
ジャッジサーバーID (参考情報) |
judge2_0 / judge4_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)