<?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>旧ARC-A</anon>
    <anon>NoviSteps6Q</anon>
    <anon>灰色diff</anon>
    <anon>連想配列(setやmap)</anon>
    <anon>文字列</anon>
    <anon>重実装問題</anon>
    <anon>for文</anon>
    <anon>文字列のfor文</anon>
  </categories>
  <description>if 文を並べてもいいし、map を使ってもよさそう。 問題へのリンク 問題概要 文字列 が与えられる。 の各文字に対して、 O → 0 D → 0 I → 1 Z → 2 S → 5 B → 8 それ以外 → そのまま という変換をして得られる文字列を答えよ。 コード (1)：if 文 if 文を使って解いてみた。 #include &lt;bits/stdc++.h&gt; using namespace std; int main() { string S; cin &gt;&gt; S; for (auto c : S) { if (c == 'O' || c == 'D') cout &lt;&lt; 0; else …</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fdrken1215.hatenablog.com%2Fentry%2F2024%2F11%2F09%2F021237&quot; title=&quot;AtCoder ARC 019 A - お買い物クライシス (6Q, 試験管灰色) - けんちょんの競プロ精進記録&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/1730992592391452</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2024-11-09 02:12:37</published>
  <title>AtCoder ARC 019 A - お買い物クライシス (6Q, 試験管灰色)</title>
  <type>rich</type>
  <url>https://drken1215.hatenablog.com/entry/2024/11/09/021237</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
