<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>JunKobayashi</author_name>
  <author_url>https://blog.hatena.ne.jp/JunKobayashi/</author_url>
  <blog_title>JunKobayashi's Diary</blog_title>
  <blog_url>https://junkobayashi.hatenablog.com/</blog_url>
  <categories>
    <anon>動的計画法</anon>
    <anon>mod下における逆元</anon>
  </categories>
  <description>AWC0117 E - 商品の逆元ポイント 強者からするとおそらく典型でしかないのだろうが、自分にとってはこの問題を解き切ることが高めの壁だったため記載する（特に断らない限り0-indexedを前提とする）。 ＜問題概要＞ 長さが\(N\)の非負整数列\(A\)および整数\(K\)と、これらとは独立な素数\(M\)が与えられる。\(A\)から\(K\)個の要素を任意に選び出し、選び出した値たちの総積を\(P\)とする。\(P\)が\(M\)の倍数でない場合には\(\mod M\)における\(P\)の逆元となり、\(P\)が\(M\)の倍数である場合には\(0\)となる整数値\(Q\)を考える。…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fjunkobayashi.hatenablog.com%2Fentry%2F2026%2F09%2F19%2F103906&quot; title=&quot;AWC0117 E - 商品の逆元ポイント - JunKobayashi&amp;#39;s Diary&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>2026-09-19 10:39:06</published>
  <title>AWC0117 E - 商品の逆元ポイント</title>
  <type>rich</type>
  <url>https://junkobayashi.hatenablog.com/entry/2026/09/19/103906</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
