很好写(15 min 解决)但不好讲(跟别人讲了 20 min)的写法 QwQ……
-
题解: P1029 [NOIP2001 普及组] 最大公约数和最小公倍数问题
提供一种快速做法(31ms)~
-
题解:P8267 [USACO22OPEN] Counting Liars B & U208878 晴天
其实,这个题,只需要最简单的枚举,加上最简单的二分查找即可~
-
题解:CF1337A Ichihime and Triangle
看到大佬们基本都是直接输出
了事儿, 一身反骨有其它构造方法的我表示不服,遂作此篇。 -
题解:AT_abc352_c [ABC352C] Standing On The Shoulders
考场憋了很久,最后代码贼短……
-
P10111 [GESP202312 七级] 纸牌游戏 题解
看标签知道要用 DP。 -
AT_abc344_D-String Bags 题解
前情提要:小 L 在某谷上第一篇过审的 tj!
明显是 DP。
-
P10187 [USACO24FEB] Palindrome Game B 题解
挑战题解区最短代码 -
P10189 [USACO24FEB] Maximizing Productivity B 题解
先说说暴力做法:
每次遍历一遍,看看是否满足
,满足就计数,不满足就挂。单次时间复杂度显然为 ,总得时间复杂度约为 ,TLE 是肯定的~