結果
| 問題 | No.5 数字のブロック |
| コンテスト | |
| ユーザー |
nehan_der_thal
|
| 提出日時 | 2020-03-09 16:16:10 |
| 言語 | PyPy3 (7.3.23 + ACL) |
| 結果 |
AC
不安定
|
| 実行時間 | 28 ms / 5,000 ms |
| + 283µs | |
| コード長 | 147 bytes |
| 記録 | |
| コンパイル時間 | 61 ms |
| コンパイル使用メモリ | 80,800 KB |
| 実行使用メモリ | 63,444 KB |
| 最終ジャッジ日時 | 2026-09-21 01:35:44 |
| 合計ジャッジ時間 | 3,072 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge4_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 34 |
ソースコード
L=int(input())
N=int(input())
X=list(map(int, input().split()))
X.sort()
y=0
r=0
for x in X:
y+=x
if y > L:
break
r+=1
print(r)
nehan_der_thal