結果
問題 |
No.5 数字のブロック
|
ユーザー |
![]() |
提出日時 | 2020-03-14 20:46:43 |
言語 | PyPy3 (7.3.15) |
結果 |
RE
|
実行時間 | - |
コード長 | 237 bytes |
コンパイル時間 | 178 ms |
コンパイル使用メモリ | 82,688 KB |
実行使用メモリ | 64,768 KB |
最終ジャッジ日時 | 2024-11-23 21:28:41 |
合計ジャッジ時間 | 2,967 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 20 WA * 4 RE * 10 |
ソースコード
l = int(input()) n = int(input()) nums = list(map(int,input().split())) nums.sort() count = 1 num = nums[0] for i in range(n): num = num + nums[i+1] if num < l: count +=1 if num > l: print(count) break