Problem L — limit 1 second Liars There are n people in a circle, numbered from 1 to n, each of who ...
A:Exam Solved. 温暖的签。 View Code B:Coprime Integers Solved. 枚举gcd反演 View Code C:Contest Setting Solved. 题意: 有n个题目,每个题目的难度值不同,要选出k个组成一套 Contest 要求每个题目难度不同,求方案数 思路: 把难度值相同的题目放在一起作为一种 dp i j 表示选到第i种题目,已经选了 ...
2018-12-08 08:26 0 615 推荐指数:
Problem L — limit 1 second Liars There are n people in a circle, numbered from 1 to n, each of who ...
A. Odd Palindrome 所有回文子串长度都是奇数等价于不存在长度为$2$的偶回文子串,即相邻两个字符都不同。 #include<cstdio> #include< ...
8题。B有傻逼做法但是没出来,不应该。反而最后搞出G出乎意料,lzhnb! A: solver:lzh View Code B: 有很好的单调栈sb做 ...
地址 Rank Solved A B C D E F G H I J K ...
ProblemA Circuits Solved. 题意: 有$n$个矩形,可以放两条平行与$x$轴的线,求怎么放置两条无线长的平行于$x$轴的线,使得他们与矩形相交个数最多 如果一个矩形同时 ...
https://codeforces.com/gym/101981 Problem A. Adrien and Austin 贪心,注意细节 f[x]=1:先手必赢。 f[x]: ...
传送门 A.Numbers B.Broken Watch 先考虑最简单的情况,就是a,b,c都相等的情况,这个时候答案显然只会跟n有关系,在n个线段 ...
A-Evolution Game 题目大意:有$n$个不同的野兽,定义第$i$ 个野兽有 $i$ 个眼睛和 $h[i]$ 个角,你可以任意从中选择一个野兽进行进化,每次进化角数量必须增加,而且进化后 ...