{"height":"190","url":"https://coding.hatenadiary.com/entry/2024/02/19/035424","author_name":"ao1205","author_url":"https://blog.hatena.ne.jp/ao1205/","image_url":null,"provider_name":"Hatena Blog","width":"100%","title":"AtCoder Beginner Contest 210 A\u554f\u984c Python\u89e3\u8aac","blog_url":"https://coding.hatenadiary.com/","categories":[],"type":"rich","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fcoding.hatenadiary.com%2Fentry%2F2024%2F02%2F19%2F035424\" title=\"AtCoder Beginner Contest 210 A\u554f\u984c Python\u89e3\u8aac - \u30ce\u30f3\u30d7\u30ed\u30b0\u30e9\u30de\u30fc\u3001\u7af6\u30d7\u30ed\u975e\u30ac\u30c1\u52e2\u306b\u3088\u308b\u7af6\u30d7\u30ed\u300c\u8d85\u300d\u5165\u9580\" 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","version":"1.0","published":"2024-02-19 03:54:24","description":"ABC210 A-Cabbages \u554f\u984c\u306f\u3053\u3061\u3089 \u3010Python\u3067\u306e\u89e3\u6cd5\u3011 \u307e\u305a\u89e3\u7b54\u4f8b\u3092\u4e0b\u306b\u793a\u3057\u307e\u3059\u3002 N,A,X,Y = map(int,input().split()) ans = 0 for i in range(N): if i < A: ans += X else: ans += Y print(ans) 1. \u554f\u984c\u6587\u306e\u628a\u63e1 \u984c\u610f\u306f\u7c21\u6f54\u3067\u3059\u3002\u5168\u90e8\u3067\u30ad\u30e3\u30d9\u30c4\u3092N\u500b\u8cb7\u3044\u307e\u3059\u3002\u305d\u306e\u6642\u306b\u5fc5\u8981\u306a\u91d1\u984d\u3092\u6c42\u3081\u307e\u3059\u3002 \u4f46\u3057\u4fa1\u683c\u306b\u6ce8\u610f\u304c\u5fc5\u8981\u3067\u3001A\u500b\u76ee\u307e\u3067\u306f1\u500bX\u5186\u3001A+1\u500b\u76ee\u304b\u3089\u306f1\u500bY\u5186\u3067\u8cb7\u3046\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002 \u672c\u554f\u3067\u306fN,A,X,Y\u3068\u3044\u30464\u3064\u306e\u5024\u304c\u4e0e\u3048\u3089\u308c\u308b\u306e\u3067\u3001\u305d\u308c\u305e\u308c\u306e\u6570\u5b57\u304c\u4f55\u3092\u610f\u5473\u3057\u3066\u3044\u308b\u304b\u3092\u2026","blog_title":"\u30ce\u30f3\u30d7\u30ed\u30b0\u30e9\u30de\u30fc\u3001\u7af6\u30d7\u30ed\u975e\u30ac\u30c1\u52e2\u306b\u3088\u308b\u7af6\u30d7\u30ed\u300c\u8d85\u300d\u5165\u9580"}