In mathematics you don't understand things, you just get used to them.

标签 greedy 下的文章

Link.A. 赢钱 (money)人类智慧题, 好像是写成二进制小数, 每次用 Least Significant Bit 去赌? 不是很能理解...B. 排列 (per)贡献可以分成五类: ...

link。首先二分答案固定每个 bot 的步长,然后就基本上弱于 codeforces - 1476F 了,但是还是有些不一样的地方。假如我们是在一个序列上做 dp,不妨把原环按 $n$-$1$...

「codeforces - 1592F2」Alice and Recoloring 2:妙妙题,显然只会操作 $(1, 1)$ 和 $(n, m)$,分别记作操作 1 和操作 2。我们希望单点操...