<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>phyllo_algo</author_name>
  <author_url>https://blog.hatena.ne.jp/phyllo_algo/</author_url>
  <blog_title>れどこだ目指すよ！　(；`・ω・）</blog_title>
  <blog_url>https://phyllo-algo.hatenadiary.org/</blog_url>
  <categories>
    <anon>こどふぉす</anon>
    <anon>過去問</anon>
  </categories>
  <description>div2Bのレベルなの・・・？ 問題 n個の要素からなる数列aと整数mが与えられる。 空でない部分列の和がmで割り切れるような部分列があるかチェックし、あるならYES、ないならNOを返す。1 2 0 考え方 各a_iはmod mを取っておいても問題ない。なので、問題は「0〜(m-1)のn個の整数の和のmod mが0となるものがあるか？」になる。 計算量を無視して考えると、 dp[i][j]:=i番目までを使って、和 mod m = jとなるような和が作れるか？(YES/NO) というdpで、dp[i][j]が作れる(YES)なら、dp[i+1][(j+a_{i+1})%m]とdp[i+1][j…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fphyllo-algo.hatenadiary.org%2Fentry%2F20150916%2F1442412065&quot; title=&quot;Codeforces 577B. Modulo Sum - れどこだ目指すよ！　(；`・ω・）&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>2015-09-16 23:01:05</published>
  <title>Codeforces 577B. Modulo Sum</title>
  <type>rich</type>
  <url>https://phyllo-algo.hatenadiary.org/entry/20150916/1442412065</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
