{"image_url":null,"author_name":"itchyny","title":"AtCoder Beginner Contest 024","provider_url":"https://hatena.blog","categories":["atcoder"],"blog_url":"https://itchyny.hatenablog.com/","width":"100%","description":"A - \u52d5\u7269\u5712 \u5b50\u4f9b\u304c\u3044\u304f\u3089\u3067\u5927\u4eba\u304c\u3044\u304f\u3089\u306a\u306e\u3067\u56e3\u4f53\u306e\u5165\u5834\u6599\u306f\u3068\u3044\u3046\u554f\u984c\u3002\u554f\u984c\u6587\u306b\u3042\u308b\u901a\u308a\u306b\u8a08\u7b97\u3059\u308c\u3070\u3088\u3044\u3002 main :: IO () main = getContents >>= print . solve . map read . words solve :: [Integer] -> Integer solve [ a, b, c, k, s, t ] = a * s + b * t - if s + t >= k then c * (s + t) else 0 B - \u81ea\u52d5\u30c9\u30a2 \u9589\u307e\u308a\u305d\u3046\u3067\u9589\u307e\u3089\u306a\u3044\u81ea\u52d5\u30c9\u30a2\u306e\u554f\u984c\u3002\u4eba\u304c\u7acb\u3066\u7d9a\u3051\u306b\u6765\u305f\u3089\u3044\u3064\u307e\u3067\u3082\u9589\u307e\u3089\u306a\u3044\u3002 main :: IO (\u2026","url":"https://itchyny.hatenablog.com/entry/2015/05/23/230000","provider_name":"Hatena Blog","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fitchyny.hatenablog.com%2Fentry%2F2015%2F05%2F23%2F230000\" title=\"AtCoder Beginner Contest 024 - \u30d7\u30ed\u30b0\u30e9\u30e0\u30e2\u30b0\u30e2\u30b0\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","author_url":"https://blog.hatena.ne.jp/itchyny/","blog_title":"\u30d7\u30ed\u30b0\u30e9\u30e0\u30e2\u30b0\u30e2\u30b0","height":"190","type":"rich","version":"1.0","published":"2015-05-23 23:00:00"}