M. Make Cents? time limit per test 6.0 s memory limit per test 256 MB input standard input output standard output Every year, an elephant qualifies to... ...
分类:
其他好文 时间:
2019-08-04 01:43:09
阅读次数:
124
I - O'My! Gym - 101350I Note: this is a harder version of Mirrored string I. The gorillas have recently discovered that the image on the surface of th ...
分类:
其他好文 时间:
2019-08-02 22:43:39
阅读次数:
117
D - AYAYAYA Gym - 101350D In a magical forest, there exists N bamboos that don't quite get cut down the way you would expect. Originally, the height o ...
分类:
其他好文 时间:
2019-08-02 20:44:55
阅读次数:
93
J - Sincerely Gym - 101350J Physics cat likes to draw shapes and figure out their area. He starts by drawing a circle. Then inside the circle, he draw ...
分类:
其他好文 时间:
2019-08-02 20:18:27
阅读次数:
114
题意:要完成一个由s个子项目组成的项目,给b(b>=s)个部门分配,从而把b个部门分成s个组。分组完成后,每一组的任 意两个点之间都要传递信息。假设在(i,j)两个点间传送信息,要先把信息加密,然后快递员从i出发到总部,再加 密,在到j点。出于安全原因,每次只能携带一条消息。现在给出了道路网络、各个 ...
分类:
其他好文 时间:
2019-07-31 18:11:00
阅读次数:
96
题意:给你两行数据,代表每个哑铃的重量,让你移动哑铃使相同重量的哑铃再一起,求移动的哑铃中最大的哑铃重量。 思路:二分答案,check函数如果返回1,说明可能存在更小的重量,如果返回是0,说明比真实值大。 check函数里,遍历一遍数组,如果小于的等于mid的数,continual就行。如果第一次发 ...
分类:
其他好文 时间:
2019-07-31 18:09:24
阅读次数:
90
http://codeforces.com/gym/101755/problem/K The studio «Lodka Gaming» is engaged in advertising of their new game «.C.O.N.T.E.S.T: Unexpected Behaviour ...
分类:
其他好文 时间:
2019-07-30 22:00:33
阅读次数:
165
题目传送门:[https://codeforces.com/gym/102059/problem/J](https://codeforces.com/gym/102059/problem/J) 题意: 给定一个直方图,一个长度为n的序列表示每个柱子的高度,有一个数组A记录着直方图中每个不同子矩形的面 ...
分类:
其他好文 时间:
2019-07-30 00:17:43
阅读次数:
125
Gym 101350I - Mirrored String II ( Manacher马拉车算法 -- 最长回文子串 ) 题意 给一个字符串, 求最长回文镜像子串长度 思路 Manacher + 镜像判断 算法实现 : Manacher算法总结 AC代码 ( kuangbin板子 ) #includ ...
分类:
其他好文 时间:
2019-07-26 19:13:04
阅读次数:
139
链接:https://codeforc.es/gym/102267 A. Picky Eater 直接比较 int main(){ int x ,y; scanf("%d %d" ,&x ,&y); if(x>=y){ return printf("1"),0; } else return prin ...
分类:
其他好文 时间:
2019-07-23 21:20:10
阅读次数:
135