<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>fijixfiji</author_name>
  <author_url>https://blog.hatena.ne.jp/fijixfiji/</author_url>
  <blog_title>The Answers to the Questions You Never Ask</blog_title>
  <blog_url>https://fijixfiji.hatenadiary.jp/</blog_url>
  <categories>
    <anon>Python</anon>
  </categories>
  <description>この前（といってもかなり前）、SRMの問題で人のソースコード読んでたら、あーなるほどと思ったので、書いておく。内容は、大したことない。 変数x1に最初に値(例えば10)を代入しておいて、それとは別にある値(x2)を計算して(fとする）、そっちの値の方が小さかったら、x1を代入するみたいなことを書くとする。順番に書いていくと、 x1 = 10 x2 = f(hoge, piyo) if x1 &gt;= x2: x1 = x2 みたいな感じになる。で、なるほどーと思ったコードは、 x1 = min(10,f(hoge,piyo)) という1行。当たり前だけど、なるほどってちょっと発見。</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Ffijixfiji.hatenadiary.jp%2Fentry%2F20140720%2F1405856314&quot; title=&quot;大小を比較して代入 - The Answers to the Questions You Never Ask&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>2014-07-20 20:38:34</published>
  <title>大小を比較して代入</title>
  <type>rich</type>
  <url>https://fijixfiji.hatenadiary.jp/entry/20140720/1405856314</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
