<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>mmxsrup</author_name>
  <author_url>https://blog.hatena.ne.jp/mmxsrup/</author_url>
  <blog_title>srupのメモ帳</blog_title>
  <blog_url>https://mmxsrup.hatenablog.com/</blog_url>
  <categories>
    <anon>yukicoder</anon>
    <anon>全探索</anon>
    <anon>実装</anon>
  </categories>
  <description>問題 問題概要 省略。 解法 ほぼ実装問題。文字の長さは短いので、数字で始まり終わる１周分の文字列をすべて全探索すればいい。このときに、sを２倍に伸ばしておくと、前に戻ってくる処理を簡単に省くことができる。あとは、前から見ていき、数字の部分numに、符号をvに記録して、その後それらの結果を利用して、合計値を出すようにしている。 ミス 答えがマイナスになることがあることに気づいていなくて、ansを0で初期化していたため、1WA. コード #include &lt;iostream&gt; #include &lt;cstdio&gt; #include &lt;string&gt; #include &lt;vector&gt; using …</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fmmxsrup.hatenablog.com%2Fentry%2F2016%2F09%2F17%2F012053&quot; title=&quot;yukicoder No.193 筒の数式 - srupのメモ帳&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></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2016-09-17 01:20:53</published>
  <title>yukicoder No.193 筒の数式</title>
  <type>rich</type>
  <url>https://mmxsrup.hatenablog.com/entry/2016/09/17/012053</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
