結果
| 問題 | No.5 数字のブロック |
| コンテスト | |
| ユーザー |
Michirakara
|
| 提出日時 | 2022-11-28 01:16:41 |
| 言語 | PyPy3 (7.3.23 + ACL) |
| 結果 |
AC
不安定
|
| 実行時間 | 30 ms / 5,000 ms |
| + 357µs | |
| コード長 | 152 bytes |
| 記録 | |
| コンパイル時間 | 75 ms |
| コンパイル使用メモリ | 80,512 KB |
| 実行使用メモリ | 62,208 KB |
| 最終ジャッジ日時 | 2026-09-10 06:35:48 |
| 合計ジャッジ時間 | 2,824 ms |
|
ジャッジサーバーID (参考情報) |
judge3_1 / judge1_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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