主题链接:http://acm.zju.edu.cn/onlinejudge/showProblem.do?problemId=4535How Many Sets ITime Limit:2 Seconds Memory Limit:65536 KBGive a set S, |S| =n, the...
分类:
其他好文 时间:
2015-06-10 22:24:50
阅读次数:
168
Escape Time IITime Limit: 20 SecMemory Limit: 256 MB题目连接http://acm.zju.edu.cn/onlinejudge/showProblem.do?problemCode=2966DescriptionIn last winter, th...
分类:
其他好文 时间:
2015-05-30 13:30:14
阅读次数:
164
题目链接:http://acm.zju.edu.cn/onlinejudge/showProblem.do?problemCode=3650
题意: 给你n个骨牌,每个骨牌有一个在x轴上的位置和高度,每个骨牌可以想左推也可以向右推,问最少多少步可以把骨牌全部推倒。
思路:
之前Goodbye 2014 上的E题就是一道多米诺骨牌的题目,虽然跟这道题目不太一样但是...
分类:
其他好文 时间:
2015-05-30 12:15:34
阅读次数:
140
Escape Time IITime Limit: 20 SecMemory Limit: 256 MB题目连接http://acm.zju.edu.cn/onlinejudge/showProblem.do?problemCode=3620DescriptionThere is a fire in...
分类:
其他好文 时间:
2015-05-30 12:03:43
阅读次数:
97
Factorial Problem in Base KTime Limit: 20 SecMemory Limit: 256 MB题目连接http://acm.zju.edu.cn/onlinejudge/showProblem.do?problemCode=3621DescriptionHow m...
分类:
其他好文 时间:
2015-05-30 11:53:05
阅读次数:
115
题目链接: http://acm.zju.edu.cn/onlinejudge/showProblem.do?problemCode=3646
题目抽象出来就是每一行有若干个数,问是否存在一个解法从每一行中选择一个数,使得1~n这n个数都被选到,队友说这就是一个裸的匹配啊,然后就过了。
code:
#include
#include
#include
#include...
分类:
编程语言 时间:
2015-05-30 10:46:45
阅读次数:
134
这道题目说起来真的是忧伤啊,比赛一开始的时候就开始做做了一场也没有做出来~。
题目链接: http://acm.zju.edu.cn/onlinejudge/showProblem.do?problemCode=3647
题意: 就是在格点网络上数三角形。
思路: 思路就是先做一个C(3, n*m) 然再把三点共线的情况全部减掉。
关键就是如果找三点共线的...
分类:
其他好文 时间:
2015-05-30 10:44:16
阅读次数:
103
哎~这一场就做了三个题目,全队倒数第一,简直是太弱了。
A Kitty's Game (ZOJ 3644)
题目链接: http://acm.zju.edu.cn/onlinejudge/showProblem.do?problemCode=3644
题意: 给出一个有向图,每个节点有一个权值pi, 有一个人从1节点出发(其权值为1节点的权值),前往n号节点,每经过一个节点,他的...
分类:
其他好文 时间:
2015-05-29 23:11:59
阅读次数:
115
题目相关: 3872相关链接: http://acm.zju.edu.cn/onlinejudge/showProblem.do?problemId=5520 Edward拥有一组数列. 其定义了Beauty数: 连续子串的和(重复的项只计算一次). 比如子串: 2, 3, 3...
分类:
其他好文 时间:
2015-05-29 17:32:49
阅读次数:
117
链接 :
??
http://acm.zju.edu.cn/onlinejudge/showProblem.do?problemCode=3420
普通的BFS 两个图的状态表示成一个状态。记录答案直接用string保存操作。
#include
#include
#include
#include
#include
#include
#include
#include...
分类:
其他好文 时间:
2015-05-27 22:54:16
阅读次数:
199