結果
| 問題 |
No.5 数字のブロック
|
| ユーザー |
Michirakara
|
| 提出日時 | 2022-11-28 01:16:41 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
AC
|
| 実行時間 | 38 ms / 5,000 ms |
| コード長 | 152 bytes |
| コンパイル時間 | 182 ms |
| コンパイル使用メモリ | 82,264 KB |
| 実行使用メモリ | 59,776 KB |
| 最終ジャッジ日時 | 2024-10-04 17:57:55 |
| 合計ジャッジ時間 | 2,290 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 34 |
ソースコード
l=int(input())
w=int(input())
a=sorted(map(int,input().split()))
c=0
for i in range(w):
c+=a[i]
if c>l:
print(i)
exit()
print(w)
Michirakara