<?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://ac2.ac.cn/zh-cn/notes/</link><description>Recent content in Notes on TLEer's Blog</description><generator>Hugo</generator><language>zh-CN</language><lastBuildDate>Sat, 25 Jul 2026 00:00:00 +0000</lastBuildDate><atom:link href="https://ac2.ac.cn/zh-cn/notes/index.xml" rel="self" type="application/rss+xml"/><item><title>P2481 [SDOI2010] 代码拍卖会</title><link>https://ac2.ac.cn/zh-cn/notes/p2481/</link><pubDate>Sat, 25 Jul 2026 00:00:00 +0000</pubDate><guid>https://ac2.ac.cn/zh-cn/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>