結果
| 問題 | No.5 数字のブロック |
| コンテスト | |
| ユーザー |
nehan_der_thal
|
| 提出日時 | 2020-03-09 16:16:10 |
| 言語 | PyPy3 (7.3.17) |
| 結果 |
AC
|
| 実行時間 | 28 ms / 5,000 ms |
| コード長 | 147 bytes |
| 記録 | |
| コンパイル時間 | 363 ms |
| コンパイル使用メモリ | 85,192 KB |
| 実行使用メモリ | 60,488 KB |
| 最終ジャッジ日時 | 2026-05-08 10:27:17 |
| 合計ジャッジ時間 | 2,488 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge3_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