版本比较
ztyroy 的训练日志
正文
增加 1018 行删除 0 行
189 行未改动全部展开19019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211189 行未改动全部展开#### 9:27~9:33C 老发表了演讲,今日训练总动员#### 9:35想了一下,今天把上周那场 [ABC](https://atcoder.jp/contests/abc447) 给 VP 一下#### 9:45开始 VP [ABC](https://atcoder.jp/contests/abc447)#### 9:46[A](https://atcoder.jp/contests/abc447/tasks/abc447_a) 过了#### 9:50[B](https://atcoder.jp/contests/abc447/tasks/abc447_b) 过了#### 10:03[C](https://atcoder.jp/contests/abc447/tasks/abc447_c) 过了#### 10:08[D](https://atcoder.jp/contests/abc447/tasks/abc447_d) 过了#### 10:17[E](https://atcoder.jp/contests/abc447/tasks/abc447_e) 过了#### 11:02[F](https://atcoder.jp/contests/abc447/tasks/abc447_f) 过了#### 11:09太好了,如果我打了的话 rk510,能涨 60 分左右,太险了,差点涨分了(mmd,wcnm,bushi,wozhenfule,唉#### 11:11开始做 [P10447](https://www.luogu.com.cn/problem/P10447)#### 11:27[P10447](https://www.luogu.com.cn/problem/P10447) 过了#### 11:30开始做 [P2114](https://www.luogu.com.cn/problem/P2114)#### 11:44[P2114](https://www.luogu.com.cn/problem/P2114) 过了#### 11:46开始做 [B3622](https://www.luogu.com.cn/problem/B3622)#### 11:48[B3622](https://www.luogu.com.cn/problem/B3622) 过了#### 11:50开始做 [B3623](https://www.luogu.com.cn/problem/B3623)#### 11:52[B3623](https://www.luogu.com.cn/problem/B3623) 过了#### 11:53开始做 [CF670C](https://codeforces.com/problemset/problem/670/C)#### 12:00[CF670C](https://codeforces.com/problemset/problem/670/C) 过了#### 14:59开始做[P10452](https://www.luogu.com.cn/problem/P10452)#### 15:01[P10452](https://www.luogu.com.cn/problem/P10452) 过了#### 15:06开始做[P2280](https://www.luogu.com.cn/problem/P2280)### 2026.03.08#### 19:00~20:15[晚练](https://loj.ac/p/2763),想以非常优雅的方式通过,结果没写出来(bushi### 2026.03.09#### 10:05改[晚练](https://loj.ac/p/2763)#### 14:58[晚练](https://loj.ac/p/2763)过了#### 15:20~15:58帮[大佬](https://www.luogu.com.cn/user/1420917)改题#### 16:15~16:55体育课#### 17:15开始做 [P10463](https://www.luogu.com.cn/problem/P10463)#### 18:55[晚练](https://www.luogu.com.cn/problem/P6007)一眼 DS,想以非常优雅的方式通过,结果没写出来(bushi#### 20:06还没调出来,打个暴力#### 20:09暴力打好了### 2026.03.10#### 10:07改[晚练](https://www.luogu.com.cn/problem/P6007)#### 11:45[晚练](https://www.luogu.com.cn/problem/P6007)过了#### 14:30开始做 [P4084](https://www.luogu.com.cn/problem/P4084)#### 15:10换机房了#### 15:30~16:17C 老和祝老的演讲#### 16:18~17:05体育课#### 17:20继续做 [P4084](https://www.luogu.com.cn/problem/P4084)#### 17:34[P4084](https://www.luogu.com.cn/problem/P4084) 过了#### 18:45[晚练](https://www.luogu.com.cn/problem/P5017)以为很简单,想着一档一档的拿分,结果最后第一档分打挂了,后面也寄了,0pts### 2026.03.11#### 10:09改[晚练](https://www.luogu.com.cn/problem/P5017)#### 10:22[晚练](https://www.luogu.com.cn/problem/P5017) 50pts 的部分分过了#### 10:46[晚练](https://www.luogu.com.cn/problem/P5017)过了#### 11:01开始学习[数位DP](https://oi-wiki.org/dp/number)#### 11:41开始做 [P2602](https://www.luogu.com.cn/problem/P2602)#### 14:30~15:20体育课#### 15:25继续做 [P2602](https://www.luogu.com.cn/problem/P2602)#### 16:31[P2602](https://www.luogu.com.cn/problem/P2602) 过了#### 16:34开始做 [P10449](https://www.luogu.com.cn/problem/P10449)#### 17:05~17:45帮[ wbj 大佬](https://www.luogu.com.cn/user/1420917)改题#### 18:40~19:20英语晚课#### 19:30[晚练](https://www.luogu.com.cn/problem/P10138)#### 19:31想到伪做法#### 19:50发现伪做法伪了#### 20:00想到正解了,但是需要优化暴力,先打暴力#### 20:44暴力还没调出来。。。#### 20:45调出来了!!!哈哈哈哈哈哈!!!红红火火恍恍惚惚!!!#### 20:47vocal!!!有阴间情况没考虑!!!50pts->10pts,[大佬](https://www.luogu.com.cn/user/725640)和[大佬](https://www.luogu.com.cn/user/755179)也挂了,100->15 和 100->10### 2026.03.12#### 10:06改[晚练](https://www.luogu.com.cn/problem/P10138)#### ?~?[大佬](https://www.luogu.com.cn/user/755179)讲课#### ?~?C 老演讲#### ?继续改[晚练](https://www.luogu.com.cn/problem/P10138)#### 12:08[晚练](https://www.luogu.com.cn/problem/P10138)过了#### 14:59开始做 [P1006](https://www.luogu.com.cn/problem/P1006)#### 15:20[P1006](https://www.luogu.com.cn/problem/P1006) 过了#### 15:21开始做 [P1006](https://www.luogu.com.cn/problem/P1006)#### 15:28[P1164](https://www.luogu.com.cn/problem/P1164) 过了#### 15:29开始做 [P10955](https://www.luogu.com.cn/problem/P10955)#### 15:32~15:58帮[ lhg 大佬](https://www.luogu.com.cn/user/1420908)改题#### 16:15继续做 [P10955](https://www.luogu.com.cn/problem/P10955)#### 16:27[P10955](https://www.luogu.com.cn/problem/P10955) 过了#### 16:31开始做 [P10973](https://www.luogu.com.cn/problem/P10973)#### 17:32[P10973](https://www.luogu.com.cn/problem/P10973) 过了#### 18:40~19:20英语晚课#### 19:30[晚练](https://www.luogu.com.cn/problem/P9981)#### 19:32题看错了,想到错误做法,但想到拓扑了#### 19:40发现错误做法错了#### 19:50想到正解的大半了,拓扑+倍增#### 19:59打着打着突然想到最后应该怎么做了,应该用hash!#### 20:39打完了,过大样例了!#### 20:43Accepted!!!### 2026.03.13#### 10:20~10:45[plh 大佬](https://www.luogu.com.cn/user/427045)讲课#### 11:02开始做 [P4342](https://www.luogu.com.cn/problem/P4342)#### 11:35[P4342](https://www.luogu.com.cn/problem/P4342) 过了#### 11:40~12:10体锻课#### 14:30~15:38[gcx 大佬](https://www.luogu.com.cn/user/717476) 和 [szh 大佬](https://www.luogu.com.cn/user/1053210)讲课#### 15:45开始做 [P9912](https://www.luogu.com.cn/problem/P9912)#### 16:22[P9912](https://www.luogu.com.cn/problem/P9912) 过了#### 16:25开始做 [P3203](https://www.luogu.com.cn/problem/P3203)#### 16:45[P3203](https://www.luogu.com.cn/problem/P3203) 过了#### 16:47开始做 [AT_abc422_g](https://atcoder.jp/contests/abc422/tasks/abc422_g)#### 19:00~20:40语文晚课### 2026.03.14#### 7:55%你赛#### 8:11A 过了#### 8:22B 20pts#### 10:32C 70pts,但被卡常了嘤嘤嘤,卡到 40pts 了#### 10:58D 30pts#### 11:55D 60pts 没草出来#### 12:05总分 190,rk6#### 14:42cao ta ma de,D 题求 $n!$ 写成 $n^i$ 了,密码的,无语了#### 15:40C 卡卡常过了 70pts#### 16:00~?[cdo大佬](https://www.luogu.com.cn/user/971103)讲%你赛#### 17:02D 改过了#### 17:17B 改过了### 2026.03.15#### 18:50[晚练](https://www.luogu.com.cn/problem/P7201)#### 19:50草,没看到是森林#### 20:050 pts,状态设计正确,转移写了的正确,但lz没写完!!!### 2026.03.16#### 10:15[晚练](https://www.luogu.com.cn/problem/P7201)过了#### 10:16~11:03我干嘛了?怎么过了那么久?我啥都没干?追忆ing#### 11:04改%你赛 C#### 11:30C 过了#### 11:31开始改 [AT_abc449_f](https://atcoder.jp/contests/abc449/tasks/abc449_f)#### 11:40~12:10调整电脑#### 14:30~16:00帮 [wbj大佬](https://www.luogu.com.cn/user/1420917)调代码#### 16:15~17:05体育课#### 17:09继续改 [AT_abc449_f](https://atcoder.jp/contests/abc449/tasks/abc449_f)#### 19:00[晚练](https://www.luogu.com.cn/problem/P5021)#### 19:0620pts#### 19:2035pts#### 19:3055pts#### 20:05正解没改出来,荣获 55pts#### 20:20~21:00改[晚练](https://www.luogu.com.cn/problem/P5021)#### 21:20~22:00继续改[晚练](https://www.luogu.com.cn/problem/P5021)#### 22:00~22:25文化课作业怎么还么写?赶紧写一下#### 22:35开始打 [CF](https://codeforces.com/contest/2204)#### 22:38[A](https://codeforces.com/contest/2204/problem/A) 过了#### 22:43[B](https://codeforces.com/contest/2204/problem/B) 过了#### 22:48[C](https://codeforces.com/contest/2204/problem/C) 过了#### 23:12[D](https://codeforces.com/contest/2204/problem/D) 过了#### 23:48[E](https://codeforces.com/contest/2204/problem/E) 过了#### 23:52诶,我竟然有接近橙的 perf!2050### 2026.03.17#### 00:07登洛谷,这么早!#### 00:50[CF](https://codeforces.com/contest/2204) 结束了,涨大分!#### 09:40来到机房#### 10:05敲个对拍+ spj,尝试 hack 一下别人,但没成功#### 11:00继续改[晚练](https://www.luogu.com.cn/problem/P5021)#### 14:35~?C 老发表演讲#### ?继续改[晚练](https://www.luogu.com.cn/problem/P5021)#### 14:51草,数组没清空,[晚练](https://www.luogu.com.cn/problem/P5021)过了#### 14:56写一下训练日志#### 15:09继续做 [AT_abc422_g](https://atcoder.jp/contests/abc422/tasks/abc422_g)#### 15:44[AT_abc422_g](https://atcoder.jp/contests/abc422/tasks/abc422_g) 过了#### 15:45诶不是,VJ 上的 AT 怎么挂了#### 16:15~17:05体育课#### 17:05~17:41C 老演讲#### 18:55[晚练](https://www.luogu.com.cn/problem/P11830)#### 19:2020pts#### 20:05正解冲击失败#### 20:20改[晚练](https://www.luogu.com.cn/problem/P11830)#### 20:45写语文作业### 2026.03.18#### 7:24今天吃饭慢了点,吃完发现要迟到了,跑太急了,膝盖亲了地板一下#### 10:05搬[题](https://www.luogu.com.cn/problem/U670056)#### 12:10终于搬完了!数据有点小难造#### 14:30~15:10体育课#### 15:20~15:42写一下训练日志#### 15:44改[晚练](https://www.luogu.com.cn/problem/P11830)#### 16:53[晚练](https://www.luogu.com.cn/problem/P11830)过了#### 17:05开始做 [P8250](https://www.luogu.com.cn/problem/P8250)#### 18:40~19:20英语晚课#### 19:30[晚练](https://www.luogu.com.cn/problem/P2824)#### 19:31好多人做过原,换了道[题](https://www.luogu.com.cn/problem/P3647)#### 20:03疑似想到正解#### 21:00荣获 0pts### 2026.03.19#### 10:05~10:42[cdo大佬](https://www.luogu.com.cn/user/971103)和 [hyc大佬](https://www.luogu.com.cn/user/725640)讲晚练#### 10:43改[晚练](https://www.luogu.com.cn/problem/P3647)#### 11:00草,题看错了#### 11:01改[另一道晚练](https://www.luogu.com.cn/problem/P2824)#### 12:10[晚练](https://www.luogu.com.cn/problem/P2824)改出来了#### 14:30~14:45写一下训练日志#### 14:46改[晚练](https://www.luogu.com.cn/problem/P3647)#### 18:22[晚练](https://www.luogu.com.cn/problem/P3647)过了#### 18:40~19:20英语晚课#### 19:30[晚练](https://www.luogu.com.cn/problem/P4406)#### 19:55暴力写出来了#### 20:13突然想用暴力代码测大样例,开始测#### 20:32测完了,对了!#### 20:50我过大样例的暴力错了?(bushi### 2026.03.20#### 8:00~9:30模拟体考,成绩如下:|项目|成绩|得分||:-:|:-:|:-:||中长跑|3:30|100||足球绕杆|7.4|100||实心球|5.5|30|#### 10:05~10:24[hyc大佬](https://www.luogu.com.cn/user/725640)讲晚练#### 10:25继续改[晚练](https://www.luogu.com.cn/problem/P4406)#### 10:31改到 45pts 了,昨晚饭堂丢了 25pts 啊啊啊啊啊啊#### 11:13[晚练](https://www.luogu.com.cn/problem/P4406)过了#### 11:20开始做 [CF2204F](https://codeforces.com/contest/2204/problem/F)#### 11:35~12:10体锻#### 14:30继续做 [CF2204F](https://codeforces.com/contest/2204/problem/F)#### 16:21$O(n \times m)$ 的做法写出来了#### 16:44[CF2204F](https://codeforces.com/contest/2204/problem/F) 过了\前缀和优化后的 $O(n + m)$ 的做法写出来了#### 17:05~17:15C 老演讲#### 17:17~17:40写一下训练日志#### 18:20~19:00写[高质量题解](https://www.luogu.com.cn/article/lk89q9pv)!#### 19:10~20:40语文晚课### 2026.03.21#### 9:10~12:10继续写[高质量题解](https://www.luogu.com.cn/article/lk89q9pv)!
总共写了接近 7k,减去代码 3k,还剩下 4k#### 13:00[模拟赛](https://junior.local.cwoi.com.cn:8443/contest/C0475)#### 13:15A 过了#### 14:11B 过了#### 15:07C 40pts,一开始题读假了#### 16:04D 过了#### 16:36C 55pts#### 16:42提前交卷#### 16:44A 漏了个 corner case 被 hack 了 5pts,C 被 hack 了 15pts,不是,这个 shabi 出题人还卡哈希,它是人吗,荣获 335pts,rk2,什么?你问 rk1 是谁,那肯定是 [超级无敌大大大大大大佬 cdo](https://www.luogu.com.cn/user/971103) 啊!#### 20:00开始打 [ABC450](https://atcoder.jp/contests/abc450)#### 20:00[A](https://atcoder.jp/contests/abc450/tasks/abc450_a) 过了#### 20:03[B](https://atcoder.jp/contests/abc450/tasks/abc450_b) 过了#### 20:10[C](https://atcoder.jp/contests/abc450/tasks/abc450_c) 过了#### 20:23[D](https://atcoder.jp/contests/abc450/tasks/abc450_d) 过了#### 21:12[E](https://atcoder.jp/contests/abc450/tasks/abc450_e) 过了#### 21:15[F](https://atcoder.jp/contests/abc450/tasks/abc450_f) 知道是线段树,但懒得写了#### 21:40bushi,[WBJ大佬](https://www.luogu.com.cn/user/1420917) [G](https://atcoder.jp/contests/abc450/tasks/abc450_g) 过了?#### 21:57草,赛时没看 [G](https://atcoder.jp/contests/abc450/tasks/abc450_g),赛后一下就过了,无语了#### 22:35开始打 [CF1087](https://codeforces.com/contest/2209)#### 22:40[A](https://codeforces.com/contest/2209/problem/A) 过了#### 22:48[B](https://codeforces.com/contest/2209/problem/B) 过了#### 22:52~23:40[C](https://codeforces.com/contest/2209/problem/C) 不会...#### 23:58[D](https://codeforces.com/contest/2209/problem/D) 过了### 2026.03.22#### 00:23[E](https://codeforces.com/contest/2209/problem/E) TLE 了#### 01:31密码的,[C](https://codeforces.com/contest/2209/problem/C) 怎么这么简单,过了#### 18:50[晚练](https://atcoder.jp/contests/abc319/tasks/abc319_g)#### 18:51草,电脑关机了#### 18:56草,重启后 D 盘被吃了#### 19:30草,题目终于看懂了#### 20:00不管了,交了交了#### ?荣获 50pts### 2026.03.23#### 10:07改[晚练](https://atcoder.jp/contests/abc319/tasks/abc319_g)#### 10:35[wwx 大佬](https://www.luogu.com.cn/user/955369) 告诉我模拟赛的 shabi 出题人卡哈希,他改成自然溢出就过了,密码的,赶紧改一下#### 11:08密码的,这个 shabi 出题人真 TM 的卡哈希,无语了啊我双模都被卡了#### 11:12继续改[晚练](https://atcoder.jp/contests/abc319/tasks/abc319_g)#### 12:06[晚练](https://atcoder.jp/contests/abc319/tasks/abc319_g)过了#### 14:30改 [C](https://junior.local.cwoi.com.cn:8443/contest/C0475/problem/C)#### 14:?~15:?[cdo 大佬](https://www.luogu.com.cn/user/971103) 讲模拟赛的题#### 15:20继续改 [C](https://junior.local.cwoi.com.cn:8443/contest/C0475/problem/C)#### 15:40找原题,都交一下#### 15:55继续改 [C](https://junior.local.cwoi.com.cn:8443/contest/C0475/problem/C)#### 16:15~17:05体育课#### 17:15~17:45写一下训练日志#### 18:45[晚练](https://www.luogu.com.cn/problem/P5665)#### 19:2012pts#### 19:3536pts#### 20:0064pts#### 20:20交卷#### ?紫题... 竟然得了64pts bushi,怎么要贪心啊,那我不贪心纯 DP $O(n^2)$ 64pts 又如何呢### 2026.03.24#### 10:05改[晚练](https://www.luogu.com.cn/problem/P5665)#### 10:?~10:45[wwx 大佬](https://www.luogu.com.cn/user/955369)讲[晚练](https://www.luogu.com.cn/problem/P5665)#### 11:32[晚练](https://www.luogu.com.cn/problem/P5665)过了#### 11:40继续改 [%你赛 C](https://junior.local.cwoi.com.cn:8443/contest/C0475/problem/C)#### 15:48猎奇 $O(n^2 \times \log n)$ 做法写出来了#### 17:40草,当你发现你的做法 TMD 伪了的时候 be like:
等一下作者回家找表情包#### 18:45[晚练](https://www.luogu.com.cn/problem/P15819)#### 19:278 pts#### 19:35神秘思路:建一颗三叉树,然后就不知道了#### 19:42二分#### 20:05与点的编号无关#### 20:07想到一种做法,开始打#### 20:24伪爆了,不管了,交了交了#### 20:30草,有捆绑,8pts### 2026.03.25#### 10:?~10:40[fxy 大佬](https://www.luogu.com.cn/user/1495223)讲[晚练](https://www.luogu.com.cn/problem/P15819)#### 10:42继续改[晚练](https://www.luogu.com.cn/problem/P15819)#### 11:20[晚练](https://www.luogu.com.cn/problem/P15819)过了#### 11:26继续改 [%你赛 C](https://junior.local.cwoi.com.cn:8443/contest/C0475/problem/C)#### 16:37呜呜呜 [%你赛 C](https://junior.local.cwoi.com.cn:8443/contest/C0475/problem/C) 终于过了#### 16:40开始做 [AT_arc205_e](https://atcoder.jp/contests/arc205/tasks/arc205_e)#### 17:44[AT_arc205_e](https://atcoder.jp/contests/arc205/tasks/arc205_e) 过了#### 18:15~18:35写一下训练日志#### 18:40~19:20英语晚课#### 19:30开始[晚练](https://www.luogu.com.cn/problem/P9018)#### 20:3530pts#### 20:42交了#### 20:50草,加了4行代码就是正解了#### 21:06[晚练](https://www.luogu.com.cn/problem/P9018)过了### 2026.03.26#### 10:07做 [P3396](https://www.luogu.com.cn/problem/P3396)#### 10:?~10:?C 老演讲#### 10:?~10:57写一下训练日志#### 10:58继续做 [P3396](https://www.luogu.com.cn/problem/P3396)#### 11:10换一道,做 [HDU8088](https://vjudge.net/problem/HDU-8088)#### 14:30继续做 [HDU8088](https://vjudge.net/problem/HDU-8088)#### 15:10C 老让我下节课去给初二的讲题,这节课先准备一下#### 16:15去讲课了#### 17:00终于讲完了#### 17:05继续做 [HDU8088](https://vjudge.net/problem/HDU-8088)#### 18:40~19:20英语晚课#### 19:30[晚练](https://www.luogu.com.cn/problem/P9352)#### 19:3541pts 部分分我做过#### 19:56不管了,先打部分分#### 20:1741pts#### 20:3951pts#### 20:41交了,荣获 51pts 的好成绩### 2026.03.27#### 10:06写一下训练日志#### 10:15改[晚练](https://www.luogu.com.cn/problem/P9352)#### 11:27[晚练](https://www.luogu.com.cn/problem/P9352)过了#### 11:30继续做 [HDU8088](https://vjudge.net/problem/HDU-8088)#### 11:40~12:10体锻#### 14:30继续做 [HDU8088](https://vjudge.net/problem/HDU-8088)#### 15:12上网发现一个叫做 $O(1)$ 求 $\gcd$,问了下 $AI$,现在已经会了,开始实践
[文章](https://www.luogu.com.cn/paste/ul7th52n)#### ?好难调啊...#### 18:20继续做 [HDU8088](https://vjudge.net/problem/HDU-8088)#### 18:55bushi,我本地无论是随机数据还是极端数据跑得都比 [WBJ 大佬](https://www.luogu.com.cn/user/1420917)快,但是他过了,我 T 了### 2026.03.28#### 09:10发现一个优化:需要求 $\gcd$ 的两个数中至少有一个数 $\le \sqrt n$,所以 $gcdTable$ 只需要处理 $\sqrt n \times \sqrt n$ 的大小即可,并且不需要处理 $split$ 数组,因为有一个数一定 $\le \sqrt n$,这样常数锐减,赶紧试试#### 09:27本地极端数据 33.01s -> 22.22s,随机数据 7.6s -> 6.9s#### 09:36尝试把 vector 换成数组#### 09:47我草,过了!本地极端数据 22.22s -> 4.6s,随机数据 6.9s -> 2.4s#### 09:49终于把 [HDU8088](https://vjudge.net/problem/HDU-8088) 过了!!!#### 09:59~10:09写一下训练日志#### 10:15~10:55C 老演讲#### 11:10开始做 [HDU6984](https://vjudge.net/problem/HDU-6984)#### 11:36刚才糖了,以为会了,结果发现思路错了#### 11:38继续做 [P8250](https://www.luogu.com.cn/problem/P8250)#### 13:00[模拟赛](https://junior.local.cwoi.com.cn:8443/contest/C0480)#### 13:05开始看 [A](https://junior.local.cwoi.com.cn:8443/contest/C0480/problem/A)#### 13:09好像会 100pts 了#### 13:18不对,这出题人脸都不要了,在 $a_i$ 全部相等的时候能卡到 $O(n^2)$,还要用手写栈+倍增才行#### 15:07写了 60pts,100pts 调不出来#### 15:08开始看 [B](https://junior.local.cwoi.com.cn:8443/contest/C0480/problem/B)#### 15:10好像会 40pts 了#### 15:2030pts了#### 15:2240pts了#### 15:23开始看 [C](https://junior.local.cwoi.com.cn:8443/contest/C0480/problem/C)#### 15:26好像会 30pts 了#### 15:3130pts 了#### 15:32开始看 [D](https://junior.local.cwoi.com.cn:8443/contest/C0480/problem/D)#### 15:50没看懂 [D](https://junior.local.cwoi.com.cn:8443/contest/C0480/problem/D) 的题意#### 15:52回来继续看 [A](https://junior.local.cwoi.com.cn:8443/contest/C0480/problem/A)#### 16:42过了!!!100pts#### 16:44继续来看 [B](https://junior.local.cwoi.com.cn:8443/contest/C0480/problem/B)#### 17:00极限写出 70pts!!!#### 17:00交卷,100+70+30+0,没有挂分,rk7#### 20:20wc,忘打 [ABC](https://atcoder.jp/contests/abc451) 了#### 22:45开始打 [CF](https://codeforces.com/contest/2211)#### 22:49[A](https://codeforces.com/contest/2211/problem/A) 过了#### 23:14[B](https://codeforces.com/contest/2211/problem/B) 过了#### 23:26[C1](https://codeforces.com/contest/2211/problem/C1) 过了### 2026.03.29#### 1:15结束了,最后接近 2 个小时 [C2](https://codeforces.com/contest/2211/problem/C2) 和 [D](https://codeforces.com/contest/2211/problem/D) 都没磕出来,要掉分了...#### 19:00[晚练](https://www.luogu.com.cn/problem/P9322)#### 19:05对于除了马以外的任意棋子,都可以被皇后覆盖#### 19:08子任务一会了#### 19:1512#### 19:20子任务四会了#### 19:2312+8#### 19:25子任务二会了#### 19:2812+8+9#### 19:31子任务五会了#### 19:4012+8+9+6#### 19:42子任务八会了#### 19:4612+8+9+6+7#### 19:47发现子任务五处理有误#### 19:48子任务九会了#### 19:5012+8+9+7+6#### 19:55子任务三会了#### 19:5812+8+9+7+6+13#### 20:00开始磕马的情况#### 20:30没磕出来#### 20:32子任务9挂了,49pts#### 20:39子任务9改对了### 2026.03.30#### 10:10改[晚练](https://www.luogu.com.cn/problem/P9322)#### 10:37把子任务5改对了#### 10:40开始研究题解#### 11:30oh~ no ~ 看不懂 ~ 思密达 ~#### 11:45诶,我发现一个规律,斜着找规律,好像还蛮有规律的哈,让我仔细推理一下#### 14:30继续改[晚练](https://www.luogu.com.cn/problem/P9322)#### 14:50开始打代码#### 16:08过了!!!#### 16:15~17:05体育课#### 17:07~17:35写一下训练日志#### 17:36继续做 [P8250](https://www.luogu.com.cn/problem/P8250)#### 18:50[晚练](https://www.luogu.com.cn/problem/P4364)#### 19:0730pts#### 19:40知道为何 100pts 挂了,因为有重复的,但至少有 55pts#### 19:50想到正解了#### 20:30没磕出来#### 20:32荣获 60pts### 2026.03.31#### 10:07改[晚练](https://www.luogu.com.cn/problem/P4364)#### 11:10[晚练](https://www.luogu.com.cn/problem/P4364)过了#### 11:15开始改 [%你赛 D](https://junior.local.cwoi.com.cn:8443/contest/C0480/problem/D)#### 11:40体锻课,打篮球#### 14:30继续改 [%你赛 D](https://junior.local.cwoi.com.cn:8443/contest/C0480/problem/D)#### 14:3650pts 改出来了#### 14:58[%你赛 D](https://junior.local.cwoi.com.cn:8443/contest/C0480/problem/D) 过了#### 15:02开始改 [%你赛 B](https://junior.local.cwoi.com.cn:8443/contest/C0480/problem/B)#### 15:20~16:10[hyc 大佬](https://www.luogu.com.cn/user/725640)和 [gcx 大佬](https://www.luogu.com.cn/user/717476)讲[晚练](https://www.luogu.com.cn/problem/P4364)#### 16:20继续改 [%你赛 B](https://junior.local.cwoi.com.cn:8443/contest/C0480/problem/B)#### 17:20[%你赛 B](https://junior.local.cwoi.com.cn:8443/contest/C0480/problem/B) 过了#### 17:25找原题并交了,诶,[A](https://junior.local.cwoi.com.cn:8443/contest/C0480/problem/A) 的 [原](https://codeforces.com/problemset/problem/5/E) 竟然是道 2400!!!我场切了???#### 17:40开始改 [%你赛 C](https://junior.local.cwoi.com.cn:8443/contest/C0480/problem/C)#### 18:20继续改 [%你赛 C](https://junior.local.cwoi.com.cn:8443/contest/C0480/problem/C)#### 19:10~20:40语文晚课## 2026.04### 2026.04.01#### 07:50~08:21写一下训练日志#### 08:22继续改 [%你赛 C](https://junior.local.cwoi.com.cn:8443/contest/C0480/problem/C)#### 09:03[%你赛 C](https://junior.local.cwoi.com.cn:8443/contest/C0480/problem/C) 终于看懂题解了,开始打代码#### 10:13[%你赛 C](https://junior.local.cwoi.com.cn:8443/contest/C0480/problem/C) 过了!!!#### 10:21继续做 [P8250](https://www.luogu.com.cn/problem/P8250)#### 11:22[P8250](https://www.luogu.com.cn/problem/P8250) 过了#### 11:29开始看 [CF2173F](https://codeforces.com/problemset/problem/2173/F)#### 14:30继续做 [CF2173F](https://codeforces.com/problemset/problem/2173/F)#### 14:46[CF2173F](https://codeforces.com/problemset/problem/2173/F) 想到 $O(n \sqrt n \log n)$ 做法,能过#### 15:14[CF2173F](https://codeforces.com/problemset/problem/2173/F) 过了#### 15:20更新[这个](https://www.luogu.com.cn/article/n2s5wjkj)#### 15:42开始做 [P6189](https://www.luogu.com.cn/problem/P6189)#### 16:04想到 80pts 做法#### 16:05?写出来了?80pts 这么好拿?#### 17:20[P6189](https://www.luogu.com.cn/problem/P6189) 过了#### 18:30[晚练](https://www.luogu.com.cn/problem/P15567)#### 18:5983pts#### 19:40交了#### 20:00我草我是傻逼,我定义 $s$ 数组干嘛,直接算就行了啊,不是,我 TM 真服了,差点场切#### 20:05[晚练](https://www.luogu.com.cn/problem/P15567)过了#### 20:10继续做 [P3396](https://www.luogu.com.cn/problem/P3396)### 2026.04.02#### 07:50正式的开始刷蓝书!#### 08:00开始做 [P10449](https://www.luogu.com.cn/problem/P10449)#### 08:20[P10449](https://www.luogu.com.cn/problem/P10449) 过了#### 08:23开始做 [P4552](https://www.luogu.com.cn/problem/P4552)#### 08:41[P4552](https://www.luogu.com.cn/problem/P4552) 过了,感谢[帖子](https://www.luogu.com.cn/discuss/1182743),刚才脑子抽了,不知道第一发写的啥#### 08:42开始做 [P2280](https://www.luogu.com.cn/problem/P2280)#### 08:56**可能存在多个目标在同一位置上的情况!** **可能存在多个目标在同一位置上的情况!** **可能存在多个目标在同一位置上的情况!**#### 08:57[P2280](https://www.luogu.com.cn/problem/P2280) 过了#### 08:59开始做 [P2879](https://www.luogu.com.cn/problem/P2879)#### 09:26[P2879](https://www.luogu.com.cn/problem/P2879) 过了#### 09:28开始做 [P10450](https://www.luogu.com.cn/problem/P10450)#### 09:45~10:30注册了 AcWing 账号,把做了的题交了#### 10:40继续做 [P10450](https://www.luogu.com.cn/problem/P10450)#### 11:14[P10450](https://www.luogu.com.cn/problem/P10450) 过了,一开始写双指针去了,结果发现伪了#### 11:16开始做 [P1168](https://www.luogu.com.cn/problem/P1168)#### 11:29[P1168](https://www.luogu.com.cn/problem/P1168) 过了#### 11:32开始做 [UVA10810](https://www.luogu.com.cn/problem/UVA10810)#### 11:47[UVA10810](https://www.luogu.com.cn/problem/UVA10810) 过了#### 11:49开始做 [P10455](https://www.luogu.com.cn/problem/P10455)#### 14:32开始改 [P2887](https://www.luogu.com.cn/problem/P2887)#### 14:38[P2887](https://www.luogu.com.cn/problem/P2887) 过了#### 14:41开始做 [P2859](https://www.luogu.com.cn/problem/P2859)#### 14:57[P2859](https://www.luogu.com.cn/problem/P2859) 过了#### 14:58开始做 [UVA1193](https://www.luogu.com.cn/problem/UVA1193)#### 15:07[UVA1193](https://www.luogu.com.cn/problem/UVA1193) 过了#### 15:09开始做 [P10453](https://www.luogu.com.cn/problem/P10453)#### 16:09[P10453](https://www.luogu.com.cn/problem/P10453) 过了#### 16:11继续做 [P10451](https://www.luogu.com.cn/problem/P10451)#### 16:24[P10451](https://www.luogu.com.cn/problem/P10451) 的题面写的是啥啊,看了讨论区才看懂题意#### 16:39[P10451](https://www.luogu.com.cn/problem/P10451) 过了#### 16:42开始做 [P10456](https://www.luogu.com.cn/problem/P10456)#### 17:10[P10456](https://www.luogu.com.cn/problem/P10456) 过了#### 17:12开始做 [P10457](https://www.luogu.com.cn/problem/P10457)#### 18:30开始[晚练](https://www.luogu.com.cn/problem/P13308)和[晚练](https://www.luogu.com.cn/problem/P12247)#### 19:50交卷!#### 19:52两道都过了!#### 20:10继续做 [P10457](https://www.luogu.com.cn/problem/P10457)### 2026.04.03#### 7:45开始打 [%你赛](https://junior.local.cwoi.com.cn:8443/contest/C0484)#### 7:47开始看 [A](https://junior.local.cwoi.com.cn:8443/contest/C0484/problem/A)#### 7:58[A](https://junior.local.cwoi.com.cn:8443/contest/C0484/problem/A) 会了#### 8:46[A](https://junior.local.cwoi.com.cn:8443/contest/C0484/problem/A) 100pts 写出来了,但有点卡常?#### 8:53开始看 [B](https://junior.local.cwoi.com.cn:8443/contest/C0484/problem/B)#### 8:57[B](https://junior.local.cwoi.com.cn:8443/contest/C0484/problem/B) 会 60pts 了#### 9:33[B](https://junior.local.cwoi.com.cn:8443/contest/C0484/problem/B) 没调出来,等会儿回来看#### 9:37开始看 [C](https://junior.local.cwoi.com.cn:8443/contest/C0484/problem/C)#### 9:39电脑重启#### 9:44继续看 [C](https://junior.local.cwoi.com.cn:8443/contest/C0484/problem/C)#### 9:45[C](https://junior.local.cwoi.com.cn:8443/contest/C0484/problem/C) 没思路,跳了#### 9:45开始看 [D](https://junior.local.cwoi.com.cn:8443/contest/C0484/problem/D)#### 9:49[D](https://junior.local.cwoi.com.cn:8443/contest/C0484/problem/D) 会 50pts 了#### 9:59[D](https://junior.local.cwoi.com.cn:8443/contest/C0484/problem/D) 30pts#### 10:25发现 [D](https://junior.local.cwoi.com.cn:8443/contest/C0484/problem/D) 剩下20pts做法伪了,跳了#### 10:26回去调 [B](https://junior.local.cwoi.com.cn:8443/contest/C0484/problem/B)#### 10:44[B](https://junior.local.cwoi.com.cn:8443/contest/C0484/problem/B) 调出来了 60pts#### 10:45开始优化 [A](https://junior.local.cwoi.com.cn:8443/contest/C0484/problem/A) 常数#### 10:51[A](https://junior.local.cwoi.com.cn:8443/contest/C0484/problem/A) 优化成功了 2.0s->1.2s#### 11:05[A](https://junior.local.cwoi.com.cn:8443/contest/C0484/problem/A) 优化成功了 1.2s->0.9s#### 11:12继续做 [B](https://junior.local.cwoi.com.cn:8443/contest/C0484/problem/B)#### 11:20我草,[B](https://junior.local.cwoi.com.cn:8443/contest/C0484/problem/B) 过了,100pts,但卡常,好像 ST 表+欧拉序 $O(1)$ 求 LCA 就不卡常了,但 25 分钟我应该打不完,无论如何都至少有 80pts#### 11:30交卷!#### 11:35100+50+0+30=180,[B](https://junior.local.cwoi.com.cn:8443/contest/C0484/problem/B) 调试代码的 `return 0;` 忘删了,还没输出就返回了,只拿了部分分,而且把菊花图看成链了,代码里把判链写成 `u==i||v==i+1` 了,把菊花图判成链了,应该是 `u==i&&v==i+1`,挂了 30pts#### 11:43[B](https://junior.local.cwoi.com.cn:8443/contest/C0484/problem/B) 改到 80pts 了#### 12:12[B](https://junior.local.cwoi.com.cn:8443/contest/C0484/problem/B) 加了个 ST 表+欧拉序 $O(1)$ 求 LCA,卡过去了#### 14:32不对,我 [B](https://junior.local.cwoi.com.cn:8443/contest/C0484/problem/B) 的 AC 代码有问题,数据太水了,我改改#### 15:09[B](https://junior.local.cwoi.com.cn:8443/contest/C0484/problem/B) 现在真过了,我上一个极品代码到底是怎么过的(雾),挂了以下几个点:- 欧拉序和 ST 表应该要开 $2e6$,我都只开了 $2e5$- `ptm()`(预处理欧拉序和 ST 表)在读入 $n$ 和建树之前- `dfs()`(预处理欧拉序)没有运行- ST 表只处理了 17,要处理 21
不是,这么多问题相加给我过了?#### 15:15看 [D](https://junior.local.cwoi.com.cn:8443/contest/C0484/problem/D) 的题解,试着改一下#### 16:00~16:40[金钩大佬](https://www.luogu.com.cn/user/910593) 讲 [%你赛](https://junior.local.cwoi.com.cn:8443/contest/C0484)#### 16:45继续改 [D](https://junior.local.cwoi.com.cn:8443/contest/C0484/problem/D)### 2026.04.06#### 20:03继续改 [D](https://junior.local.cwoi.com.cn:8443/contest/C0484/problem/D)#### 20:20不是,我 D 盘怎么掉了#### 20:35重启多次后无果#### 20:40继续改 [D](https://junior.local.cwoi.com.cn:8443/contest/C0484/problem/D)### 2026.04.07#### 08:00写一下训练日志#### 08:25继续改 [D](https://junior.local.cwoi.com.cn:8443/contest/C0484/problem/D)#### 08:50~09:48C 老演讲#### 10:05继续改 [D](https://junior.local.cwoi.com.cn:8443/contest/C0484/problem/D)#### 10:20开始改 [C](https://junior.local.cwoi.com.cn:8443/contest/C0484/problem/C)#### 16:00[C](https://junior.local.cwoi.com.cn:8443/contest/C0484/problem/C) 好难#### 16:10~17:30帮 [__WBJ0429 __](https://www.luogu.com.cn/user/1420917) 卡常,我真服了,好难卡#### 17:32继续做 [P10457](https://www.luogu.com.cn/problem/P10457)#### 17:41[P10457](https://www.luogu.com.cn/problem/P10457) 过了