http://acm.zju.edu.cn/onlinejudge/showProblem.do?problemCode=3471
Recently, researchers on Mars have discovered N powerful atoms. All of them are different. These atoms have some properties. When t...
分类:
其他好文 时间:
2015-04-10 22:29:11
阅读次数:
149
题目链接:http://acm.zju.edu.cn/onlinejudge/showProblem.do?problemCode=3706
题意:
给你两个标准重量的物体(质量为整数),你可以选择将其中一个分成两块(整数),求用这三个物体最多可以称出多少种重量。
其实一共就13种情况,数据量又比较小,用set排除一下重复的,注意下0就好。
代码:
#include ...
分类:
其他好文 时间:
2015-04-07 09:59:26
阅读次数:
156
题目链接:http://acm.zju.edu.cn/onlinejudge/showProblem.do?problemCode=3712
题意:
一款游戏,高手玩家不会miss,得分至少为50。记分公式为P = Point * (Combo * 2 + 1),求最多得多少分,最低得多少分。
简单的贪心,贪心策略:最高分先50,再100,最后300。最低分反之即可。
...
分类:
其他好文 时间:
2015-04-07 09:58:05
阅读次数:
143
题目链接:http://acm.zju.edu.cn/onlinejudge/showProblem.do?problemCode=3708
题意:
题意挺简单的,就是数一下有多少种线路,并处以公交车的数量。题目的图很吓人,如果被这唬了的话就惨了,省赛的时候每道题都应该仔细看过,以免造成不必要的损失。
解法一:
队友用的方法是用一张二维图来表示,如果对应位置已经被标记过了...
分类:
Web程序 时间:
2015-04-07 09:58:05
阅读次数:
157
这次的作业完全是依葫芦画瓢,参照云课堂《数据结构》(http://mooc.study.163.com/learn/ZJU-1000033001#/learn/content)中何钦铭老师课件中有关建堆及插入的内容,再加上自己写的一个矬函数(竟然传了4个参数),OK了!题设要求及代码实现如下 1 ....
分类:
其他好文 时间:
2015-04-05 21:48:49
阅读次数:
123
题目链接:http://acm.zju.edu.cn/onlinejudge/showProblem.do?problemCode=3782
题意:
求给定的算式的结果。
法一:
因为固定三个数字,两个运算符,直接if else就行。
代码:
#include
using namespace std;
int main()
{
int t;
char x,...
分类:
其他好文 时间:
2015-04-04 12:21:23
阅读次数:
227
题目链接:http://acm.zju.edu.cn/onlinejudge/showProblem.do?problemId=450You are to write a program to find a circle which covers a set of points and has th...
分类:
其他好文 时间:
2015-03-28 13:00:08
阅读次数:
202
点击打开链接
Grouping
Time Limit: 2 Seconds Memory Limit: 65536 KB
Suppose there are N people in ZJU, whose ages are unknown. We have some messages about them. The i-th message shows that th...
分类:
其他好文 时间:
2015-03-21 18:41:36
阅读次数:
154
http://acm.zju.edu.cn/onlinejudge/showProblem.do?problemId=649RescueTime Limit:2 Seconds Memory Limit:65536 KBAngel was caught by the MOLIGPY! He was ...
分类:
其他好文 时间:
2015-03-20 23:42:09
阅读次数:
167
http://acm.zju.edu.cn/onlinejudge/showProblem.do?problemId=654题目描述:
Robert 是一个著名的工程师。一天,他的老板给他分配了一个任务。任务的背景是:给定一
个m×n 大小的地图,地图由方格组成,在地图中有3 种方格-墙、草地和空地,他的老板希望
能在地图中放置尽可能多的机器人。每个机器人都配备了激光枪,可以同时向四个方向(上...
分类:
编程语言 时间:
2015-03-18 14:02:41
阅读次数:
162