結果
| 問題 |
No.5 数字のブロック
|
| ユーザー |
|
| 提出日時 | 2019-01-15 15:27:01 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
AC
|
| 実行時間 | 43 ms / 5,000 ms |
| コード長 | 168 bytes |
| コンパイル時間 | 235 ms |
| コンパイル使用メモリ | 82,116 KB |
| 実行使用メモリ | 61,204 KB |
| 最終ジャッジ日時 | 2024-11-18 12:48:30 |
| 合計ジャッジ時間 | 2,504 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 34 |
ソースコード
L = int(input()) M = int(input()) N = list(map(int, input().split())) cnt = 0 N2 = sorted(N) for x in range(M): L -= N2[x] if L < 0: break cnt = x+1 print(cnt)