{"image_url":null,"author_url":"https://blog.hatena.ne.jp/moistx/","description":"\u89e3\u6cd5 \u3044\u304f\u3089\u304b\u30d1\u30bf\u30fc\u30f3\u3092\u30a4\u30e1\u30fc\u30b8\u3059\u308b\u3068\u3001\u9577\u3044\u306e\u304b\u3089\u9806\u306b\u6d88\u8cbb\u3057\u3066\u3044\u3051\u3070\u826f\u3044\u3053\u3068\u304c\u5206\u304b\u308b\u3002 class OlympicCandles { public: int numberOfNights(vector <int> C) { int cnt = -1; for(int i=0; i<C.size()+1; i++) { sort(ALL(C), greater<int>()); for(int j=0; j<i; j++) { if(C[j] > 0) C[j] --; else goto EXIT; } cnt ++; } EXIT:; return cnt; } };","height":"190","published":"2014-08-18 10:33:18","type":"rich","blog_title":"Logfiles","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Flogfiles.hatenablog.com%2Fentry%2F20140818%2F1408325598\" title=\"SRM408 Div1Easy OlympicCandles - Logfiles\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","provider_url":"https://hatena.blog","categories":["SRM"],"url":"https://logfiles.hatenablog.com/entry/20140818/1408325598","provider_name":"Hatena Blog","version":"1.0","width":"100%","blog_url":"https://logfiles.hatenablog.com/","title":"SRM408 Div1Easy OlympicCandles","author_name":"moistx"}