結果
| 問題 | No.5 数字のブロック |
| コンテスト | |
| ユーザー |
a_ten
|
| 提出日時 | 2016-03-08 21:09:11 |
| 言語 | PyPy2 (7.3.15) |
| 結果 |
RE
|
| 実行時間 | - |
| コード長 | 206 bytes |
| 記録 | |
| コンパイル時間 | 132 ms |
| コンパイル使用メモリ | 76,952 KB |
| 最終ジャッジ日時 | 2025-12-03 19:37:08 |
|
ジャッジサーバーID (参考情報) |
judge3 / 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
a_ten