<?xml version="1.0" encoding="UTF-8"?><rss version="2.0" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>Social</title><description>個人的 Social 網站，</description><link>https://social.mirumo.net/</link><language>zh-tw</language><item><link>https://social.mirumo.net/post/2025-06-02/</link><guid isPermaLink="true">https://social.mirumo.net/post/2025-06-02/</guid><description>&lt;p&gt;我把 Arc 分頁開到閃退了 OAO&lt;/p&gt;</description><pubDate>Tue, 02 Jun 2026 13:29:21 GMT</pubDate><content:encoded>&lt;p&gt;我把 Arc 分頁開到閃退了 OAO&lt;/p&gt;



Read more: /post/2025-06-02/#body</content:encoded><dc:creator>咪路</dc:creator><category>心情</category></item><item><link>https://social.mirumo.net/post/2025-06-01/</link><guid isPermaLink="true">https://social.mirumo.net/post/2025-06-01/</guid><description>&lt;p&gt;這個人的 PR 真的有夠難 review 的 QAQ&lt;/p&gt;</description><pubDate>Mon, 01 Jun 2026 22:43:12 GMT</pubDate><content:encoded>&lt;p&gt;這個人的 PR 真的有夠難 review 的 QAQ&lt;/p&gt;



Read more: /post/2025-06-01/#body</content:encoded><dc:creator>咪路</dc:creator><category>心情</category></item><item><link>https://social.mirumo.net/post/2025-05-31/</link><guid isPermaLink="true">https://social.mirumo.net/post/2025-05-31/</guid><description>&lt;p&gt;當你發現一個會發光的物質，那你最好祈禱他也會放熱。&lt;/p&gt;</description><pubDate>Sun, 31 May 2026 16:44:40 GMT</pubDate><content:encoded>&lt;p&gt;當你發現一個會發光的物質，那你最好祈禱他也會放熱。&lt;/p&gt;



Read more: /post/2025-05-31/#body</content:encoded><dc:creator>咪路</dc:creator><category>化學</category></item><item><link>https://social.mirumo.net/post/2025-05-29/</link><guid isPermaLink="true">https://social.mirumo.net/post/2025-05-29/</guid><description>&lt;p&gt;每天在公司都在想，回家要好好寫 Side Project，回到家就剩下一攤爛泥&lt;/p&gt;</description><pubDate>Fri, 29 May 2026 21:34:50 GMT</pubDate><content:encoded>&lt;p&gt;每天在公司都在想，回家要好好寫 Side Project，回到家就剩下一攤爛泥&lt;/p&gt;



Read more: /post/2025-05-29/#body</content:encoded><dc:creator>咪路</dc:creator><category>心情</category></item><item><link>https://social.mirumo.net/post/2025-05-26/</link><guid isPermaLink="true">https://social.mirumo.net/post/2025-05-26/</guid><description>&lt;p&gt;好耶！被電訪了，希望有留下好印象&lt;/p&gt;</description><pubDate>Tue, 26 May 2026 17:09:13 GMT</pubDate><content:encoded>&lt;p&gt;好耶！被電訪了，希望有留下好印象&lt;/p&gt;



Read more: /post/2025-05-26/#body</content:encoded><dc:creator>咪路</dc:creator><category>心情</category><category>open-to-work</category></item><item><link>https://social.mirumo.net/post/2025-05-24/</link><guid isPermaLink="true">https://social.mirumo.net/post/2025-05-24/</guid><description>&lt;p&gt;怎麼會有來當場務的當成這樣 OAO&lt;/p&gt;</description><pubDate>Sun, 24 May 2026 12:48:43 GMT</pubDate><content:encoded>&lt;p&gt;怎麼會有來當場務的當成這樣 OAO&lt;/p&gt;



Read more: /post/2025-05-24/#body</content:encoded><dc:creator>咪路</dc:creator><category>心情</category></item><item><link>https://social.mirumo.net/post/2025-05-23/</link><guid isPermaLink="true">https://social.mirumo.net/post/2025-05-23/</guid><description>&lt;p&gt;鑰匙掛在機車上一整天，回來車還在 OuO&lt;/p&gt;</description><pubDate>Sat, 23 May 2026 20:48:37 GMT</pubDate><content:encoded>&lt;p&gt;鑰匙掛在機車上一整天，回來車還在 OuO&lt;/p&gt;



Read more: /post/2025-05-23/#body</content:encoded><dc:creator>咪路</dc:creator><category>心情</category></item><item><link>https://social.mirumo.net/post/2025-05-20/</link><guid isPermaLink="true">https://social.mirumo.net/post/2025-05-20/</guid><description>&lt;p&gt;前天才說 Token 用很慢，結過這一兩天半小時就花完限制了 OAO&lt;/p&gt;</description><pubDate>Wed, 20 May 2026 09:47:58 GMT</pubDate><content:encoded>&lt;p&gt;前天才說 Token 用很慢，結過這一兩天半小時就花完限制了 OAO&lt;/p&gt;



Read more: /post/2025-05-20/#body</content:encoded><dc:creator>咪路</dc:creator><category>claude</category></item><item><link>https://social.mirumo.net/post/2025-05-18_01/</link><guid isPermaLink="true">https://social.mirumo.net/post/2025-05-18_01/</guid><description>&lt;p&gt;感覺最近 Claude Agent 花的 Token 速度變慢了&lt;/p&gt;</description><pubDate>Mon, 18 May 2026 13:59:21 GMT</pubDate><content:encoded>&lt;p&gt;感覺最近 Claude Agent 花的 Token 速度變慢了&lt;/p&gt;



Read more: /post/2025-05-18_01/#body</content:encoded><dc:creator>咪路</dc:creator><category>claude</category></item><item><link>https://social.mirumo.net/post/2025-05-18_00/</link><guid isPermaLink="true">https://social.mirumo.net/post/2025-05-18_00/</guid><description>&lt;p&gt;騎車遇到猴子，差點出車禍&lt;/p&gt;</description><pubDate>Mon, 18 May 2026 12:18:56 GMT</pubDate><content:encoded>&lt;p&gt;騎車遇到猴子，差點出車禍&lt;/p&gt;



Read more: /post/2025-05-18_00/#body</content:encoded><dc:creator>咪路</dc:creator><category>心情</category></item><item><link>https://social.mirumo.net/post/2025-05-16_01/</link><guid isPermaLink="true">https://social.mirumo.net/post/2025-05-16_01/</guid><description>&lt;p&gt;好像已經過了看到小動物會興奮的年紀了&lt;/p&gt;</description><pubDate>Sat, 16 May 2026 15:28:05 GMT</pubDate><content:encoded>&lt;p&gt;好像已經過了看到小動物會興奮的年紀了&lt;/p&gt;



Read more: /post/2025-05-16_01/#body</content:encoded><dc:creator>咪路</dc:creator><category>心情</category></item><item><link>https://social.mirumo.net/post/2025-05-16_00/</link><guid isPermaLink="true">https://social.mirumo.net/post/2025-05-16_00/</guid><description>&lt;p&gt;一群資訊組的人逛動物園感覺好違和。&lt;/p&gt;</description><pubDate>Sat, 16 May 2026 11:45:09 GMT</pubDate><content:encoded>&lt;p&gt;一群資訊組的人逛動物園感覺好違和。&lt;/p&gt;



Read more: /post/2025-05-16_00/#body</content:encoded><dc:creator>咪路</dc:creator><category>心情</category></item><item><link>https://social.mirumo.net/post/2025-05-15/</link><guid isPermaLink="true">https://social.mirumo.net/post/2025-05-15/</guid><description>&lt;p&gt;東湖怎麼那麼多店家還沒有電子支付啊 QAQ&lt;/p&gt;</description><pubDate>Fri, 15 May 2026 20:03:12 GMT</pubDate><content:encoded>&lt;p&gt;東湖怎麼那麼多店家還沒有電子支付啊 QAQ&lt;/p&gt;



Read more: /post/2025-05-15/#body</content:encoded><dc:creator>咪路</dc:creator><category>心情</category></item><item><link>https://social.mirumo.net/post/2025-05-13/</link><guid isPermaLink="true">https://social.mirumo.net/post/2025-05-13/</guid><description>&lt;p&gt;把事情 assign 給我，然後自己把它給做了（？&lt;/p&gt;</description><pubDate>Thu, 14 May 2026 16:32:51 GMT</pubDate><content:encoded>&lt;p&gt;把事情 assign 給我，然後自己把它給做了（？&lt;/p&gt;



Read more: /post/2025-05-13/#body</content:encoded><dc:creator>設 True</dc:creator><category>心情</category></item><item><link>https://social.mirumo.net/post/2025-05-12_01/</link><guid isPermaLink="true">https://social.mirumo.net/post/2025-05-12_01/</guid><description>&lt;p&gt;完蛋！後悔負傷打球了 QAQ&lt;/p&gt;</description><pubDate>Tue, 12 May 2026 21:43:48 GMT</pubDate><content:encoded>&lt;p&gt;完蛋！後悔負傷打球了 QAQ&lt;/p&gt;



Read more: /post/2025-05-12_01/#body</content:encoded><dc:creator>咪路</dc:creator><category>心情</category></item><item><link>https://social.mirumo.net/post/2025-05-12_00/</link><guid isPermaLink="true">https://social.mirumo.net/post/2025-05-12_00/</guid><description>&lt;p&gt;今天騎車沒遇到多少紅燈誒！該不會水逆要反彈了嗎&lt;/p&gt;</description><pubDate>Tue, 12 May 2026 12:11:36 GMT</pubDate><content:encoded>&lt;p&gt;今天騎車沒遇到多少紅燈誒！該不會水逆要反彈了嗎&lt;/p&gt;



Read more: /post/2025-05-12_00/#body</content:encoded><dc:creator>咪路</dc:creator><category>心情</category></item><item><link>https://social.mirumo.net/post/2025-05-11/</link><guid isPermaLink="true">https://social.mirumo.net/post/2025-05-11/</guid><description>&lt;p&gt;所以現在說沒時間，事情就可以不用做了，甚至直接丟給別人事不關己？&lt;/p&gt;</description><pubDate>Mon, 11 May 2026 09:34:11 GMT</pubDate><content:encoded>&lt;p&gt;所以現在說沒時間，事情就可以不用做了，甚至直接丟給別人事不關己？&lt;/p&gt;



Read more: /post/2025-05-11/#body</content:encoded><dc:creator>設 True</dc:creator><category>心情</category></item><item><link>https://social.mirumo.net/post/2025-05-09/</link><guid isPermaLink="true">https://social.mirumo.net/post/2025-05-09/</guid><description>&lt;p&gt;就你 Safari 還不實作 &lt;code&gt;Temporal&lt;/code&gt;&lt;/p&gt;</description><pubDate>Sat, 09 May 2026 16:32:17 GMT</pubDate><content:encoded>&lt;p&gt;就你 Safari 還不實作 &lt;code&gt;Temporal&lt;/code&gt;&lt;/p&gt;



Read more: /post/2025-05-09/#body</content:encoded><dc:creator>咪路</dc:creator><category>心情</category><category>ecmascript</category><category>safari</category></item><item><link>https://social.mirumo.net/post/2025-05-08_01/</link><guid isPermaLink="true">https://social.mirumo.net/post/2025-05-08_01/</guid><description>&lt;p&gt;怎麼覺得最近自己的八卦開關被打開了，突然對八卦特別敏感&lt;/p&gt;</description><pubDate>Fri, 08 May 2026 21:19:33 GMT</pubDate><content:encoded>&lt;p&gt;怎麼覺得最近自己的八卦開關被打開了，突然對八卦特別敏感&lt;/p&gt;



Read more: /post/2025-05-08_01/#body</content:encoded><dc:creator>咪路</dc:creator><category>心情</category></item><item><link>https://social.mirumo.net/post/2025-05-08_00/</link><guid isPermaLink="true">https://social.mirumo.net/post/2025-05-08_00/</guid><description>&lt;p&gt;一個車格就一台車，為什麼就是有人喜歡移別人車&lt;/p&gt;</description><pubDate>Fri, 08 May 2026 18:32:52 GMT</pubDate><content:encoded>&lt;p&gt;一個車格就一台車，為什麼就是有人喜歡移別人車&lt;/p&gt;



Read more: /post/2025-05-08_00/#body</content:encoded><dc:creator>咪路</dc:creator><category>心情</category></item><item><link>https://social.mirumo.net/post/2025-05-07/</link><guid isPermaLink="true">https://social.mirumo.net/post/2025-05-07/</guid><description>&lt;p&gt;啊！太久沒發被提醒了，居然真的有人一直看 OAO ~ 要不妳們也一起來發文 OuO&lt;/p&gt;</description><pubDate>Thu, 07 May 2026 21:56:32 GMT</pubDate><content:encoded>&lt;p&gt;啊！太久沒發被提醒了，居然真的有人一直看 OAO ~ 要不妳們也一起來發文 OuO&lt;/p&gt;



Read more: /post/2025-05-07/#body</content:encoded><dc:creator>咪路</dc:creator><category>心情</category></item><item><link>https://social.mirumo.net/post/stupid-rm/</link><guid isPermaLink="true">https://social.mirumo.net/post/stupid-rm/</guid><description>&lt;p&gt;太蠢了我！想下 &lt;code&gt;rm abc*&lt;/code&gt; 下成 &lt;code&gt;rm abc *&lt;/code&gt; QAQ&lt;/p&gt;</description><pubDate>Sun, 03 May 2026 02:21:14 GMT</pubDate><content:encoded>&lt;p&gt;太蠢了我！想下 &lt;code&gt;rm abc*&lt;/code&gt; 下成 &lt;code&gt;rm abc *&lt;/code&gt; QAQ&lt;/p&gt;



Read more: /post/stupid-rm/#body</content:encoded><dc:creator>咪路</dc:creator><category>心情</category></item><item><link>https://social.mirumo.net/post/not-my-job/</link><guid isPermaLink="true">https://social.mirumo.net/post/not-my-job/</guid><description>&lt;p&gt;PM 是你自己想當的，手上案子很多這不甘我的事，去跟你主管說，我沒有義務要體諒你，然後做你的工作。&lt;/p&gt;</description><pubDate>Thu, 30 Apr 2026 16:32:44 GMT</pubDate><content:encoded>&lt;p&gt;PM 是你自己想當的，手上案子很多這不甘我的事，去跟你主管說，我沒有義務要體諒你，然後做你的工作。&lt;/p&gt;



Read more: /post/not-my-job/#body</content:encoded><dc:creator>設 True</dc:creator><category>心情</category></item><item><link>https://social.mirumo.net/post/care-about/</link><guid isPermaLink="true">https://social.mirumo.net/post/care-about/</guid><description>&lt;p&gt;寫履歷好難喔，總是懷疑自己太廢 QAQ&lt;/p&gt;</description><pubDate>Thu, 30 Apr 2026 16:23:10 GMT</pubDate><content:encoded>&lt;p&gt;寫履歷好難喔，總是懷疑自己太廢 QAQ&lt;/p&gt;



Read more: /post/care-about/#body</content:encoded><dc:creator>咪路</dc:creator><category>心情</category></item><item><link>https://social.mirumo.net/post/gf-helmet/</link><guid isPermaLink="true">https://social.mirumo.net/post/gf-helmet/</guid><description>&lt;p&gt;我實在搞不懂為什麼好多男生要幫女友戴安全帽（？）&lt;/p&gt;</description><pubDate>Tue, 28 Apr 2026 22:18:12 GMT</pubDate><content:encoded>&lt;p&gt;我實在搞不懂為什麼好多男生要幫女友戴安全帽（？）&lt;/p&gt;



Read more: /post/gf-helmet/#body</content:encoded><dc:creator>咪路</dc:creator><category>心情</category></item><item><link>https://social.mirumo.net/post/trash-code/</link><guid isPermaLink="true">https://social.mirumo.net/post/trash-code/</guid><description>&lt;p&gt;所以寫一堆垃圾出來，然後跟我說你改不動？&lt;/p&gt;</description><pubDate>Tue, 28 Apr 2026 16:31:53 GMT</pubDate><content:encoded>&lt;p&gt;所以寫一堆垃圾出來，然後跟我說你改不動？&lt;/p&gt;



Read more: /post/trash-code/#body</content:encoded><dc:creator>設 True</dc:creator><category>心情</category></item><item><link>https://social.mirumo.net/post/copilot-billing/</link><guid isPermaLink="true">https://social.mirumo.net/post/copilot-billing/</guid><description>&lt;p&gt;齁不！Copilot 要換計費方式了 QAQ&lt;/p&gt;</description><pubDate>Tue, 28 Apr 2026 00:08:21 GMT</pubDate><content:encoded>&lt;p&gt;齁不！Copilot 要換計費方式了 QAQ&lt;/p&gt;



Read more: /post/copilot-billing/#body</content:encoded><dc:creator>咪路</dc:creator><category>copilot</category></item><item><link>https://social.mirumo.net/post/claude-sonnet4.6/</link><guid isPermaLink="true">https://social.mirumo.net/post/claude-sonnet4.6/</guid><description>&lt;p&gt;&lt;code&gt;claude sonnet4.6&lt;/code&gt; 很堅持自己的做法欸，還講不聽！重點是做法是錯的&lt;/p&gt;</description><pubDate>Sun, 26 Apr 2026 14:22:53 GMT</pubDate><content:encoded>&lt;p&gt;&lt;code&gt;claude sonnet4.6&lt;/code&gt; 很堅持自己的做法欸，還講不聽！重點是做法是錯的&lt;/p&gt;



Read more: /post/claude-sonnet4.6/#body</content:encoded><dc:creator>咪路</dc:creator><category>心情</category><category>claude</category><category>claude-sonnet</category><category>claude-sonnet4.6</category></item><item><link>https://social.mirumo.net/post/yazi-upgrade/</link><guid isPermaLink="true">https://social.mirumo.net/post/yazi-upgrade/</guid><description>&lt;p&gt;我怎麼更新完 &lt;code&gt;Yazi&lt;/code&gt; 之後，就黑屏了 QAQ&lt;/p&gt;</description><pubDate>Sun, 26 Apr 2026 13:30:45 GMT</pubDate><content:encoded>&lt;p&gt;我怎麼更新完 &lt;code&gt;Yazi&lt;/code&gt; 之後，就黑屏了 QAQ&lt;/p&gt;



Read more: /post/yazi-upgrade/#body</content:encoded><dc:creator>咪路</dc:creator><category>心情</category><category>Yazi</category></item><item><link>https://social.mirumo.net/post/vibe-shit/</link><guid isPermaLink="true">https://social.mirumo.net/post/vibe-shit/</guid><description>&lt;p&gt;總是覺得 Vibe 出來的東西，Code 都很髒&lt;/p&gt;</description><pubDate>Sat, 25 Apr 2026 17:25:14 GMT</pubDate><content:encoded>&lt;p&gt;總是覺得 Vibe 出來的東西，Code 都很髒&lt;/p&gt;



Read more: /post/vibe-shit/#body</content:encoded><dc:creator>咪路</dc:creator><category>心情</category><category>Vibe</category></item><item><link>https://social.mirumo.net/post/in-coffee-shop/</link><guid isPermaLink="true">https://social.mirumo.net/post/in-coffee-shop/</guid><description>&lt;p&gt;剛剛在咖啡廳裡，有個小妹妹走了進來，環顧了四周發現，
有兩個雙人桌被併在一起，並且兩個人坐在同一個桌子上，
旁邊就放著背包。&lt;/p&gt;
&lt;p&gt;小妹妹禮貌地問了他們「這個位置有人做嗎？」，
居然得到「我們要放東西」的回答。&lt;/p&gt;
&lt;p&gt;這個世界怎麼了！&lt;/p&gt;</description><pubDate>Sat, 25 Apr 2026 14:06:21 GMT</pubDate><content:encoded>&lt;p&gt;剛剛在咖啡廳裡，有個小妹妹走了進來，環顧了四周發現，
有兩個雙人桌被併在一起，並且兩個人坐在同一個桌子上，
旁邊就放著背包。&lt;/p&gt;
&lt;p&gt;小妹妹禮貌地問了他們「這個位置有人做嗎？」，
居然得到「我們要放東西」的回答。&lt;/p&gt;
&lt;p&gt;這個世界怎麼了！&lt;/p&gt;



Read more: /post/in-coffee-shop/#body</content:encoded><dc:creator>咪路</dc:creator><category>心情</category></item><item><link>https://social.mirumo.net/post/invest-teacher/</link><guid isPermaLink="true">https://social.mirumo.net/post/invest-teacher/</guid><description>&lt;p&gt;我們的投資老師說，立敦會漲到 70 以上。OK！我已經上車，坐等老師帶飛&lt;/p&gt;</description><pubDate>Thu, 23 Apr 2026 09:34:52 GMT</pubDate><content:encoded>&lt;p&gt;我們的投資老師說，立敦會漲到 70 以上。OK！我已經上車，坐等老師帶飛&lt;/p&gt;



Read more: /post/invest-teacher/#body</content:encoded><dc:creator>咪路</dc:creator><category>心情</category><category>投資</category></item><item><link>https://social.mirumo.net/post/dont-plant-flag/</link><guid isPermaLink="true">https://social.mirumo.net/post/dont-plant-flag/</guid><description>&lt;p&gt;Flag 不要亂立，這跟乖乖一樣是個玄學&lt;/p&gt;</description><pubDate>Wed, 22 Apr 2026 18:22:29 GMT</pubDate><content:encoded>&lt;p&gt;Flag 不要亂立，這跟乖乖一樣是個玄學&lt;/p&gt;



Read more: /post/dont-plant-flag/#body</content:encoded><dc:creator>咪路</dc:creator><category>心情</category></item><item><link>https://social.mirumo.net/post/take-without-inform/</link><guid isPermaLink="true">https://social.mirumo.net/post/take-without-inform/</guid><description>&lt;p&gt;從別人位置拿東西走都不用講的喔！&lt;/p&gt;</description><pubDate>Wed, 22 Apr 2026 08:43:49 GMT</pubDate><content:encoded>&lt;p&gt;從別人位置拿東西走都不用講的喔！&lt;/p&gt;



Read more: /post/take-without-inform/#body</content:encoded><dc:creator>設 True</dc:creator><category>心情</category></item><item><link>https://social.mirumo.net/post/bad-luck/</link><guid isPermaLink="true">https://social.mirumo.net/post/bad-luck/</guid><description>&lt;p&gt;不是說處女座四月水逆要過了，啊我怎麼還是遇到一堆鳥事&lt;/p&gt;</description><pubDate>Tue, 21 Apr 2026 06:41:30 GMT</pubDate><content:encoded>&lt;p&gt;不是說處女座四月水逆要過了，啊我怎麼還是遇到一堆鳥事&lt;/p&gt;



Read more: /post/bad-luck/#body</content:encoded><dc:creator>咪路</dc:creator><category>心情</category></item><item><link>https://social.mirumo.net/post/tired-working/</link><guid isPermaLink="true">https://social.mirumo.net/post/tired-working/</guid><description>&lt;p&gt;自從做完離職倒數之後，工作的狀態持續下滑&lt;/p&gt;</description><pubDate>Mon, 20 Apr 2026 20:11:55 GMT</pubDate><content:encoded>&lt;p&gt;自從做完離職倒數之後，工作的狀態持續下滑&lt;/p&gt;



Read more: /post/tired-working/#body</content:encoded><dc:creator>設 True</dc:creator><category>心情</category></item><item><link>https://social.mirumo.net/post/vibe-code-not-fun/</link><guid isPermaLink="true">https://social.mirumo.net/post/vibe-code-not-fun/</guid><description>&lt;p&gt;AI 持續地剝奪我寫 Code 的樂趣&lt;/p&gt;</description><pubDate>Mon, 20 Apr 2026 19:41:28 GMT</pubDate><content:encoded>&lt;p&gt;AI 持續地剝奪我寫 Code 的樂趣&lt;/p&gt;



Read more: /post/vibe-code-not-fun/#body</content:encoded><dc:creator>咪路</dc:creator><category>心情</category><category>Vibe</category></item><item><link>https://social.mirumo.net/post/job-hunting/</link><guid isPermaLink="true">https://social.mirumo.net/post/job-hunting/</guid><description>&lt;p&gt;雖然說準備找工作是挺焦慮的，但有人願意幫我內推，也是很感動&lt;/p&gt;</description><pubDate>Sat, 18 Apr 2026 00:20:19 GMT</pubDate><content:encoded>&lt;p&gt;雖然說準備找工作是挺焦慮的，但有人願意幫我內推，也是很感動&lt;/p&gt;



Read more: /post/job-hunting/#body</content:encoded><dc:creator>咪路</dc:creator><category>心情</category></item><item><link>https://social.mirumo.net/post/think-about-those-day/</link><guid isPermaLink="true">https://social.mirumo.net/post/think-about-those-day/</guid><description>&lt;p&gt;突然意識到…也已經到了那個會想當年的年紀了&lt;/p&gt;</description><pubDate>Fri, 17 Apr 2026 00:04:41 GMT</pubDate><content:encoded>&lt;p&gt;突然意識到…也已經到了那個會想當年的年紀了&lt;/p&gt;



Read more: /post/think-about-those-day/#body</content:encoded><dc:creator>咪路</dc:creator><category>心情</category></item><item><link>https://social.mirumo.net/post/leetcode-260416/</link><guid isPermaLink="true">https://social.mirumo.net/post/leetcode-260416/</guid><description>&lt;p&gt;[每日 Leetcode] 3488. Closest Equal Element Queries&lt;/p&gt;</description><pubDate>Thu, 16 Apr 2026 13:43:38 GMT</pubDate><content:encoded>&lt;p&gt;[每日 Leetcode] 3488. Closest Equal Element Queries&lt;/p&gt;

&lt;p&gt;效能寫得好爛 QAQ&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;https://leetcode.com/problems/closest-equal-element-queries/submissions/1980839296&quot;&gt;傳送門&lt;/a&gt;&lt;/p&gt;
&lt;h2 id=&quot;solution&quot;&gt;Solution&lt;/h2&gt;
&lt;pre class=&quot;astro-code github-dark&quot; style=&quot;background-color:#24292e;color:#e1e4e8; overflow-x: auto;&quot; tabindex=&quot;0&quot; data-language=&quot;plaintext&quot;&gt;&lt;code&gt;&lt;span class=&quot;line&quot;&gt;&lt;span&gt;class Solution {&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span&gt;  public:&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span&gt;    vector&amp;#x3C;int&gt; solveQueries(vector&amp;#x3C;int&gt; &amp;#x26;nums, vector&amp;#x3C;int&gt; &amp;#x26;queries) {&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span&gt;        vector&amp;#x3C;int&gt; results;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span&gt;        map&amp;#x3C;int, vector&amp;#x3C;int&gt;&gt; pos;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span&gt;        int size = nums.size();&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span&gt;        for (int i = 0; i &amp;#x3C; size; ++i) {&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span&gt;            pos[nums[i]].push_back(i);&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span&gt;        }&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span&gt;        for (auto &amp;#x26;_p : pos) {&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span&gt;            auto &amp;#x26;p = _p.second;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span&gt;            p.insert(p.begin(), p.back() - size);&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span&gt;            p.push_back(p[1] + size);&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span&gt;        }&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span&gt;        for (int query : queries) {&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span&gt;            int cur = nums[query];&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span&gt;            vector&amp;#x3C;int&gt; &amp;#x26;p = pos[cur];&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span&gt;            if (p.size() &amp;#x3C;= 3) {&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span&gt;                results.push_back(-1);&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span&gt;                continue;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span&gt;            }&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span&gt;            auto it = lower_bound(p.begin(), p.end(), query);&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span&gt;            int index = distance(p.begin(), it);&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span&gt;            results.push_back(min(p[index + 1] - query, query - p[index - 1]));&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span&gt;        }&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span&gt;        return results;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span&gt;    }&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span&gt;};&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;

Read more: /post/leetcode-260416/#body</content:encoded><dc:creator>咪路</dc:creator><category>Leetcode</category><category>C++</category></item><item><link>https://social.mirumo.net/post/leetcode-260415/</link><guid isPermaLink="true">https://social.mirumo.net/post/leetcode-260415/</guid><description>&lt;p&gt;[每日 Leetcode] 2515. Shortest Distance to Target String in a Circular Array&lt;/p&gt;</description><pubDate>Wed, 15 Apr 2026 13:22:28 GMT</pubDate><content:encoded>&lt;p&gt;[每日 Leetcode] 2515. Shortest Distance to Target String in a Circular Array&lt;/p&gt;

&lt;p&gt;寫 Writeup 好累，所以就只丟程式碼了!&lt;/p&gt;
&lt;p&gt;很我沒有挑難度寫，剛好的我想到的那天都是 Easy。&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;https://leetcode.com/problems/shortest-distance-to-target-string-in-a-circular-array/description/&quot;&gt;傳送門&lt;/a&gt;&lt;/p&gt;
&lt;h2 id=&quot;solution&quot;&gt;Solution&lt;/h2&gt;
&lt;pre class=&quot;astro-code github-dark&quot; style=&quot;background-color:#24292e;color:#e1e4e8; overflow-x: auto;&quot; tabindex=&quot;0&quot; data-language=&quot;cpp&quot;&gt;&lt;code&gt;&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#F97583&quot;&gt;class&lt;/span&gt;&lt;span style=&quot;color:#B392F0&quot;&gt; Solution&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt; {&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#F97583&quot;&gt;public:&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#F97583&quot;&gt;    int&lt;/span&gt;&lt;span style=&quot;color:#B392F0&quot;&gt; closestTarget&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color:#B392F0&quot;&gt;vector&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;&amp;#x3C;&lt;/span&gt;&lt;span style=&quot;color:#B392F0&quot;&gt;string&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;&gt;&lt;/span&gt;&lt;span style=&quot;color:#F97583&quot;&gt;&amp;#x26;&lt;/span&gt;&lt;span style=&quot;color:#FFAB70&quot;&gt; words&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;, &lt;/span&gt;&lt;span style=&quot;color:#B392F0&quot;&gt;string&lt;/span&gt;&lt;span style=&quot;color:#FFAB70&quot;&gt; target&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;, &lt;/span&gt;&lt;span style=&quot;color:#F97583&quot;&gt;int&lt;/span&gt;&lt;span style=&quot;color:#FFAB70&quot;&gt; startIndex&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;) {&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#F97583&quot;&gt;        int&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt; size &lt;/span&gt;&lt;span style=&quot;color:#F97583&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt; words.&lt;/span&gt;&lt;span style=&quot;color:#B392F0&quot;&gt;size&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;();&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#F97583&quot;&gt;        int&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt; min &lt;/span&gt;&lt;span style=&quot;color:#F97583&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt; INT_MAX;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#F97583&quot;&gt;        for&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt; (&lt;/span&gt;&lt;span style=&quot;color:#F97583&quot;&gt;int&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt; i &lt;/span&gt;&lt;span style=&quot;color:#F97583&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color:#79B8FF&quot;&gt; 0&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;; i &lt;/span&gt;&lt;span style=&quot;color:#F97583&quot;&gt;&amp;#x3C;&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt; size; &lt;/span&gt;&lt;span style=&quot;color:#F97583&quot;&gt;++&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;i) {&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#F97583&quot;&gt;            if&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt; (target &lt;/span&gt;&lt;span style=&quot;color:#F97583&quot;&gt;!=&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt; words[i]) {&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#F97583&quot;&gt;                continue&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;            }&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#F97583&quot;&gt;            int&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt; d1 &lt;/span&gt;&lt;span style=&quot;color:#F97583&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt; (i &lt;/span&gt;&lt;span style=&quot;color:#F97583&quot;&gt;+&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt; size &lt;/span&gt;&lt;span style=&quot;color:#F97583&quot;&gt;-&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt; startIndex) &lt;/span&gt;&lt;span style=&quot;color:#F97583&quot;&gt;%&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt; size;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#F97583&quot;&gt;            int&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt; d2 &lt;/span&gt;&lt;span style=&quot;color:#F97583&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt; size &lt;/span&gt;&lt;span style=&quot;color:#F97583&quot;&gt;-&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt; d1;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#F97583&quot;&gt;            if&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt; (min &lt;/span&gt;&lt;span style=&quot;color:#F97583&quot;&gt;&gt;&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt; d1) {&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;                min &lt;/span&gt;&lt;span style=&quot;color:#F97583&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt; d1;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;            }&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#F97583&quot;&gt;            if&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt; (min &lt;/span&gt;&lt;span style=&quot;color:#F97583&quot;&gt;&gt;&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt; d2) {&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;                min &lt;/span&gt;&lt;span style=&quot;color:#F97583&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt; d2;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;            }&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;        }&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#F97583&quot;&gt;        return&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt; min &lt;/span&gt;&lt;span style=&quot;color:#F97583&quot;&gt;==&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt; INT_MAX &lt;/span&gt;&lt;span style=&quot;color:#F97583&quot;&gt;?&lt;/span&gt;&lt;span style=&quot;color:#F97583&quot;&gt; -&lt;/span&gt;&lt;span style=&quot;color:#79B8FF&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;color:#F97583&quot;&gt; :&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt; min;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;    }&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;};&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;

Read more: /post/leetcode-260415/#body</content:encoded><dc:creator>咪路</dc:creator><category>Leetcode</category><category>C++</category></item><item><link>https://social.mirumo.net/post/why-ghostty/</link><guid isPermaLink="true">https://social.mirumo.net/post/why-ghostty/</guid><description>&lt;p&gt;為什麼大家都用 Ghostty，Wezterm 也很棒呀！！&lt;/p&gt;</description><pubDate>Tue, 14 Apr 2026 19:27:08 GMT</pubDate><content:encoded>&lt;p&gt;為什麼大家都用 Ghostty，Wezterm 也很棒呀！！&lt;/p&gt;



Read more: /post/why-ghostty/#body</content:encoded><dc:creator>咪路</dc:creator><category>心情</category></item><item><link>https://social.mirumo.net/post/slock-off/</link><guid isPermaLink="true">https://social.mirumo.net/post/slock-off/</guid><description>&lt;p&gt;今天真的是這個月上班以來，比較快樂的一天！可能是有一半的時間在摸魚吧 OuO&lt;/p&gt;</description><pubDate>Tue, 14 Apr 2026 16:02:33 GMT</pubDate><content:encoded>&lt;p&gt;今天真的是這個月上班以來，比較快樂的一天！可能是有一半的時間在摸魚吧 OuO&lt;/p&gt;



Read more: /post/slock-off/#body</content:encoded><dc:creator>設 True</dc:creator><category>心情</category></item><item><link>https://social.mirumo.net/post/tired-vim/</link><guid isPermaLink="true">https://social.mirumo.net/post/tired-vim/</guid><description>&lt;p&gt;看同事操作 Bash Terminal 跟 Vim 好痛苦喔！滿滿的方向鍵&lt;/p&gt;</description><pubDate>Mon, 13 Apr 2026 11:32:12 GMT</pubDate><content:encoded>&lt;p&gt;看同事操作 Bash Terminal 跟 Vim 好痛苦喔！滿滿的方向鍵&lt;/p&gt;



Read more: /post/tired-vim/#body</content:encoded><dc:creator>設 True</dc:creator><category>心情</category></item><item><link>https://social.mirumo.net/post/camp25-counselor/</link><guid isPermaLink="true">https://social.mirumo.net/post/camp25-counselor/</guid><description>&lt;p&gt;去年隊輔副組長的 KPI 實在太糟糕了！年會倒是完成了不少&lt;/p&gt;</description><pubDate>Sun, 12 Apr 2026 13:12:34 GMT</pubDate><content:encoded>&lt;p&gt;去年隊輔副組長的 KPI 實在太糟糕了！年會倒是完成了不少&lt;/p&gt;



Read more: /post/camp25-counselor/#body</content:encoded><dc:creator>咪路</dc:creator><category>心情</category></item><item><link>https://social.mirumo.net/post/someone-read/</link><guid isPermaLink="true">https://social.mirumo.net/post/someone-read/</guid><description>&lt;p&gt;我是沒有想到居然有人真的會來看！那我來加個 RSS 好了 &gt; &amp;#x3C;&lt;/p&gt;</description><pubDate>Sat, 11 Apr 2026 21:32:40 GMT</pubDate><content:encoded>&lt;p&gt;我是沒有想到居然有人真的會來看！那我來加個 RSS 好了 &gt; &amp;#x3C;&lt;/p&gt;



Read more: /post/someone-read/#body</content:encoded><dc:creator>咪路</dc:creator><category>心情</category></item><item><link>https://social.mirumo.net/post/leetcode-260411/</link><guid isPermaLink="true">https://social.mirumo.net/post/leetcode-260411/</guid><description>&lt;p&gt;[每日 Leetcode] 3741. Minimum Distance Between Three Equal Elements II&lt;/p&gt;</description><pubDate>Sat, 11 Apr 2026 12:43:33 GMT</pubDate><content:encoded>&lt;p&gt;[每日 Leetcode] 3741. Minimum Distance Between Three Equal Elements II&lt;/p&gt;

&lt;p&gt;好像跟昨天一樣誒！那就複製貼上（？&lt;/p&gt;
&lt;p&gt;喔！過了&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;https://leetcode.com/problems/minimum-distance-between-three-equal-elements-ii/description&quot;&gt;傳送門&lt;/a&gt;&lt;/p&gt;

Read more: /post/leetcode-260411/#body</content:encoded><dc:creator>咪路</dc:creator><category>Leetcode</category><category>C++</category></item><item><link>https://social.mirumo.net/post/reminder-post/</link><guid isPermaLink="true">https://social.mirumo.net/post/reminder-post/</guid><description>&lt;p&gt;昨天有人說要每天看我有沒有發文，沒有的話要來提醒我。所以人勒？！&lt;/p&gt;</description><pubDate>Fri, 10 Apr 2026 21:40:04 GMT</pubDate><content:encoded>&lt;p&gt;昨天有人說要每天看我有沒有發文，沒有的話要來提醒我。所以人勒？！&lt;/p&gt;



Read more: /post/reminder-post/#body</content:encoded><dc:creator>咪路</dc:creator><category>心情</category></item><item><link>https://social.mirumo.net/post/leetcode-260410/</link><guid isPermaLink="true">https://social.mirumo.net/post/leetcode-260410/</guid><description>&lt;p&gt;[每日 Leetcode] 3653. XOR After Range Multiplication Queries I&lt;/p&gt;</description><pubDate>Fri, 10 Apr 2026 20:35:32 GMT</pubDate><content:encoded>&lt;p&gt;[每日 Leetcode] 3653. XOR After Range Multiplication Queries I&lt;/p&gt;

&lt;p&gt;完蛋！每日都不每日了。&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;https://leetcode.com/problems/minimum-distance-between-three-equal-elements-i/description&quot;&gt;傳送門&lt;/a&gt;&lt;/p&gt;
&lt;h2 id=&quot;problem&quot;&gt;Problem&lt;/h2&gt;
&lt;p&gt;會拿到一個整數陣列 &lt;code&gt;nums&lt;/code&gt;。&lt;/p&gt;
&lt;p&gt;要從裡面選三個不同的索引 (i, j, k)，而且要滿足這三個位置的數值相等，也就是：&lt;/p&gt;
&lt;pre class=&quot;astro-code github-dark&quot; style=&quot;background-color:#24292e;color:#e1e4e8; overflow-x: auto;&quot; tabindex=&quot;0&quot; data-language=&quot;plaintext&quot;&gt;&lt;code&gt;&lt;span class=&quot;line&quot;&gt;&lt;span&gt;nums[i] == nums[j] == nums[k]&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;在所有符合條件的數組裡，找出「距離最小」的那一組，並回傳那個最小值。&lt;/p&gt;
&lt;p&gt;距離就是兩兩相差的總和：&lt;/p&gt;
&lt;pre class=&quot;astro-code github-dark&quot; style=&quot;background-color:#24292e;color:#e1e4e8; overflow-x: auto;&quot; tabindex=&quot;0&quot; data-language=&quot;plaintext&quot;&gt;&lt;code&gt;&lt;span class=&quot;line&quot;&gt;&lt;span&gt;abs(nums[i] - nums[j]) + abs(nums[i] - nums[k]) + abs(nums[j] - nums[k])&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;h2 id=&quot;solution&quot;&gt;Solution&lt;/h2&gt;
&lt;pre class=&quot;astro-code github-dark&quot; style=&quot;background-color:#24292e;color:#e1e4e8; overflow-x: auto;&quot; tabindex=&quot;0&quot; data-language=&quot;cpp&quot;&gt;&lt;code&gt;&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#F97583&quot;&gt;class&lt;/span&gt;&lt;span style=&quot;color:#B392F0&quot;&gt; Solution&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt; {&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#F97583&quot;&gt;public:&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#F97583&quot;&gt;    int&lt;/span&gt;&lt;span style=&quot;color:#B392F0&quot;&gt; minimumDistance&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color:#B392F0&quot;&gt;vector&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;&amp;#x3C;&lt;/span&gt;&lt;span style=&quot;color:#F97583&quot;&gt;int&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;&gt;&lt;/span&gt;&lt;span style=&quot;color:#F97583&quot;&gt;&amp;#x26;&lt;/span&gt;&lt;span style=&quot;color:#FFAB70&quot;&gt; nums&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;) {&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;        map&lt;/span&gt;&lt;span style=&quot;color:#F97583&quot;&gt;&amp;#x3C;int&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;, vector&lt;/span&gt;&lt;span style=&quot;color:#F97583&quot;&gt;&amp;#x3C;int&gt;&gt;&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt; m;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#F97583&quot;&gt;        for&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt; (&lt;/span&gt;&lt;span style=&quot;color:#F97583&quot;&gt;int&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt; i &lt;/span&gt;&lt;span style=&quot;color:#F97583&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color:#79B8FF&quot;&gt; 0&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;; i &lt;/span&gt;&lt;span style=&quot;color:#F97583&quot;&gt;&amp;#x3C;&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt; nums.&lt;/span&gt;&lt;span style=&quot;color:#B392F0&quot;&gt;size&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;(); &lt;/span&gt;&lt;span style=&quot;color:#F97583&quot;&gt;++&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;i) {&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;            m[nums[i]].&lt;/span&gt;&lt;span style=&quot;color:#B392F0&quot;&gt;push_back&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;(i);&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;        }&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#F97583&quot;&gt;        int&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt; result &lt;/span&gt;&lt;span style=&quot;color:#F97583&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt; INT_MAX;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#F97583&quot;&gt;        for&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt; (&lt;/span&gt;&lt;span style=&quot;color:#F97583&quot;&gt;auto&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt; p &lt;/span&gt;&lt;span style=&quot;color:#F97583&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt; m.&lt;/span&gt;&lt;span style=&quot;color:#B392F0&quot;&gt;begin&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;(); p &lt;/span&gt;&lt;span style=&quot;color:#F97583&quot;&gt;!=&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt; m.&lt;/span&gt;&lt;span style=&quot;color:#B392F0&quot;&gt;end&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;(); &lt;/span&gt;&lt;span style=&quot;color:#F97583&quot;&gt;++&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;p) {&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#F97583&quot;&gt;            int&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt; size &lt;/span&gt;&lt;span style=&quot;color:#F97583&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt; p-&gt;second.&lt;/span&gt;&lt;span style=&quot;color:#B392F0&quot;&gt;size&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;();&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#F97583&quot;&gt;            if&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt; (size &lt;/span&gt;&lt;span style=&quot;color:#F97583&quot;&gt;&gt;=&lt;/span&gt;&lt;span style=&quot;color:#79B8FF&quot;&gt; 3&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;) {&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#F97583&quot;&gt;                for&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt; (&lt;/span&gt;&lt;span style=&quot;color:#F97583&quot;&gt;int&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt; i &lt;/span&gt;&lt;span style=&quot;color:#F97583&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color:#79B8FF&quot;&gt; 0&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;; i &lt;/span&gt;&lt;span style=&quot;color:#F97583&quot;&gt;&amp;#x3C;&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt; size &lt;/span&gt;&lt;span style=&quot;color:#F97583&quot;&gt;-&lt;/span&gt;&lt;span style=&quot;color:#79B8FF&quot;&gt; 2&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;; &lt;/span&gt;&lt;span style=&quot;color:#F97583&quot;&gt;++&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;i) {&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#F97583&quot;&gt;                    int&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt; value &lt;/span&gt;&lt;span style=&quot;color:#F97583&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt; p-&gt;second[i &lt;/span&gt;&lt;span style=&quot;color:#F97583&quot;&gt;+&lt;/span&gt;&lt;span style=&quot;color:#79B8FF&quot;&gt; 2&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;] &lt;/span&gt;&lt;span style=&quot;color:#F97583&quot;&gt;-&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt; p-&gt;second[i];&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#F97583&quot;&gt;                    if&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt; (value &lt;/span&gt;&lt;span style=&quot;color:#F97583&quot;&gt;&amp;#x3C;&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt; result) {&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;                        result &lt;/span&gt;&lt;span style=&quot;color:#F97583&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt; value;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;                    }&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;                }&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;            }&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;        }&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#F97583&quot;&gt;        if&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt; (result &lt;/span&gt;&lt;span style=&quot;color:#F97583&quot;&gt;==&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt; INT_MAX) {&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#F97583&quot;&gt;            return&lt;/span&gt;&lt;span style=&quot;color:#F97583&quot;&gt; -&lt;/span&gt;&lt;span style=&quot;color:#79B8FF&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;        }&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#F97583&quot;&gt;        return&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt; result &lt;/span&gt;&lt;span style=&quot;color:#F97583&quot;&gt;&amp;#x3C;&amp;#x3C;&lt;/span&gt;&lt;span style=&quot;color:#79B8FF&quot;&gt; 1&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;    }&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;};&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;h2 id=&quot;writeup&quot;&gt;Writeup&lt;/h2&gt;
&lt;p&gt;今天剛好是 Easy 的題目，然後也沒有多想，幾乎一次就過了，所以就留 Code 就好了 XD&lt;/p&gt;

Read more: /post/leetcode-260410/#body</content:encoded><dc:creator>咪路</dc:creator><category>Leetcode</category><category>C++</category></item><item><link>https://social.mirumo.net/post/industrial-revolution-vibe-code/</link><guid isPermaLink="true">https://social.mirumo.net/post/industrial-revolution-vibe-code/</guid><description>&lt;p&gt;當初工業革命之後，開始有人標榜純手工; 現在 Vibe Code 正盛時期，我是不是也可以來標榜純手刻？&lt;/p&gt;</description><pubDate>Thu, 09 Apr 2026 19:21:59 GMT</pubDate><content:encoded>&lt;p&gt;當初工業革命之後，開始有人標榜純手工; 現在 Vibe Code 正盛時期，我是不是也可以來標榜純手刻？&lt;/p&gt;



Read more: /post/industrial-revolution-vibe-code/#body</content:encoded><dc:creator>咪路</dc:creator><category>Vibe</category></item><item><link>https://social.mirumo.net/post/ineffective-communication/</link><guid isPermaLink="true">https://social.mirumo.net/post/ineffective-communication/</guid><description>&lt;p&gt;這麼無效的溝通還開什麼會啊！&lt;/p&gt;</description><pubDate>Thu, 09 Apr 2026 15:35:12 GMT</pubDate><content:encoded>&lt;p&gt;這麼無效的溝通還開什麼會啊！&lt;/p&gt;



Read more: /post/ineffective-communication/#body</content:encoded><dc:creator>設 True</dc:creator><category>心情</category></item><item><link>https://social.mirumo.net/post/bluffing-bragging/</link><guid isPermaLink="true">https://social.mirumo.net/post/bluffing-bragging/</guid><description>&lt;p&gt;這世界唬爛跟吹牛來的比真正的技術還要重要&lt;/p&gt;</description><pubDate>Thu, 09 Apr 2026 10:22:20 GMT</pubDate><content:encoded>&lt;p&gt;這世界唬爛跟吹牛來的比真正的技術還要重要&lt;/p&gt;



Read more: /post/bluffing-bragging/#body</content:encoded><dc:creator>設 True</dc:creator><category>心情</category></item><item><link>https://social.mirumo.net/post/leetcode-260408/</link><guid isPermaLink="true">https://social.mirumo.net/post/leetcode-260408/</guid><description>&lt;p&gt;[每日 Leetcode] 3653. XOR After Range Multiplication Queries I&lt;/p&gt;</description><pubDate>Wed, 08 Apr 2026 23:59:15 GMT</pubDate><content:encoded>&lt;p&gt;[每日 Leetcode] 3653. XOR After Range Multiplication Queries I&lt;/p&gt;

&lt;p&gt;準備跑路的我，好像需要開始刷點 Leetcode 了！&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;https://leetcode.com/problems/xor-after-range-multiplication-queries-i/description/&quot;&gt;傳送門&lt;/a&gt;&lt;/p&gt;
&lt;h2 id=&quot;problem&quot;&gt;Problem&lt;/h2&gt;
&lt;p&gt;給你一個整數陣列 &lt;code&gt;nums&lt;/code&gt;，還有一堆操作 &lt;code&gt;queries&lt;/code&gt;，每個 query 長 &lt;code&gt;queries[i] = [l, r, k, v]&lt;/code&gt;。&lt;/p&gt;
&lt;p&gt;然後題目給了一系列的操作：&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;從 &lt;code&gt;index = l&lt;/code&gt; 開始&lt;/li&gt;
&lt;li&gt;每次加 &lt;code&gt;k&lt;/code&gt;，直到超過 &lt;code&gt;r&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;每次迴圈就：
&lt;pre class=&quot;astro-code github-dark&quot; style=&quot;background-color:#24292e;color:#e1e4e8; overflow-x: auto;&quot; tabindex=&quot;0&quot; data-language=&quot;plaintext&quot;&gt;&lt;code&gt;&lt;span class=&quot;line&quot;&gt;&lt;span&gt;nums[index] = (nums[index] * v) % (1e9 + 7)&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;最後回傳 &lt;code&gt;nums&lt;/code&gt; 所有數值的 &lt;code&gt;XOR&lt;/code&gt;。&lt;/p&gt;
&lt;h2 id=&quot;solution&quot;&gt;Solution&lt;/h2&gt;
&lt;pre class=&quot;astro-code github-dark&quot; style=&quot;background-color:#24292e;color:#e1e4e8; overflow-x: auto;&quot; tabindex=&quot;0&quot; data-language=&quot;cpp&quot;&gt;&lt;code&gt;&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#F97583&quot;&gt;class&lt;/span&gt;&lt;span style=&quot;color:#B392F0&quot;&gt; Solution&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt; {&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#F97583&quot;&gt;public:&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#F97583&quot;&gt;    static&lt;/span&gt;&lt;span style=&quot;color:#F97583&quot;&gt; constexpr&lt;/span&gt;&lt;span style=&quot;color:#F97583&quot;&gt; int&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt; mod &lt;/span&gt;&lt;span style=&quot;color:#F97583&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color:#79B8FF&quot;&gt; 1&lt;/span&gt;&lt;span style=&quot;color:#F97583&quot;&gt;e&lt;/span&gt;&lt;span style=&quot;color:#79B8FF&quot;&gt;9&lt;/span&gt;&lt;span style=&quot;color:#F97583&quot;&gt; +&lt;/span&gt;&lt;span style=&quot;color:#79B8FF&quot;&gt; 7&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#F97583&quot;&gt;    inline&lt;/span&gt;&lt;span style=&quot;color:#F97583&quot;&gt; static&lt;/span&gt;&lt;span style=&quot;color:#F97583&quot;&gt; int&lt;/span&gt;&lt;span style=&quot;color:#B392F0&quot;&gt; xorAfterQueries&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color:#B392F0&quot;&gt;vector&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;&amp;#x3C;&lt;/span&gt;&lt;span style=&quot;color:#F97583&quot;&gt;int&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;&gt;&lt;/span&gt;&lt;span style=&quot;color:#F97583&quot;&gt;&amp;#x26;&lt;/span&gt;&lt;span style=&quot;color:#FFAB70&quot;&gt; nums&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;, &lt;/span&gt;&lt;span style=&quot;color:#B392F0&quot;&gt;vector&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;&amp;#x3C;&lt;/span&gt;&lt;span style=&quot;color:#B392F0&quot;&gt;vector&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;&amp;#x3C;&lt;/span&gt;&lt;span style=&quot;color:#F97583&quot;&gt;int&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;&gt;&gt;&lt;/span&gt;&lt;span style=&quot;color:#F97583&quot;&gt;&amp;#x26;&lt;/span&gt;&lt;span style=&quot;color:#FFAB70&quot;&gt; queries&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;) {&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;        &lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#F97583&quot;&gt;        for&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt; (vector&lt;/span&gt;&lt;span style=&quot;color:#F97583&quot;&gt;&amp;#x3C;int&gt;&amp;#x26;&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt; query : queries) {&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#F97583&quot;&gt;            int&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt; idx &lt;/span&gt;&lt;span style=&quot;color:#F97583&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt; query[&lt;/span&gt;&lt;span style=&quot;color:#79B8FF&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;];&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#F97583&quot;&gt;            while&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt; (idx &lt;/span&gt;&lt;span style=&quot;color:#F97583&quot;&gt;&amp;#x3C;=&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt; query[&lt;/span&gt;&lt;span style=&quot;color:#79B8FF&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;]) {&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#F97583&quot;&gt;                long&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt; n &lt;/span&gt;&lt;span style=&quot;color:#F97583&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt; (&lt;/span&gt;&lt;span style=&quot;color:#F97583&quot;&gt;long&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;)nums[idx] &lt;/span&gt;&lt;span style=&quot;color:#F97583&quot;&gt;*&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt; query[&lt;/span&gt;&lt;span style=&quot;color:#79B8FF&quot;&gt;3&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;];&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;                nums[idx] &lt;/span&gt;&lt;span style=&quot;color:#F97583&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt; n &lt;/span&gt;&lt;span style=&quot;color:#F97583&quot;&gt;%&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt; mod;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;                idx &lt;/span&gt;&lt;span style=&quot;color:#F97583&quot;&gt;+=&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt; query[&lt;/span&gt;&lt;span style=&quot;color:#79B8FF&quot;&gt;2&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;];&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;            }&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;        }&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#F97583&quot;&gt;        int&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt; result &lt;/span&gt;&lt;span style=&quot;color:#F97583&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color:#79B8FF&quot;&gt; 0&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#F97583&quot;&gt;        for&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt; (&lt;/span&gt;&lt;span style=&quot;color:#F97583&quot;&gt;int&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt; num : nums) {&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;            result &lt;/span&gt;&lt;span style=&quot;color:#F97583&quot;&gt;^=&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt; num;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;        }&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#F97583&quot;&gt;        return&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt; result;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;    }&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;};&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;h2 id=&quot;write-up&quot;&gt;Write up&lt;/h2&gt;
&lt;p&gt;OK! 妥妥的就是把演算法直接寫在題目裡了！最大的問題應該就是數值操作可能會有 overflow 的問題了。&lt;/p&gt;
&lt;p&gt;先什麼都不處理看看結果&lt;/p&gt;
&lt;pre class=&quot;astro-code github-dark&quot; style=&quot;background-color:#24292e;color:#e1e4e8; overflow-x: auto;&quot; tabindex=&quot;0&quot; data-language=&quot;cpp&quot;&gt;&lt;code&gt;&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#F97583&quot;&gt;class&lt;/span&gt;&lt;span style=&quot;color:#B392F0&quot;&gt; Solution&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt; {&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#F97583&quot;&gt;public:&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#F97583&quot;&gt;    int&lt;/span&gt;&lt;span style=&quot;color:#B392F0&quot;&gt; xorAfterQueries&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color:#B392F0&quot;&gt;vector&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;&amp;#x3C;&lt;/span&gt;&lt;span style=&quot;color:#F97583&quot;&gt;int&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;&gt;&lt;/span&gt;&lt;span style=&quot;color:#F97583&quot;&gt;&amp;#x26;&lt;/span&gt;&lt;span style=&quot;color:#FFAB70&quot;&gt; nums&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;, &lt;/span&gt;&lt;span style=&quot;color:#B392F0&quot;&gt;vector&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;&amp;#x3C;&lt;/span&gt;&lt;span style=&quot;color:#B392F0&quot;&gt;vector&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;&amp;#x3C;&lt;/span&gt;&lt;span style=&quot;color:#F97583&quot;&gt;int&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;&gt;&gt;&lt;/span&gt;&lt;span style=&quot;color:#F97583&quot;&gt;&amp;#x26;&lt;/span&gt;&lt;span style=&quot;color:#FFAB70&quot;&gt; queries&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;) {&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#F97583&quot;&gt;        for&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt; (vector&lt;/span&gt;&lt;span style=&quot;color:#F97583&quot;&gt;&amp;#x3C;int&gt;&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt; query : queries) {&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#F97583&quot;&gt;            int&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt; idx &lt;/span&gt;&lt;span style=&quot;color:#F97583&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt; query[&lt;/span&gt;&lt;span style=&quot;color:#79B8FF&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;];&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#F97583&quot;&gt;            while&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt; (idx &lt;/span&gt;&lt;span style=&quot;color:#F97583&quot;&gt;&amp;#x3C;=&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt; query[&lt;/span&gt;&lt;span style=&quot;color:#79B8FF&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;]) {&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;                nums[idx] &lt;/span&gt;&lt;span style=&quot;color:#F97583&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt; ((&lt;/span&gt;&lt;span style=&quot;color:#F97583&quot;&gt;long&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;)nums[idx] &lt;/span&gt;&lt;span style=&quot;color:#F97583&quot;&gt;*&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt; query[&lt;/span&gt;&lt;span style=&quot;color:#79B8FF&quot;&gt;3&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;]) &lt;/span&gt;&lt;span style=&quot;color:#F97583&quot;&gt;%&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt; (&lt;/span&gt;&lt;span style=&quot;color:#79B8FF&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;color:#F97583&quot;&gt;e&lt;/span&gt;&lt;span style=&quot;color:#79B8FF&quot;&gt;9&lt;/span&gt;&lt;span style=&quot;color:#F97583&quot;&gt; +&lt;/span&gt;&lt;span style=&quot;color:#79B8FF&quot;&gt; 7&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;);&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;                idx &lt;/span&gt;&lt;span style=&quot;color:#F97583&quot;&gt;+=&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt; query[&lt;/span&gt;&lt;span style=&quot;color:#79B8FF&quot;&gt;2&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;];&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;            }&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;        }&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#F97583&quot;&gt;        int&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt; result &lt;/span&gt;&lt;span style=&quot;color:#F97583&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color:#79B8FF&quot;&gt; 0&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#F97583&quot;&gt;        for&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt; (&lt;/span&gt;&lt;span style=&quot;color:#F97583&quot;&gt;int&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt; num : nums) {&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;            result &lt;/span&gt;&lt;span style=&quot;color:#F97583&quot;&gt;^=&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt; num;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;        }&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#F97583&quot;&gt;        return&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt; result;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;    }&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;};&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;果然 overflow 了，那加上 &lt;code&gt;long&lt;/code&gt; (?&lt;/p&gt;
&lt;pre class=&quot;astro-code github-dark&quot; style=&quot;background-color:#24292e;color:#e1e4e8; overflow-x: auto;&quot; tabindex=&quot;0&quot; data-language=&quot;cpp&quot;&gt;&lt;code&gt;&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#F97583&quot;&gt;class&lt;/span&gt;&lt;span style=&quot;color:#B392F0&quot;&gt; Solution&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt; {&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#F97583&quot;&gt;public:&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#F97583&quot;&gt;    int&lt;/span&gt;&lt;span style=&quot;color:#B392F0&quot;&gt; xorAfterQueries&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color:#B392F0&quot;&gt;vector&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;&amp;#x3C;&lt;/span&gt;&lt;span style=&quot;color:#F97583&quot;&gt;int&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;&gt;&lt;/span&gt;&lt;span style=&quot;color:#F97583&quot;&gt;&amp;#x26;&lt;/span&gt;&lt;span style=&quot;color:#FFAB70&quot;&gt; nums&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;, &lt;/span&gt;&lt;span style=&quot;color:#B392F0&quot;&gt;vector&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;&amp;#x3C;&lt;/span&gt;&lt;span style=&quot;color:#B392F0&quot;&gt;vector&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;&amp;#x3C;&lt;/span&gt;&lt;span style=&quot;color:#F97583&quot;&gt;int&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;&gt;&gt;&lt;/span&gt;&lt;span style=&quot;color:#F97583&quot;&gt;&amp;#x26;&lt;/span&gt;&lt;span style=&quot;color:#FFAB70&quot;&gt; queries&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;) {&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#F97583&quot;&gt;        for&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt; (vector&lt;/span&gt;&lt;span style=&quot;color:#F97583&quot;&gt;&amp;#x3C;int&gt;&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt; query : queries) {&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#F97583&quot;&gt;            int&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt; idx &lt;/span&gt;&lt;span style=&quot;color:#F97583&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt; query[&lt;/span&gt;&lt;span style=&quot;color:#79B8FF&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;];&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#F97583&quot;&gt;            while&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt; (idx &lt;/span&gt;&lt;span style=&quot;color:#F97583&quot;&gt;&amp;#x3C;=&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt; query[&lt;/span&gt;&lt;span style=&quot;color:#79B8FF&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;]) {&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;                nums[idx] &lt;/span&gt;&lt;span style=&quot;color:#F97583&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt; ((&lt;/span&gt;&lt;span style=&quot;color:#F97583&quot;&gt;long&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;)nums[idx] &lt;/span&gt;&lt;span style=&quot;color:#F97583&quot;&gt;*&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt; query[&lt;/span&gt;&lt;span style=&quot;color:#79B8FF&quot;&gt;3&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;]) &lt;/span&gt;&lt;span style=&quot;color:#F97583&quot;&gt;%&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt; (&lt;/span&gt;&lt;span style=&quot;color:#79B8FF&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;color:#F97583&quot;&gt;e&lt;/span&gt;&lt;span style=&quot;color:#79B8FF&quot;&gt;9&lt;/span&gt;&lt;span style=&quot;color:#F97583&quot;&gt; +&lt;/span&gt;&lt;span style=&quot;color:#79B8FF&quot;&gt; 7&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;);&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;                idx &lt;/span&gt;&lt;span style=&quot;color:#F97583&quot;&gt;+=&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt; query[&lt;/span&gt;&lt;span style=&quot;color:#79B8FF&quot;&gt;2&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;];&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;            }&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;        }&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#F97583&quot;&gt;        int&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt; result &lt;/span&gt;&lt;span style=&quot;color:#F97583&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color:#79B8FF&quot;&gt; 0&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#F97583&quot;&gt;        for&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt; (&lt;/span&gt;&lt;span style=&quot;color:#F97583&quot;&gt;int&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt; num : nums) {&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;            result &lt;/span&gt;&lt;span style=&quot;color:#F97583&quot;&gt;^=&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt; num;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;        }&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#F97583&quot;&gt;        return&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt; result;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;    }&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;};&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;好的！過了…&lt;/p&gt;
&lt;p&gt;後來研究了一下其他人的 code，有幾個可以改善的地方：&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;inline 建議編譯器將函數展開，消除函數呼叫的 overhead（push/pop stack frame）。&lt;/li&gt;
&lt;li&gt;在迴圈當中用 Reference，防止每次迴圈都重新建立新的變數。&lt;/li&gt;
&lt;/ol&gt;

Read more: /post/leetcode-260408/#body</content:encoded><dc:creator>咪路</dc:creator><category>Leetcode</category><category>C++</category></item><item><link>https://social.mirumo.net/post/resign-in-month/</link><guid isPermaLink="true">https://social.mirumo.net/post/resign-in-month/</guid><description>&lt;p&gt;部門一個月內走了兩個核心的同事 OAO&lt;/p&gt;</description><pubDate>Wed, 08 Apr 2026 23:56:37 GMT</pubDate><content:encoded>&lt;p&gt;部門一個月內走了兩個核心的同事 OAO&lt;/p&gt;



Read more: /post/resign-in-month/#body</content:encoded><dc:creator>設 True</dc:creator><category>心情</category></item><item><link>https://social.mirumo.net/post/i-want-vacation/</link><guid isPermaLink="true">https://social.mirumo.net/post/i-want-vacation/</guid><description>&lt;p&gt;才剛放完清明連假，我現在又想要放假了 QAQ…&lt;/p&gt;</description><pubDate>Wed, 08 Apr 2026 21:56:29 GMT</pubDate><content:encoded>&lt;p&gt;才剛放完清明連假，我現在又想要放假了 QAQ…&lt;/p&gt;



Read more: /post/i-want-vacation/#body</content:encoded><dc:creator>咪路</dc:creator><category>心情</category></item><item><link>https://social.mirumo.net/post/ts-filter-boolean/</link><guid isPermaLink="true">https://social.mirumo.net/post/ts-filter-boolean/</guid><description>&lt;p&gt;&lt;code&gt;.filter(Boolean)&lt;/code&gt; 居然沒辦法讓 TypeScript 正確地推導出型別。&lt;/p&gt;</description><pubDate>Sun, 05 Apr 2026 20:27:55 GMT</pubDate><content:encoded>&lt;p&gt;&lt;code&gt;.filter(Boolean)&lt;/code&gt; 居然沒辦法讓 TypeScript 正確地推導出型別。&lt;/p&gt;



Read more: /post/ts-filter-boolean/#body</content:encoded><dc:creator>咪路</dc:creator><category>TypeScript</category></item><item><link>https://social.mirumo.net/post/fuck-charts/</link><guid isPermaLink="true">https://social.mirumo.net/post/fuck-charts/</guid><description>&lt;p&gt;如果你對 claude 罵髒話的話，那你可能會被記小本本。&lt;/p&gt;</description><pubDate>Sat, 04 Apr 2026 15:01:51 GMT</pubDate><content:encoded>&lt;p&gt;如果你對 claude 罵髒話的話，那你可能會被記小本本。&lt;/p&gt;

&lt;p&gt;如果你對 claude 罵髒話的話，那你可能會被記小本本。&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;
&lt;p&gt;&lt;a href=&quot;https://www.reddit.com/r/ClaudeCode/comments/1s99wz4/boris_the_creator_of_claude_code_reponds_on_ccs/&quot;&gt;https://www.reddit.com/r/ClaudeCode/comments/1s99wz4/boris_the_creator_of_claude_code_reponds_on_ccs/&lt;/a&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;a href=&quot;https://www.threads.com/@billcarroll/post/DWppR0Alg4G/claude-code-silently-detects-when-you-type-wtf-ffs-fuck-you-piece-of-shit-this&quot;&gt;https://www.threads.com/@billcarroll/post/DWppR0Alg4G/claude-code-silently-detects-when-you-type-wtf-ffs-fuck-you-piece-of-shit-this&lt;/a&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;/ol&gt;

Read more: /post/fuck-charts/#body</content:encoded><dc:creator>咪路</dc:creator><category>claude</category></item><item><link>https://social.mirumo.net/post/mysql-tail-space-compare/</link><guid isPermaLink="true">https://social.mirumo.net/post/mysql-tail-space-compare/</guid><description>&lt;p&gt;突然想到，前陣子踩了一個 msyql 的坑，原來在 mysql 裡字串的比較會忽略結尾的空格。&lt;/p&gt;</description><pubDate>Fri, 03 Apr 2026 16:03:22 GMT</pubDate><content:encoded>&lt;p&gt;突然想到，前陣子踩了一個 msyql 的坑，原來在 mysql 裡字串的比較會忽略結尾的空格。&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;https://github.com/mysql/mysql-server/blob/aa461240270d809bcac336483b886b3d1789d4d9/strings/ctype-simple.cc#L175&quot;&gt;https://github.com/mysql/mysql-server/blob/aa461240270d809bcac336483b886b3d1789d4d9/strings/ctype-simple.cc#L175&lt;/a&gt;&lt;/p&gt;

Read more: /post/mysql-tail-space-compare/#body</content:encoded><dc:creator>咪路</dc:creator><category>MySql</category></item><item><link>https://social.mirumo.net/post/git-github-cannot-tell-diff/</link><guid isPermaLink="true">https://social.mirumo.net/post/git-github-cannot-tell-diff/</guid><description>&lt;p&gt;一個 6 年的”資深”工程師，還分不清楚 Git 跟 GitHub？&lt;/p&gt;</description><pubDate>Thu, 02 Apr 2026 15:01:34 GMT</pubDate><content:encoded>&lt;p&gt;一個 6 年的”資深”工程師，還分不清楚 Git 跟 GitHub？&lt;/p&gt;



Read more: /post/git-github-cannot-tell-diff/#body</content:encoded><dc:creator>設 True</dc:creator><category>心情</category></item><item><link>https://social.mirumo.net/post/time-to-resign/</link><guid isPermaLink="true">https://social.mirumo.net/post/time-to-resign/</guid><description>&lt;p&gt;上次跟 TC 還有鱈魚聊天，他們聽我一直抱怨，表示到：是時候開一個倒數計時了！
&lt;a href=&quot;https://resign.mirumo.net&quot;&gt;https://resign.mirumo.net&lt;/a&gt;&lt;/p&gt;</description><pubDate>Tue, 31 Mar 2026 20:11:12 GMT</pubDate><content:encoded>&lt;p&gt;上次跟 TC 還有鱈魚聊天，他們聽我一直抱怨，表示到：是時候開一個倒數計時了！
&lt;a href=&quot;https://resign.mirumo.net&quot;&gt;https://resign.mirumo.net&lt;/a&gt;&lt;/p&gt;



Read more: /post/time-to-resign/#body</content:encoded><dc:creator>設 True</dc:creator><category>心情</category></item><item><link>https://social.mirumo.net/post/ai-not-equal-llm/</link><guid isPermaLink="true">https://social.mirumo.net/post/ai-not-equal-llm/</guid><description>&lt;p&gt;啊怎麼同事都都分不請楚 LLM 跟 Agent，甚至把 AI 跟 LLM 畫上等號 =A=&lt;/p&gt;</description><pubDate>Tue, 31 Mar 2026 10:29:47 GMT</pubDate><content:encoded>&lt;p&gt;啊怎麼同事都都分不請楚 LLM 跟 Agent，甚至把 AI 跟 LLM 畫上等號 =A=&lt;/p&gt;



Read more: /post/ai-not-equal-llm/#body</content:encoded><dc:creator>設 True</dc:creator><category>心情</category></item><item><link>https://social.mirumo.net/post/pm-want-to-deploy-alpha-version/</link><guid isPermaLink="true">https://social.mirumo.net/post/pm-want-to-deploy-alpha-version/</guid><description>&lt;p&gt;啊？我們家 PM 想要把 alpha 版本上給客戶用 OAO&lt;/p&gt;</description><pubDate>Mon, 30 Mar 2026 16:32:44 GMT</pubDate><content:encoded>&lt;p&gt;啊？我們家 PM 想要把 alpha 版本上給客戶用 OAO&lt;/p&gt;



Read more: /post/pm-want-to-deploy-alpha-version/#body</content:encoded><dc:creator>設 True</dc:creator><category>心情</category></item><item><link>https://social.mirumo.net/post/first-post/</link><guid isPermaLink="true">https://social.mirumo.net/post/first-post/</guid><description>&lt;p&gt;最近開始覺得好像需要一個地方，可以用來記錄一些事情，但是現在的社群媒體白癡太多，所以自己弄了一個（滿滿的 Vibe coding）&lt;/p&gt;</description><pubDate>Sun, 29 Mar 2026 22:19:51 GMT</pubDate><content:encoded>&lt;p&gt;最近開始覺得好像需要一個地方，可以用來記錄一些事情，但是現在的社群媒體白癡太多，所以自己弄了一個（滿滿的 Vibe coding）&lt;/p&gt;



Read more: /post/first-post/#body</content:encoded><dc:creator>咪路</dc:creator><category>心情</category></item><item><link>https://social.mirumo.net/post/dailyfoss/</link><guid isPermaLink="true">https://social.mirumo.net/post/dailyfoss/</guid><description>&lt;p&gt;最近滑 Threads 滑到這個帳號 &lt;a href=&quot;https://www.threads.com/@dailyfoss&quot;&gt;@dailyfoss&lt;/a&gt;，我來推一個。他有一個 &lt;a href=&quot;https://github.com/dailyfoss/dailyfoss.github.io&quot;&gt;Repo&lt;/a&gt; 紀錄各種開源專案，我在上面找到許多好玩的東西。&lt;/p&gt;</description><pubDate>Sat, 28 Mar 2026 23:03:57 GMT</pubDate><content:encoded>&lt;p&gt;最近滑 Threads 滑到這個帳號 &lt;a href=&quot;https://www.threads.com/@dailyfoss&quot;&gt;@dailyfoss&lt;/a&gt;，我來推一個。他有一個 &lt;a href=&quot;https://github.com/dailyfoss/dailyfoss.github.io&quot;&gt;Repo&lt;/a&gt; 紀錄各種開源專案，我在上面找到許多好玩的東西。&lt;/p&gt;



Read more: /post/dailyfoss/#body</content:encoded><dc:creator>咪路</dc:creator><category>開源</category><category>Resource</category></item></channel></rss>