結果
問題 | No.169 何分かかるの!? |
ユーザー |
![]() |
提出日時 | 2019-03-30 17:05:17 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
RE
|
実行時間 | - |
コード長 | 236 bytes |
コンパイル時間 | 239 ms |
コンパイル使用メモリ | 12,800 KB |
実行使用メモリ | 10,880 KB |
最終ジャッジ日時 | 2024-11-15 20:15:14 |
合計ジャッジ時間 | 1,813 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | RE * 2 |
other | RE * 22 |
ソースコード
# -*- coding: utf-8 -*- n,m = map(int,input().split()) c = list(map(int,input().split())) c.sort() c_sum = [0] * n for i in range(n): c_sum[i] = sum(c[:i+1]) for i in range(n): if c_sum[i] > m: print(i) break