<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>phyllo_algo</author_name>
  <author_url>https://blog.hatena.ne.jp/phyllo_algo/</author_url>
  <blog_title>れどこだ目指すよ！　(；`・ω・）</blog_title>
  <blog_url>https://phyllo-algo.hatenadiary.org/</blog_url>
  <categories>
    <anon>とぷこだ</anon>
    <anon>過去問</anon>
  </categories>
  <description>問題 1つしかレジスタがないコンピュータに命令を送って処理させる．入力sと出力tが与えられるので，sからtを作るための一番短い命令列を返す．命令は，「+」「-」「*」「/」がありそれぞれ「レジスタの値 op レジスタの値」が結果としてレジスタの新しい値となる． 考え方 「+」は値を2倍，「-」は値を0にする(使わない)，「*」は値を2乗，「/」は値を1にする，ことがわかる． そうすると，これらの組み合わせしかないので，探索空間はそんなに大きくならないことがわかる． なので，BFSで探索して，スタートがsの時と1の時の2つを試してより短い命令列を返すようにした． 反省 文字列比較に「 これは，文…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fphyllo-algo.hatenadiary.org%2Fentry%2F20101026%2F1288117393&quot; title=&quot;SRM486 Div2 500 - れどこだ目指すよ！　(；`・ω・）&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>2010-10-26 03:23:13</published>
  <title>SRM486 Div2 500</title>
  <type>rich</type>
  <url>https://phyllo-algo.hatenadiary.org/entry/20101026/1288117393</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
