結果

問題 No.5 数字のブロック
ユーザー arahi10
提出日時 2021-02-19 19:44:15
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
AC  
実行時間 33 ms / 5,000 ms
コード長 192 bytes
コンパイル時間 144 ms
コンパイル使用メモリ 12,416 KB
実行使用メモリ 11,520 KB
最終ジャッジ日時 2024-09-16 15:49:27
合計ジャッジ時間 2,531 ms
ジャッジサーバーID
(参考情報)
judge5 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 34
権限があれば一括ダウンロードができます

ソースコード

diff #

from itertools import accumulate
l,n,L=int(input()),int(input()),list(accumulate(sorted(list(map(int,input().split())))))
from bisect import bisect_left as bl,bisect_right as br
print(br(L,l))
0