結果
| 問題 | No.5 数字のブロック |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2019-01-15 15:18:38 |
| 言語 | PyPy3 (7.3.17) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 171 bytes |
| 記録 | |
| コンパイル時間 | 154 ms |
| コンパイル使用メモリ | 85,160 KB |
| 実行使用メモリ | 61,720 KB |
| 最終ジャッジ日時 | 2026-03-11 03:55:06 |
| 合計ジャッジ時間 | 2,050 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge1_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 5 WA * 29 |
ソースコード
L = int(input()) M = int(input()) N = list(map(int, input().split())) cnt = 0 N2 = sorted(N) for x in range(M-1): L -= N2[x] cnt = x+1 if L <= 0: break print(cnt)