結果
| 問題 |
No.5 数字のブロック
|
| ユーザー |
nsore38088715
|
| 提出日時 | 2019-11-21 22:42:39 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
AC
|
| 実行時間 | 45 ms / 5,000 ms |
| コード長 | 191 bytes |
| コンパイル時間 | 705 ms |
| コンパイル使用メモリ | 82,344 KB |
| 実行使用メモリ | 59,264 KB |
| 最終ジャッジ日時 | 2024-10-11 02:26:19 |
| 合計ジャッジ時間 | 3,286 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 34 |
ソースコード
L = int(input().strip())
N = int(input().strip())
W = [int(i) for i in input().strip().split(' ')]
W = sorted(W)
s = 0
c = 0
for i in W:
s += i
if s > L:
break
c += 1
print(c)
nsore38088715