<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>moistx</author_name>
  <author_url>https://blog.hatena.ne.jp/moistx/</author_url>
  <blog_title>Logfiles</blog_title>
  <blog_url>https://logfiles.hatenablog.com/</blog_url>
  <categories>
    <anon>UVa</anon>
  </categories>
  <description>問題 http://uva.onlinejudge.org/external/113/11371.html概要 入力の数字 N を並び替えた数字 a, b がある。a - b が 9 の倍数になり、かつ a - b が最大になるような a, b を求めよ。ただし、a, b はleading 0 となるような数字であってはならない。解法 a は数字列の降順ソート、b は昇順ソートしたものとする。(i) b がleading 0 でないとき、a-b がそのまま 9 の倍数となる。(ii) b が leading 0 のとき、0 でない最小の値を先頭の 0 とswap() する。 9 の倍数の最大が…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Flogfiles.hatenablog.com%2Fentry%2F20140416%2F1397666752&quot; title=&quot;UVa11371 Number Theory for Newbies - Logfiles&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-04-16 01:45:52</published>
  <title>UVa11371 Number Theory for Newbies</title>
  <type>rich</type>
  <url>https://logfiles.hatenablog.com/entry/20140416/1397666752</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
