{"url":"https://drken1215.hatenablog.com/entry/2023/10/08/191055","description":"\u7b49\u5dee\u6570\u5217\u306e\u548c\u306e\u516c\u5f0f\u3092\u4f7f\u3063\u3066\u3082\u3044\u3044\u3057\u3001\u7d20\u76f4\u306b for \u6587\u3092\u8db3\u3057\u3066\u3082\u3044\u3044\u3002 \u554f\u984c\u3078\u306e\u30ea\u30f3\u30af \u554f\u984c\u6982\u8981 \u6b63\u306e\u6574\u6570 \u304c\u4e0e\u3048\u3089\u308c\u308b\u3002 \u306e\u5024\u3092\u7b54\u3048\u3088\u3002 \u89e3\u6cd5 1 \u7d20\u76f4\u306b for \u6587\u3067\u8db3\u3057\u3066\u3044\u304f\u65b9\u6cd5\u3002 #include <bits/stdc++.h> using namespace std; int main() { int N; cin >> N; int res = 0; // \u7b54\u3048\u3092\u8868\u3059\u8fba\u6570 for (int i = 1; i <= N; ++i) { res += i; // 1 \u304b\u3089\u9806\u306b N \u307e\u3067\u8db3\u3057\u3066\u3044\u304f } cout << res << endl; } \u89e3\u6cd5 2 \u7b49\u5dee\u6570\u5217\u306e\u548c\u306e\u516c\u5f0f \u3092\u7528\u3044\u308b\u65b9\u2026","categories":["AtCoder","AtCoder100\u70b9","\u7070\u8272diff","ABC-A","1\u500b\u306e\u6574\u6570\u306e\u5165\u529b\u3092\u6271\u3046\u6613\u3057\u3044\u554f\u984c","\u7b49\u5dee\u6570\u5217","\u6570\u5b66(\u4ee3\u6570)","\u6570\u5217","\u7b49\u5dee\u6570\u5217\u306e\u548c\u306e\u516c\u5f0f","\u7b97\u6570\u3068\u6570\u5b66","for\u6587","for\u6587:\u7dcf\u548c","\u6f14\u7b97\u5b50\u300c+\u300d\u300c-\u300d\u300c*\u300d\u3092\u7528\u3044\u308b\u554f\u984c","\u305d\u306e\u307e\u307e\u899a\u3048\u305f\u3044\u6613\u3057\u3044\u6559\u80b2\u7684\u5178\u578b\u554f\u984c","\u7b97\u6570\u3068\u6570\u5b66:\u6587\u5b57\u5f0f","\u6613\u3057\u3044\u7b97\u6570\u3068\u6570\u5b66","\u6574\u6570\u306efor\u6587","NoviSteps8Q","for\u6587:N\u56de\u51e6\u7406\u3059\u308b"],"image_url":"https://cdn.user.blog.st-hatena.com/default_entry_og_image/80936665/1687765056723440","author_url":"https://blog.hatena.ne.jp/drken1215/","provider_name":"Hatena Blog","provider_url":"https://hatena.blog","blog_url":"https://drken1215.hatenablog.com/","type":"rich","author_name":"drken1215","blog_title":"\u3051\u3093\u3061\u3087\u3093\u306e\u7af6\u30d7\u30ed\u7cbe\u9032\u8a18\u9332","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fdrken1215.hatenablog.com%2Fentry%2F2023%2F10%2F08%2F191055\" title=\"AtCoder ABC 043 A - \u30ad\u30e3\u30f3\u30c7\u30a3\u30fc\u3068N\u4eba\u306e\u5b50\u4f9b\u30a4\u30fc\u30b8\u30fc (8Q, \u7070\u8272, 100 \u70b9) - \u3051\u3093\u3061\u3087\u3093\u306e\u7af6\u30d7\u30ed\u7cbe\u9032\u8a18\u9332\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","version":"1.0","width":"100%","published":"2023-10-08 19:10:55","title":"AtCoder ABC 043 A - \u30ad\u30e3\u30f3\u30c7\u30a3\u30fc\u3068N\u4eba\u306e\u5b50\u4f9b\u30a4\u30fc\u30b8\u30fc (8Q, \u7070\u8272, 100 \u70b9)","height":"190"}