<?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>if文</anon>
    <anon>文字列</anon>
    <anon>文字列操作:indexアクセス</anon>
    <anon>易しい文字列の問題</anon>
    <anon>Yes/No判定問題</anon>
    <anon>易しいYes/No判定問題</anon>
    <anon>AtCoder</anon>
    <anon>AtCoder100点</anon>
    <anon>ABC-A</anon>
    <anon>灰色diff</anon>
    <anon>0と1の問題</anon>
    <anon>NoviSteps8Q</anon>
  </categories>
  <description>まさに「文字列の index アクセス」を練習できる問題！ 問題へのリンク 問題概要 7 文字の文字列 が与えられる。この文字列は 'o' と 'x' のみからなる。 この文字列の 番目の文字が 'o' であるならば &quot;Yes&quot;、そうでなければ &quot;No&quot; と答えよ。 解法 多くのプログラミング言語では、先頭の 1 番目の文字は S[0] などと 0 始まりで書きます。よって、文字列 の 番目の文字は S[N-1] と表せます。 あとは、if 文を用いて、S[N-1] が 'o' であるかどうかによって処理を分岐すればよいでしょう。 コード #include &lt;bits/stdc++.h&gt; us…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fdrken1215.hatenablog.com%2Fentry%2F2024%2F04%2F01%2F134526&quot; title=&quot;AtCoder ABC 218 A - Weather Forecast (8Q, 灰色, 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>2024-04-01 13:45:26</published>
  <title>AtCoder ABC 218 A - Weather Forecast (8Q, 灰色, 100 点)</title>
  <type>rich</type>
  <url>https://drken1215.hatenablog.com/entry/2024/04/01/134526</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
