HDU 1986 & ZOJ 2989 Encoding(模拟)...
分类:
其他好文 时间:
2015-01-28 21:28:52
阅读次数:
159
A Game Between Alice and BobTime Limit:5 Seconds Memory Limit:262144 KBAlice and Bob play the following game. A series of numbers is written on the bl...
分类:
其他好文 时间:
2015-01-28 21:06:02
阅读次数:
334
ZOJ 2987 Misspelling(模拟)...
分类:
其他好文 时间:
2015-01-28 19:49:26
阅读次数:
161
ZOJ 2988 Conversions(数学啊)...
分类:
其他好文 时间:
2015-01-28 19:49:26
阅读次数:
211
F -Count the ColorsTime Limit:2000MSMemory Limit:65536KB64bit IO Format:%lld & %lluSubmitStatusDescriptionPainting some colored segments on a line, so...
分类:
其他好文 时间:
2015-01-28 00:47:44
阅读次数:
206
解题思路:给定n个点,m条边,判断是否构成一个环注意到构成一个环,所有点的度数为2,即一个点只有两条边与之相连,再有就是判断合并之后这n个点是否在同一个连通块CircleTime Limit: 1 Second Memory Limit: 32768 KBYour task is so easy. ...
分类:
其他好文 时间:
2015-01-28 00:45:23
阅读次数:
365
链接:http://acm.zju.edu.cn/onlinejudge/showProblem.do?problemCode=1755
题意:Ms. Terry is a pre-school art teacher who likes to have her students work with clay. One of her assignments is to form a lump...
分类:
编程语言 时间:
2015-01-27 20:22:45
阅读次数:
310
链接:click here
题意:叫你求一个数是另一个数的二倍的这样的组合有多少个。
思路:纯模拟,一重循环:读入当前数据组a,并累积数据元素个数n,循环的结束标志是读入数据0,两重循环结构枚举组内所有数据对a[i] a[j] 判断是否成两倍关系
代码:
#include
#include
#include
#include
#include
using namespace ...
分类:
其他好文 时间:
2015-01-27 20:22:30
阅读次数:
165
http://acm.zju.edu.cn/onlinejudge/showProblem.do?problemCode=1586
简单题
Sunny Cup 2003 - Preliminary Round
April 20th, 12:00 - 17:00
Problem E: QS Network
In the planet w-503 of galaxy cgb, t...
分类:
Web程序 时间:
2015-01-27 16:32:02
阅读次数:
219
题意:给出n条y=ai*x+bi的直线。对于这些直线,如果存在x使得该直线y大于其他任意一直线,那么这条直线可以被看见,问有多少条直线可以被看见。
思路:首先去重,将那些a值相同的直线取其中b最大的那条保留下来,其他的全删掉。
其次将直线按照a值从小到大排序,因为斜率不同,所以任意两条直线都会相交。而这些直线是按照斜率从小到大进行排序,所以当x小于其交点x值时,...
分类:
其他好文 时间:
2015-01-27 16:22:26
阅读次数:
178