<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>我的个人主页</title>
    <description>zpy12345的个人主页</description>
    <link>https://zpy12345.mysxl.cn/</link>
    <atom:link href="https://zpy12345.mysxl.cn/blog/feed.xml" rel="self" type="application/rss+xml"/>
    <item>
      <title>2026联合省选游记</title>
      <pubDate>Sun, 08 Mar 2026 03:00:57 -0700</pubDate>
      <link>https://zpy12345.mysxl.cn/blog/sx-2026</link>
      <guid>https://zpy12345.mysxl.cn/blog/sx-2026</guid>
      <description>&lt;p&gt;&lt;span style="display: inline-block"&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=" undefined"&gt;## Day0&lt;/p&gt;&lt;p class=" undefined"&gt;坐标山东师大附中，CCF 负责签到的人还迟到了（怒😡）。&lt;/p&gt;&lt;p class=" undefined"&gt;&lt;span style="display: inline-block"&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=" undefined"&gt;这的教室跟监狱似的。这的厕所怎么是露天的，非常的有观赏性是吧。&lt;/p&gt;&lt;p class=" undefined"&gt;## Day1&lt;/p&gt;&lt;p class=" undefined"&gt;刚开始考试就闻到一股焦糊味，听说是四楼有个劣质充电宝自燃了。&lt;/p&gt;&lt;p class=" undefined"&gt;&lt;span style="display: inline-block"&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=" undefined"&gt;然后第二天 CCF 就通知不准带充电宝。这警示我们：**一定要选择有 3C 认证的充电宝。**（？&lt;/p&gt;&lt;p class=" undefined"&gt;&lt;span style="display: inline-block"&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=" undefined"&gt;压缩包密码也是非常的吉利。&lt;/p&gt;&lt;p class=" undefined"&gt;&lt;span style="display: inline-block"&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=" undefined"&gt;第一题写了个 DP，本来想打暴力，结果写完后加了一堆优化，一算复杂度是对的，大样例只跑了 $0.2s$。&lt;/p&gt;&lt;p class=" undefined"&gt;&lt;span style="display: inline-block"&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=" undefined"&gt;第一题耗时 2.5h，然后推第二题特殊性质，未果，拿 15pts 走人。&lt;/p&gt;&lt;p class=" undefined"&gt;&lt;span style="display: inline-block"&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=" undefined"&gt;然后啃了德芙白巧克力一块。&lt;/p&gt;&lt;p class=" undefined"&gt;&lt;span style="display: inline-block"&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=" undefined"&gt;第三题本来打了 8pts 的暴力，但是由于我写的神秘语法没调过，打了个 ？分的 YES/NO 判断。&lt;/p&gt;&lt;p class=" undefined"&gt;## Day2&lt;/p&gt;&lt;p class=" undefined"&gt;第一题还是太阴了，但凡多询问一次就扣好多分，耗时 3h 做出，具体做法我写了篇[题解](https://www.luogu.com.cn/article/j9ye1n9a)，还是很巧妙的，感觉就是正常蓝。&lt;/p&gt;&lt;p class=" undefined"&gt;&lt;span style="display: inline-block"&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=" undefined"&gt;第二题 8pts 暴力，没有丝毫思路。&lt;/p&gt;&lt;p class=" undefined"&gt;&lt;span style="display: inline-block"&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=" undefined"&gt;第三题没看，竟然还因为一些细枝末节的小错误加了 15min 加时（我都不知道他改的啥）。&lt;/p&gt;&lt;p class=" undefined"&gt;&lt;span style="display: inline-block"&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=" undefined"&gt;## 总结&lt;/p&gt;&lt;p class=" undefined"&gt;100+15+?+100+8+0=220，应该是没救了，打着玩吧。&lt;/p&gt;&lt;a href=https://zpy12345.mysxl.cn/blog/sx-2026&gt;Read More&lt;/a&gt;</description>
    </item>
    <item>
      <title>二维凸包——Andrew 算法学习笔记</title>
      <pubDate>Tue, 30 Sep 2025 06:00:51 -0700</pubDate>
      <link>https://zpy12345.mysxl.cn/blog/andrew</link>
      <guid>https://zpy12345.mysxl.cn/blog/andrew</guid>
      <description>&lt;p&gt;# 例题：[P2742【模板】二维凸包](https://www.luogu.com.cn/problem/P2742)&lt;/p&gt;&lt;p class=" undefined"&gt;更适合初学者体质的题解。&lt;/p&gt;&lt;p class=" undefined"&gt;## 1.凸包介绍&lt;/p&gt;&lt;p class=" undefined"&gt;&lt;span style="display: inline-block"&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=" undefined"&gt;在平面上能包含所有给定点的**最小凸多边形**叫做凸包。&lt;/p&gt;&lt;p class=" undefined"&gt;&lt;span style="display: inline-block"&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=" undefined"&gt;根据三角不等式，凸包也一定是包含所有给定点的**周长最小多边形**。&lt;/p&gt;&lt;p class=" undefined"&gt;&lt;span style="display: inline-block"&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=" undefined"&gt;同样可以理解为，我们在地上钉了一些钉子，有一个有弹性皮筋，我们把它拉大框住所有钉子，然后松手，皮筋的形状就是凸包。&lt;/p&gt;&lt;p class=" undefined"&gt;&lt;span style="display: inline-block"&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=" undefined"&gt;上凸壳（qiao or ke？）一般指凸包的上半部分，看完本篇题解应该会有更深刻的理解。&lt;/p&gt;&lt;p class=" undefined"&gt;&lt;span style="display: inline-block"&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=" undefined"&gt;显然，这个题目求的是凸包的周长。&lt;/p&gt;&lt;p class=" undefined"&gt;## 2.Andrew 算法介绍&lt;/p&gt;&lt;p class=" undefined"&gt;一个求凸包的算法，或许也叫安德鲁算法？&lt;/p&gt;&lt;p class=" undefined"&gt;&lt;span style="display: inline-block"&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=" undefined"&gt;我们先按照横坐标为第一关键字，纵坐标为第二关键字，从小到大排序。显然，第一个点和最后一个点一定在凸包上。&lt;/p&gt;&lt;p class=" undefined"&gt;&lt;span style="display: inline-block"&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=" undefined"&gt;我们先考虑求上凸壳，下凸壳同理。&lt;/p&gt;&lt;p class=" undefined"&gt;&lt;span style="display: inline-block"&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=" undefined"&gt;在排好序的点中从小到大枚举，加入一个新点 $c$ 时，如果形成了凹多边形（如下图），那么不合法，依照三角不等式，连接点 $a$ 和点 $c$ 更优，我们直接删掉点 $b$，连接点 $a$ 和点 $c$。否则直接加入点 $c$，连接点 $b$ 和点 $c$。&lt;/p&gt;&lt;p class=" undefined"&gt;&lt;span style="display: inline-block"&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=" undefined"&gt;![](https://cdn.luogu.com.cn/upload/image_hosting/2hf84gmg.png)&lt;/p&gt;&lt;p class=" undefined"&gt;![](https://cdn.luogu.com.cn/upload/image_hosting/xuwvfa6x.png)&lt;/p&gt;&lt;p class=" undefined"&gt;&lt;span style="display: inline-block"&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=" undefined"&gt;这样就可以求出上凸壳了。&lt;/p&gt;&lt;p class=" undefined"&gt;&lt;span style="display: inline-block"&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=" undefined"&gt;实现过程其实就是单调栈。&lt;/p&gt;&lt;p class=" undefined"&gt;&lt;span style="display: inline-block"&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class="...&lt;a href=https://zpy12345.mysxl.cn/blog/andrew&gt;Read More&lt;/a&gt;</description>
    </item>
    <item>
      <title>CSP-S2025初赛游记</title>
      <pubDate>Sun, 28 Sep 2025 20:10:17 -0700</pubDate>
      <link>https://zpy12345.mysxl.cn/blog/csp-s2025</link>
      <guid>https://zpy12345.mysxl.cn/blog/csp-s2025</guid>
      <description>&lt;p&gt;从家里走得挺晚，到了考点有几个保安拿着准考证和身份证人脸识别。&lt;/p&gt;&lt;p class=" undefined"&gt;&lt;span style="display: inline-block"&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=" undefined"&gt;进了考场监考老师就在宣读要求了，今年是答题卡+答题纸（???好奇特），我旁边有人给监考老师说答题卡坏了，缺一个角。&lt;/p&gt;&lt;p class=" undefined"&gt;&lt;span style="display: inline-block"&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=" undefined"&gt;拿到试卷先看一眼，咦？怎么没有 Linux？不是说必考吗？那些编译指令之类的也没考~~来之前还专门背了好久~~（后来才知道今年换了出题方向）。选择题做的时候没遇到什么困难（自我认为），不过 Trie 树需要新建一个根节点不表示任何字符！&lt;/p&gt;&lt;p class=" undefined"&gt;&lt;span style="display: inline-block"&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=" undefined"&gt;程序阅读第一题是个另类的排列，就是第四问有点废手。第二题 You have no egg？原来原题目是你有 2 个鸡蛋，你要测出最高在几层楼扔下去鸡蛋鸡蛋不会碎，不过连 egg 都没改，算不算恶意重题？第三题先看了一遍题目，发现求方程解的数量？畏惧了，没有浪费时间随便蒙了几个。&lt;/p&gt;&lt;p class=" undefined"&gt;&lt;span style="display: inline-block"&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=" undefined"&gt;完善程序第一题，选项出来个 0 和 false，不是有意义吗？第二题是个交互题，虽然看过 J 的题有预感，不过还是很惊讶。监考老师最后 5 分钟让添加 int n k ，不加分号好像也没啥用，不过不说我还真没发现。&lt;/p&gt;&lt;p class=" undefined"&gt;&lt;span style="display: inline-block"&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=" undefined"&gt;出考场一问，有同学估分 97，畏惧了。&lt;/p&gt;&lt;p class=" undefined"&gt;&lt;span style="display: inline-block"&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=" undefined"&gt;总结：好好打，好好发挥就不会有问题。&lt;/p&gt;&lt;a href=https://zpy12345.mysxl.cn/blog/csp-s2025&gt;Read More&lt;/a&gt;</description>
    </item>
  </channel>
</rss>
