<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>AT274</author_name>
  <author_url>https://blog.hatena.ne.jp/AT274/</author_url>
  <blog_title>あっとのTECH LOG</blog_title>
  <blog_url>https://at274.hatenablog.com/</blog_url>
  <categories>
    <anon>競プロ</anon>
  </categories>
  <description>問題原文 atcoder.jp 解法 と の制約が小さいことに注目する。 全パターン試すのが楽そうだけど、条件を満たすような数列はどれぐらいあるかを考える。 例えばバラバラの数字 個を適当に並べてそれが単調増加になっている確率は 。 この事実を考えると最大ケースでもめちゃくちゃ通り数が削られることがわかる。 の制約も小さいので、これら全てについて愚直にスコアを計算しても余裕で間に合う。 けんちょんさんの考え方に勉強させていただきました。ありがとうございます。 drken1215.hatenablog.com 実装 再帰でかける。 .append() -&gt; dfs() -&gt; .pop() とけん…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fat274.hatenablog.com%2Fentry%2F2020%2F05%2F20%2F213705&quot; title=&quot;ABC165 C - Many Requirements - あっとのTECH LOG&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>https://chart.apis.google.com/chart?cht=tx&amp;chl=%20%201%20%5Cleq%20N%20%5Cleq%2010%5E%7B5%7D</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2020-05-20 21:37:05</published>
  <title>ABC165 C - Many Requirements</title>
  <type>rich</type>
  <url>https://at274.hatenablog.com/entry/2020/05/20/213705</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
