結果
| 問題 | No.5 数字のブロック |
| コンテスト | |
| ユーザー |
Michirakara
|
| 提出日時 | 2022-11-28 01:15:47 |
| 言語 | PyPy3 (7.3.17) |
| 結果 |
RE
|
| 実行時間 | - |
| コード長 | 152 bytes |
| 記録 | |
| コンパイル時間 | 124 ms |
| コンパイル使用メモリ | 85,248 KB |
| 実行使用メモリ | 66,560 KB |
| 最終ジャッジ日時 | 2026-04-20 12:03:55 |
| 合計ジャッジ時間 | 2,314 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge2_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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