http://acm.zju.edu.cn/onlinejudge/showProblem.do?problemId=4808题意:一个吸血鬼初始攻击力为f。n条路,他每次等概率选择一条路。如果攻击力大于这条路的c[i],则花费t[i]天逃出($t[i]=\frac{1+\sqrt{5}}{2} \...
分类:
其他好文 时间:
2015-02-23 13:06:42
阅读次数:
111
http://acm.zju.edu.cn/onlinejudge/showProblem.do?problemCode=3521ATTENTION:如果用long long 减小误差,这道题只能用%lld读入首先需要判断哪些点是相互挨着的,这样比直接维护哪些集合是冰冻住的简单按照x为主,y为辅排序...
分类:
编程语言 时间:
2015-02-21 13:10:56
阅读次数:
192
类别 数据结构
1、主题
2、学习视频和资料
视频及课件 http://www.icourse163.org/learn/zju-93001?tid=120001#/learn/content?type=detail&id=398005
3、队列的基本操作
定义队列元素
建立队列信息(队首和队尾标记,总长度)
初始化队列
销毁队列
插入(只能在尾部...
分类:
其他好文 时间:
2015-02-18 14:07:38
阅读次数:
183
http://acm.zju.edu.cn/onlinejudge/showProblem.do?problemId=1859Matrix SearchingTime Limit:10 Seconds Memory Limit:32768 KBGiven an n*n matrix A, whose...
分类:
其他好文 时间:
2015-02-18 09:28:11
阅读次数:
129
http://acm.zju.edu.cn/onlinejudge/showProblem.do?problemCode=1015题意:给出一个n个点的无向图,询问是否为弦图,弦图定义为对于图中任意长度>3的环一定存在环上不相邻的点有边相连(nusing namespace std;const in...
分类:
Web程序 时间:
2015-02-16 11:38:21
阅读次数:
117
题目链接:HDU:http://acm.hdu.edu.cn/showproblem.php?pid=4791ZJU:http://acm.zju.edu.cn/onlinejudge/showProblem.do?problemId=5072Problem DescriptionAlice is ...
分类:
其他好文 时间:
2015-02-15 10:40:22
阅读次数:
172
http://acm.zju.edu.cn/onlinejudge/showProblem.do?problemId=4808
Background
If thou doest well, shalt thou not be accepted? and if thou doest not well, sin lieth at the door. And unto thee shall...
分类:
其他好文 时间:
2015-02-04 18:37:27
阅读次数:
154
题目连接:http://acm.zju.edu.cn/onlinejudge/showProblem.do?problemId=4257题意:不超过10种气体,两两之间相互碰撞可以产生一定的能量,如a碰b,那么b气体就消失,自身不能碰自身,问最后所能得到的最大能量。分析:用10位二进制表示气体是否存...
分类:
其他好文 时间:
2015-02-04 00:15:48
阅读次数:
244
题目链接:http://acm.zju.edu.cn/onlinejudge/showProblem.do?problemId=1314The terrorist group leaded by a well known international terrorist Ben Bladen is b...
分类:
其他好文 时间:
2015-02-02 17:19:35
阅读次数:
161
http://acm.zju.edu.cn/onlinejudge/showProblem.do?problemCode=3261题意:一. 给定N个星球(0,...,N-1)及其对应的power(p0,...pn-1)二. 给定M条星球a与b间(a!=b)的通路三. 给出Q个指令,"destroy...
分类:
其他好文 时间:
2015-02-01 20:23:46
阅读次数:
203