<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Notes on TLEer's Blog</title><link>https://52c4c6fa.blog-11c.pages.dev/notes/</link><description>Recent content in Notes on TLEer's Blog</description><generator>Hugo</generator><language>zh-HK</language><lastBuildDate>Sat, 25 Jul 2026 00:00:00 +0000</lastBuildDate><atom:link href="https://52c4c6fa.blog-11c.pages.dev/notes/index.xml" rel="self" type="application/rss+xml"/><item><title>P2481 [SDOI2010] 代码拍卖会</title><link>https://52c4c6fa.blog-11c.pages.dev/notes/p2481/</link><pubDate>Sat, 25 Jul 2026 00:00:00 +0000</pubDate><guid>https://52c4c6fa.blog-11c.pages.dev/notes/p2481/</guid><description>&lt;p&gt;設：&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;code&gt;dp[len][last][rem]&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;&lt;code&gt;last&lt;/code&gt;：目前最後一隻豬的出價，範圍 &lt;code&gt;1..9&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;&lt;code&gt;rem&lt;/code&gt;：目前構成的 &lt;code&gt;len&lt;/code&gt; 位數除以 &lt;code&gt;P&lt;/code&gt; 的餘數&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;若在右邊加入數字 &lt;code&gt;x&lt;/code&gt;，必須滿足 &lt;code&gt;x &amp;gt;= last&lt;/code&gt;，新餘數是：&lt;/p&gt;
&lt;p&gt;$newRem=(rem\times 10+x)\bmod P$&lt;/p&gt;</description></item></channel></rss>