题目链接:http://acm.zju.edu.cn/onlinejudge/showProblem.do?problemId=5477主要思路:1.从一个点(cur)到它相邻的点(next),所需要的时间数(t)其实是固定的,而且这个移动过程后,到达next时,相应的方向也是固定的,找到求t的办法...
分类:
其他好文 时间:
2015-04-15 21:23:54
阅读次数:
134
http://acm.zju.edu.cn/onlinejudge/showProblem.do?problemCode=3861这道题当时没做出来,后来经过队友提醒才做出来。3*3的九宫格,给你其中n个点按下面要求连起来:1. 给你的n个点都要激活(至少经过一次)2. 如果点A,B相连后要经过另一...
分类:
其他好文 时间:
2015-04-15 21:06:57
阅读次数:
113
题目链接:http://acm.zju.edu.cn/onlinejudge/showProblem.do?problemCode=3860水题,问给出的数组中唯一不一样的那个是多少。 1 #include 2 #include 3 #include 4 #include 5 #includ...
分类:
其他好文 时间:
2015-04-13 20:48:13
阅读次数:
130
题目链接:http://acm.zju.edu.cn/onlinejudge/showProblem.do?problemCode=3861题意:给出一组数,要求这组数在解锁的界面可能的滑动序列。思路:按照是否能够直接到达建图,如1可以直接到2,但是1不能直接到3,因为中间必须经过一个2。要注意的假...
分类:
其他好文 时间:
2015-04-13 20:45:24
阅读次数:
126
题目链接:http://acm.zju.edu.cn/onlinejudge/showProblem.do?problemCode=3867题意:跟炉石游戏里的规则也差不多。给你两个小兵 有生命和攻击,问你第一个去攻击第二个的结果。 1 #include 2 #include 3 #includ.....
分类:
其他好文 时间:
2015-04-13 20:29:35
阅读次数:
133
题目链接:http://acm.zju.edu.cn/onlinejudge/showProblem.do?problemId=5478
题面:
Cylinder Candy
Time Limit: 2 Seconds Memory Limit: 65536 KB Special Judge
Edward the confectioner is ...
分类:
其他好文 时间:
2015-04-13 09:36:42
阅读次数:
150
http://acm.zju.edu.cn/onlinejudge/showProblem.do?problemId=5336比较简单的模拟题,题意也很好理解。 1 #include 2 #include 3 #include 4 #include 5 #include 6 #...
分类:
其他好文 时间:
2015-04-12 09:06:41
阅读次数:
113
题目链接:http://acm.zju.edu.cn/onlinejudge/showProblem.do?problemId=5263
题意:
比较Calem和Serena手上牌的总和的大小,谁大就输出谁的名字,相同输出Draw。
代码:
#include
using namespace std;
int main()
{
int t,n,m,sum1,sum2,tmp;
c...
分类:
其他好文 时间:
2015-04-11 09:03:39
阅读次数:
106
题目链接:http://acm.zju.edu.cn/onlinejudge/showProblem.do?problemId=5230
题面:
Elevator
Time Limit: 2 Seconds Memory Limit: 65536 KB
How time flies! The graduation of this year is aroun...
分类:
其他好文 时间:
2015-04-11 09:03:02
阅读次数:
117
题目链接:http://acm.zju.edu.cn/onlinejudge/showProblem.do?problemId=5274
题面:
Access System
Time Limit: 2 Seconds Memory Limit: 65536 KB
For security issues, Marjar University has an a...
分类:
数据库 时间:
2015-04-11 09:02:14
阅读次数:
240