結果
問題 |
No.5 数字のブロック
|
ユーザー |
![]() |
提出日時 | 2020-04-20 13:21:47 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
RE
|
実行時間 | - |
コード長 | 168 bytes |
コンパイル時間 | 188 ms |
コンパイル使用メモリ | 12,544 KB |
実行使用メモリ | 10,752 KB |
最終ジャッジ日時 | 2024-10-06 08:38:35 |
合計ジャッジ時間 | 1,976 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | RE * 34 |
ソースコード
L=int(input()) N=int(input()) lis=list(map(int,input.split())) lis.sort() s=0 t=0 for i in lis: if L<s+i: break else: s+=i t+=1 print(t)