結果

問題 No.5 数字のブロック
ユーザー Ohnuma
提出日時 2020-04-08 23:20:08
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
WA  
実行時間 -
コード長 168 bytes
コンパイル時間 276 ms
コンパイル使用メモリ 12,416 KB
実行使用メモリ 44,420 KB
最終ジャッジ日時 2024-07-19 05:50:15
合計ジャッジ時間 17,257 ms
ジャッジサーバーID
(参考情報)
judge1 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 27 WA * 7
権限があれば一括ダウンロードができます

ソースコード

diff #

import bisect
import numpy as np
l = int(input())
n = int(input())
w = sorted(list(map(int,input().split())))
cumsum = np.cumsum(w)
print(bisect.bisect_left(cumsum, l))
0