{"author_url":"https://blog.hatena.ne.jp/a_kawashiro/","categories":["topcoder"],"published":"2011-03-29 20:19:16","url":"https://a-kawashiro.hatenablog.com/entry/20110329/1301397556","description":"\u81ea\u4f5c\u30af\u30e9\u30b9\u3067sort\u3068\u304b\u3092\u4f7f\u3046\u5834\u5408\u306f bool operator<(const C &c) const{ return hoge; } \u3063\u3066\u3057\u306a\u3044\u3068\u30b3\u30f3\u30d1\u30a4\u30eb\u3067\u304d\u306a\u3044 #include <algorithm> #include <vector> using namespace std; class LIQUID { public: int p,a; bool operator<(const LIQUID &l) const{ return p<l.p; } }; class MixingLiquids { public: double howMuch(vector <int> percent,\u2026","type":"rich","width":"100%","title":"SRM355 div2 hard","image_url":null,"provider_url":"https://hatena.blog","author_name":"a_kawashiro","blog_url":"https://a-kawashiro.hatenablog.com/","version":"1.0","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fa-kawashiro.hatenablog.com%2Fentry%2F20110329%2F1301397556\" title=\"SRM355 div2 hard - a_kawashiro\u306e\u30d6\u30ed\u30b0\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","provider_name":"Hatena Blog","height":"190","blog_title":"a_kawashiro\u306e\u30d6\u30ed\u30b0"}