結果
問題 |
No.5 数字のブロック
|
ユーザー |
|
提出日時 | 2019-01-15 15:24:49 |
言語 | PyPy3 (7.3.15) |
結果 |
WA
|
実行時間 | - |
コード長 | 168 bytes |
コンパイル時間 | 292 ms |
コンパイル使用メモリ | 82,304 KB |
実行使用メモリ | 60,032 KB |
最終ジャッジ日時 | 2024-06-25 00:03:53 |
合計ジャッジ時間 | 2,699 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 27 WA * 7 |
ソースコード
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)