<?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>JOI</anon>
    <anon>JOIG</anon>
    <anon>JOI難易度1</anon>
    <anon>AtCoder</anon>
    <anon>AOJ</anon>
    <anon>文字列</anon>
    <anon>易しい文字列の問題</anon>
    <anon>添字:右からi番目はN-i-1</anon>
    <anon>if文</anon>
    <anon>文字列操作:部分文字列を取り出す</anon>
    <anon>NoviSteps8Q</anon>
  </categories>
  <description>文字列の練習！ 問題へのリンク 問題概要 英大文字のみからなる、長さ の文字列 が与えられる。 の末尾の文字が 'G' 以外のとき： の末尾に文字 'G' を挿入して得られる文字列を の末尾の文字が 'G' であるとき： の末尾の文字 'G' を削除して得られる文字列を 求めて出力せよ。 解法 文字列 を C++ の string 型の変数 S で表すことにしよう。このとき、 の末尾の文字は S.back() で取得できる。 この文字が G かどうかを調べて、if 文を用いて処理を分岐しよう。 S.back() != 'G' のとき この場合は、S + 'G' を出力すれば OK。 そうでない…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fdrken1215.hatenablog.com%2Fentry%2F2023%2F09%2F22%2F035818&quot; title=&quot;JOIG 2023 A - 末尾の文字 (AOJ 0757) (8Q, 難易度 1) - けんちょんの競プロ精進記録&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-09-22 03:58:18</published>
  <title>JOIG 2023 A - 末尾の文字 (AOJ 0757) (8Q, 難易度 1)</title>
  <type>rich</type>
  <url>https://drken1215.hatenablog.com/entry/2023/09/22/035818</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
