<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>sugarknri</author_name>
  <author_url>https://blog.hatena.ne.jp/sugarknri/</author_url>
  <blog_title>メモ</blog_title>
  <blog_url>https://sugarknri.hatenablog.com/</blog_url>
  <categories>
  </categories>
  <description>問題はこちら No.677 10^Nの約数 - yukicoder約数は2^i*5^jの形をしている。全て求めてソートすればよい。 ここでは約数を保存せず、毎回「今まで出力したものより大きい最小のもの」を探すようにしている。O(N^4) main(){ int n; scanf(&quot;%d&quot;,&amp;n); long M=0;//直前に出力したもの for(int cnt=0;cnt&lt;(n+1)*(n+1);cnt++){ //約数は全部で(n+1)*(n+1)個 long m=2e18;//Mより大きな最小の約数(=次に出力するもの) for(int i=0;i&lt;=n;i++)for(int j=0;…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fsugarknri.hatenablog.com%2Fentry%2F2018%2F05%2F14%2F060137&quot; title=&quot;yukicoder No.677 10^Nの約数 - メモ&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>2018-05-14 06:01:37</published>
  <title>yukicoder No.677 10^Nの約数</title>
  <type>rich</type>
  <url>https://sugarknri.hatenablog.com/entry/2018/05/14/060137</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
