<?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>NoviSteps8Q</anon>
    <anon>for文</anon>
    <anon>for文:総和</anon>
    <anon>文字列</anon>
    <anon>易しい文字列の問題</anon>
    <anon>文字列のfor文</anon>
    <anon>AtCoder</anon>
    <anon>JOI</anon>
    <anon>JOI一次予選</anon>
    <anon>JOI難易度2</anon>
    <anon>0と1と2の問題</anon>
  </categories>
  <description>for 文の練習！ 問題へのリンク editorial 問題概要 文字 j は 2 画、o は 1 画、i は 2 画である。 与えられた文字列 が合計で何画であるかを求めよ。 解法 for 文を用いよう。for 文のループカウンタ変数を i として、文字 S[i] について、次のように処理すればよいでしょう。 S[i] == 'j' のとき：答えに 2 を足す S[i] == 'o' のとき：答えに 1 を足す S[i] == 'i' のとき：答えに 2 を足す コード #include &lt;bits/stdc++.h&gt; using namespace std; int main() { in…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fdrken1215.hatenablog.com%2Fentry%2F2024%2F05%2F13%2F035910&quot; title=&quot;JOI 一次予選 2024 (第 2 回) C - 画数数え (8Q, 難易度 2) - けんちょんの競プロ精進記録&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-05-13 03:59:10</published>
  <title>JOI 一次予選 2024 (第 2 回) C - 画数数え (8Q, 難易度 2)</title>
  <type>rich</type>
  <url>https://drken1215.hatenablog.com/entry/2024/05/13/035910</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
