結果
| 問題 |
No.5 数字のブロック
|
| ユーザー |
Michirakara
|
| 提出日時 | 2022-11-28 01:15:47 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
RE
|
| 実行時間 | - |
| コード長 | 152 bytes |
| コンパイル時間 | 292 ms |
| コンパイル使用メモリ | 82,048 KB |
| 実行使用メモリ | 66,048 KB |
| 最終ジャッジ日時 | 2024-10-04 17:56:19 |
| 合計ジャッジ時間 | 2,753 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 24 RE * 10 |
ソースコード
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()
prnit(w)
Michirakara