<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>b1u3</author_name>
  <author_url>https://blog.hatena.ne.jp/b1u3/</author_url>
  <blog_title>いろんなことで四苦Hack（仮）</blog_title>
  <blog_url>https://b1u3.hateblo.jp/</blog_url>
  <categories>
    <anon>競技プログラミング</anon>
  </categories>
  <description>今日の競プロ。 train ticket は、与えられた4桁の数字の各桁を順番そのままに、引くか足すかして、=7ができるか問う問題。簡単な全探索でeval使って瞬殺。 def main(): abcd = list(input()) flag = False for op1 in ['+', '-']: for op2 in ['+', '-']: for op3 in ['+', '-']: ans = abcd[0]+op1+abcd[1]+op2+abcd[2]+op3+abcd[3] if eval(ans) == 7: flag = True print(ans+'=7') brea…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fb1u3.hateblo.jp%2Fentry%2F2019%2F09%2F04%2F232725&quot; title=&quot;train ticket と all green - いろんなことで四苦Hack（仮）&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>2019-09-04 23:27:25</published>
  <title>train ticket と all green</title>
  <type>rich</type>
  <url>https://b1u3.hateblo.jp/entry/2019/09/04/232725</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
