{"author_name":"drken1215","blog_title":"\u3051\u3093\u3061\u3087\u3093\u306e\u7af6\u30d7\u30ed\u7cbe\u9032\u8a18\u9332","title":"AtCoder ABC 170 A - Five Variables (8Q, \u7070\u8272, 100 \u70b9)","provider_name":"Hatena Blog","image_url":"https://cdn.user.blog.st-hatena.com/default_entry_og_image/80936665/1687765056723440","height":"190","version":"1.0","published":"2024-03-14 22:55:19","type":"rich","provider_url":"https://hatena.blog","width":"100%","url":"https://drken1215.hatenablog.com/entry/2024/03/14/225519","description":"\u3053\u308c\u7d50\u69cb\u96e3\u3057\u3044\u3068\u601d\u3046\u3051\u3069\u3001Difficulty 8 \u306a\u306e\u3059\u3054\u3044\uff01 \u554f\u984c\u3078\u306e\u30ea\u30f3\u30af \u554f\u984c\u6982\u8981 \u6574\u6570 \u304c\u4e0e\u3048\u3089\u308c\u308b\u3002\u3053\u306e\u3046\u3061 1 \u3064\u3060\u3051 0 \u304c\u3042\u308b\u3002 \u3067\u3042\u308b\u3088\u3046\u306a \u3092\u7b54\u3048\u3088\u3002 \u89e3\u6cd5 if \u6587\u3067 1 \u500b\u305a\u3064\u898b\u3066\u3044\u3063\u3066\u3082\u3044\u3044\u304c\u3001for \u6587\u3067\u307e\u3068\u3081\u3066\u6271\u3063\u305f\u65b9\u304c\u697d\u3060\u3068\u601d\u3046\u3002 #include <bits/stdc++.h> using namespace std; int main() { int res = -1; for (int i = 0; i < 5; ++i) { int x; cin >> x; if (x == 0) res = i + 1; } cout << res << endl;\u2026","blog_url":"https://drken1215.hatenablog.com/","categories":["if\u6587","for\u6587","for\u6587:\u6761\u4ef6\u3092\u6e80\u305f\u3059\u6dfb\u5b57\u3084\u305d\u306e\u500b\u6570\u3092\u6c42\u3081\u308b","AtCoder","AtCoder100\u70b9","ABC-A","\u7070\u8272diff","NoviSteps8Q"],"author_url":"https://blog.hatena.ne.jp/drken1215/","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fdrken1215.hatenablog.com%2Fentry%2F2024%2F03%2F14%2F225519\" title=\"AtCoder ABC 170 A - Five Variables (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>"}