<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>drken1215</author_name>
  <author_url>https://blog.hatena.ne.jp/drken1215/</author_url>
  <blog_title>けんちょんの競プロ精進記録</blog_title>
  <blog_url>https://drken1215.hatenablog.com/</blog_url>
  <categories>
    <anon>AtCoder</anon>
    <anon>AtCoder100点</anon>
    <anon>ABC-A</anon>
    <anon>灰色diff</anon>
    <anon>フラグを活用する</anon>
    <anon>フラグ:すべてが条件を満たすか</anon>
    <anon>0と1の問題</anon>
    <anon>文字列</anon>
    <anon>for文</anon>
    <anon>for文:すべてが条件を満たすかを求める</anon>
    <anon>for文:添字の偶奇などによって処理を分岐する</anon>
    <anon>NoviSteps7Q</anon>
  </categories>
  <description>添字の偶奇によって処理を分岐する系 問題へのリンク 問題概要 0 と 1 のみからなる、16 文字の文字列 が与えられる。 の左から偶数番目の文字がすべて '0' であるかどうかを判定せよ。 コード 先頭が S[0] なので、S[1], S[3], ..., S[15] の中に 1 があるかどうかを調べればよい (つまり、添字は奇数となる)。 1 があったら：&quot;No&quot; 1 がなかったら：&quot;Yes&quot; を答える。for 文で添字を 2 ずつ増やしながら処理すると楽。 #include &lt;bits/stdc++.h&gt; using namespace std; int main() { string …</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fdrken1215.hatenablog.com%2Fentry%2F2023%2F10%2F09%2F231654&quot; title=&quot;AtCoder ABC 323 A - Weak Beats (7Q, 灰色, 100 点) - けんちょんの競プロ精進記録&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url>https://cdn.user.blog.st-hatena.com/default_entry_og_image/80936665/1687765056723440</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2023-10-09 23:16:54</published>
  <title>AtCoder ABC 323 A - Weak Beats (7Q, 灰色, 100 点)</title>
  <type>rich</type>
  <url>https://drken1215.hatenablog.com/entry/2023/10/09/231654</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
