結果
問題 |
No.5 数字のブロック
|
ユーザー |
![]() |
提出日時 | 2016-03-08 21:09:11 |
言語 | Python2 (2.7.18) |
結果 |
RE
|
実行時間 | - |
コード長 | 206 bytes |
コンパイル時間 | 238 ms |
コンパイル使用メモリ | 7,040 KB |
実行使用メモリ | 7,552 KB |
最終ジャッジ日時 | 2024-09-24 15:00:50 |
合計ジャッジ時間 | 1,656 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 24 RE * 10 |
ソースコード
#coding:utf-8 from heapq import heapify,heappop L=input() N=input() W_str=raw_input().split() W=[int(i) for i in W_str] heapify(W) cnt=0 while True: L-=heappop(W) if L < 0: break cnt+=1 print cnt