<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>null_mn</author_name>
  <author_url>https://blog.hatena.ne.jp/null_mn/</author_url>
  <blog_title>メモ帳</blog_title>
  <blog_url>https://null-mn.hatenablog.com/</blog_url>
  <categories>
  </categories>
  <description>先日のABC165-Cが難しかったようなので、おすすめの実装法を紹介してみます。 この問題に限らず、愚直にやるとn重ループを書きたくなってしまう全探索問題全般に適用できるのでオススメです。問題リンク： atcoder.jpとりあえずコードを乗せます。 #include &lt;iostream&gt; #include &lt;vector&gt; #include &lt;iterator&gt; using namespace std; int n, m, q; int a[50], b[50], c[50], d[50]; int dfs(vector&lt;int&gt; &amp;v) { if (v.size() == n) { // …</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fnull-mn.hatenablog.com%2Fentry%2F2020%2F05%2F03%2F074917&quot; title=&quot;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>2020-05-03 07:49:17</published>
  <title>n重ループを書きたくなる再帰全探索を巻き戻しテクを使って解く</title>
  <type>rich</type>
  <url>https://null-mn.hatenablog.com/entry/2020/05/03/074917</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
