{"title":"ICPC\u56fd\u5185\u4e88\u90782008 \u89e3\u7b54","provider_name":"Hatena Blog","author_name":"kkishi","published":"2008-07-12 22:56:21","blog_title":"macbook air is so hot(\u4f4e\u6e29\u3084\u3051\u3069\u7684\u306a\u610f\u5473\u3067)","version":"1.0","categories":["programming","ICPC"],"url":"https://kkishi.hatenadiary.org/entry/20080712/1215870981","type":"rich","provider_url":"https://hatena.blog","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fkkishi.hatenadiary.org%2Fentry%2F20080712%2F1215870981\" title=\"ICPC\u56fd\u5185\u4e88\u90782008 \u89e3\u7b54 - macbook air is so hot(\u4f4e\u6e29\u3084\u3051\u3069\u7684\u306a\u610f\u5473\u3067)\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","blog_url":"https://kkishi.hatenadiary.org/","height":"190","image_url":null,"author_url":"https://blog.hatena.ne.jp/kkishi/","width":"100%","description":"E\u3067\u306fspaghetti source(http://www.prefield.com/algorithm/index.html)\u306e\u5e7e\u4f55\u30e9\u30a4\u30d6\u30e9\u30ea\u3092\u62dd\u501f\u3057\u3066\u3044\u307e\u3059\u3002 A #include <iostream> using namespace std; main() { int n, m; while (cin >> n >> m, n || m) { int t[n], h[m], tsum = 0, hsum = 0; for (int i = 0; i < n; i++) cin >> t[i], tsum += t[i]; for (int i = 0; i < m; i++) cin \u2026"}