摘要:
P3942 将军令 梦里,小 F 成了一个给将军送密信的信使。 现在,有两封关乎国家生死的密信需要送到前线大将军帐下,路途凶险,时间紧迫。小 F 不因为自己的祸福而避趋之,勇敢地承担了这个任务。 不过,小 F 实在是太粗心了,他一不小心把两封密信中的一封给弄掉了。 小 F 偷偷打开了剩下的那封密信。 阅读全文
摘要:
"这一题" 的环状板 Solution 暴力断环为链, 枚举起点跑 $n$ 遍 $DP$, 取最小值即可 Code cpp include include include include include include include define LL long long define REP(i 阅读全文
摘要:
P4644 [Usaco2005 Dec]Cleaning Shifts 清理牛棚 你有一段区间需要被覆盖(长度 include include include include include define LL long long define REP(i, x, y) for(int i = ( 阅读全文
摘要:
P2921 [USACO08DEC]在农场万圣节Trick or Treat on the Farm 题目描述 每年,在威斯康星州,奶牛们都会穿上衣服,收集农夫约翰在N(1 include include include include define LL long long define REP( 阅读全文
摘要:
T51071 Tony到死都想不出の数学题 "自己摘的题出了数据挂一下链接" $a, b$ 均为整数 设 $M(a)$ 为满足 $(a + b) | ab$ 的 $b$ 的个数, 求 $M(a)$ $a include include include include include include 阅读全文
摘要:
P3414 SAC 1 组合数 求 $$\sum_{i = 0,2 | i}^{n}C_{n}^{i}$$ 其中 n include include include include include define LL long long define REP(i, x, y) for(LL i = 阅读全文