{"width":"100%","author_name":"obelisk2","blog_title":"Camera Obscura","version":"1.0","author_url":"https://blog.hatena.ne.jp/obelisk2/","title":"paiza Online Hackathon \u3092\u3084\u3063\u3066\u307f\u305f","image_url":"http://img.f.hatena.ne.jp/images/fotolife/o/obelisk2/20170929/20170929050602.png","blog_url":"https://obelisk.hatenablog.com/","provider_url":"https://hatena.blog","type":"rich","provider_name":"Hatena Blog","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fobelisk.hatenablog.com%2Fentry%2F2017%2F09%2F29%2F050924\" title=\"paiza Online Hackathon \u3092\u3084\u3063\u3066\u307f\u305f - Camera Obscura\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","height":"190","description":"\u3082\u3046\u3068\u3063\u304f\u306b\u5fdc\u52df\u306f\u7de0\u3081\u5207\u3089\u308c\u3066\u3044\u308b\u3051\u308c\u3069\u3001\u3068\u306b\u304b\u304f Ruby \u3067\u3084\u3063\u3066\u307f\u307e\u3057\u305f\u3002 \u7d50\u679c\u3002 \u3084\u3063\u305f\u306d\uff01\u30b3\u30fc\u30c9\u3067\u3059\u3002 need = gets.to_i company = gets.to_i number, cost = [], [] company.times {|i| number[i], cost[i] = gets.split.map(&:to_i)} h = {} company.times do |i| h1 = h.dup h.each do |n, c| num = n + number[i] ct = c + cost[i] h1[num] = ct if not h1[num]\u2026","published":"2017-09-29 05:09:24","categories":["Ruby","\u30a2\u30eb\u30b4\u30ea\u30ba\u30e0\u30fb\u30d1\u30ba\u30eb"],"url":"https://obelisk.hatenablog.com/entry/2017/09/29/050924"}