思维
文章平均质量分 53
Cworld2017
这个作者很懒,什么都没留下…
展开
-
csu 1554: SG Value
The SG value of a set (multiset) is the minimum positive integer that could not be constituted of the number in this set.You will be start with an empty set, now there are two opertions:1. insert a ...原创 2018-08-18 19:14:08 · 225 阅读 · 0 评论 -
String of CCPC 思维,字符串,细节
BaoBao has just found a string of length consisting of 'C' and 'P' in his pocket. As a big fan of the China Collegiate Programming Contest, BaoBao thinks a substring of is "good", if and only if ...原创 2018-08-22 10:31:46 · 682 阅读 · 0 评论 -
Palindromes
A regular palindrome is a string of numbers or letters that is the same forward as backward. For example, the string "ABCDEDCBA" is a palindrome because it is the same when the string is read from lef...原创 2018-08-19 12:17:01 · 933 阅读 · 0 评论 -
ZOJ-3993 Safest Buildings
题意:在一个半径为R的大圈里会随机的刷出半径为r的安全区,这个小圆(半径r)一定在大圆内(半径R),给n个建筑物,要求输出安全率最高的建筑的数目和编号思路: 第一点:以每一个建筑为圆心,以r为半径作一个圆O1,这个圆O1内或者圆上的点都可以它本身为圆心,以r为半径作一个圆O2使这个建筑在这个圆O2内(安全区内),所以题目可以转化为 看哪个建筑的圆O1的面积大。如图A,B两个建筑物,明显A的圆...转载 2018-08-22 07:01:56 · 253 阅读 · 0 评论 -
Simple String
Welcome,this is the 2015 3th Multiple Universities Programming Contest ,Changsha ,Hunan Province. In order to let you feel fun, ACgege will give you a simple problem. But is that true? OK, let’s enjoy...原创 2018-08-18 13:12:21 · 287 阅读 · 0 评论 -
D - 鬼谷子的钱袋 HYSBZ - 1192
谷子非常聪明,正因为这样,他非常繁忙,经常有各诸侯车的特派员前来向他咨询时政。有一天,他在咸阳游历的时候,朋友告诉他在咸阳最大的拍卖行(聚宝商行)将要举行一场拍卖会,其中有一件宝物引起了他极大的兴趣,那就是无字天书。但是,他的行程安排得很满,他他已经买好了去邯郸的长途马车标,不巧的是出发时间是在拍卖会快要结束的时候。于是,他决定事先做好准备,将自己的金币数好并用一个个的小钱袋装好,以便在他现有金币...原创 2018-03-18 09:47:39 · 259 阅读 · 0 评论 -
B - THE DRUNK JAILER POJ - 1218
A certain prison contains a long hall of n cells, each right next to each other. Each cell has a prisoner in it, and each cell is locked. One night, the jailer gets bored and decides to play a game. ...原创 2018-03-11 16:42:05 · 248 阅读 · 0 评论 -
To Add Which?
There is an integer sequence with N integers. You can use 1 unit of cost to increase any integer in the sequence by 1. Could you tell us the least units of cost to achieve that, the absolute v...转载 2018-08-16 17:14:54 · 214 阅读 · 0 评论 -
Number Sequence
A number sequence is defined as follows:f(1) = 1, f(2) = 1, f(n) = (A * f(n - 1) + B * f(n - 2)) mod 7.Given A, B, and n, you are to calculate the value of f(n). InputThe input consists of mu...原创 2018-08-15 12:33:05 · 295 阅读 · 0 评论 -
Team Formation
For an upcoming programming contest, Edward, the headmaster of Marjar University, is forming a two-man team from N students of his university.Edward knows the skill level of each student. He has fou...转载 2018-08-22 23:22:34 · 270 阅读 · 0 评论