上一页 1 2 3 4 5 6 ··· 8 下一页
摘要: Description The objective of the program you are going to produce is to evaluate boolean expressions as the one shown next: Expression: ( V | V ) & F 阅读全文
posted @ 2017-08-08 13:58 whileskies 阅读(390) 评论(0) 推荐(0) 编辑
摘要: Description 司令部的将军们打算在N*M的网格地图上部署他们的炮兵部队。一个N*M的地图由N行M列组成,地图的每一格可能是山地(用"H" 表示),也可能是平原(用"P"表示),如下图。在每一格平原地形上最多可以布置一支炮兵部队 (山地上不能够部署炮兵部队);一支炮兵部队在地图上的攻击范围如 阅读全文
posted @ 2017-08-08 09:13 whileskies 阅读(239) 评论(0) 推荐(0) 编辑
摘要: 1.表达式计算 输入为四则运算表达式,仅由整数、+、-、* 、/ 、(、) 组成,没有空格,要求求其值。假设运算符结果都是整数 。"/"结果也是整数 表达式也是递归的定义: 表达式由项的+ -组成 ,项由因子的* / 组成, 因子可以是整数,也可以由带括号的表达式组成 判断是否还有表达式,项和因子, 阅读全文
posted @ 2017-08-07 21:48 whileskies 阅读(161) 评论(0) 推荐(0) 编辑
摘要: Description Farmer John has purchased a lush new rectangular pasture composed of M by N (1 ≤ M ≤ 12; 1 ≤ N ≤ 12) square parcels. He wants to grow some 阅读全文
posted @ 2017-08-07 15:43 whileskies 阅读(123) 评论(0) 推荐(0) 编辑
摘要: Problem Description Ignatius has just come back school from the 30th ACM/ICPC. Now he has a lot of homework to do. Every teacher gives him a deadline 阅读全文
posted @ 2017-08-07 11:05 whileskies 阅读(156) 评论(0) 推荐(0) 编辑
摘要: 2007年到来了。经过2006年一年的修炼,数学神童zouyu终于把0到100000000的Fibonacci数列(f[0]=0,f[1]=1;f[i] = f[i-1]+f[i-2](i>=2))的值全部给背了下来。接下来,CodeStar决定要考考他,于是每问他一个数字,他就要把答案说出来,不过 阅读全文
posted @ 2017-08-05 14:34 whileskies 阅读(239) 评论(0) 推荐(0) 编辑
摘要: 题目描述 正在入侵艾泽拉斯的古尔丹偶然间得到了一颗邪能炸弹,经过研究,他发现这是一颗威力极其巨大且难以控制的炸弹。但是精通邪能的古尔丹突然有了一个大胆的想法,他对炸弹进行了一些小小的改造。这使得炸弹需要n天的充能才能爆炸,在这n天中,每天炸弹的邪能值都会产生波动,波动值为xi,古尔丹唯一能控制的是使 阅读全文
posted @ 2017-08-04 22:23 whileskies 阅读(183) 评论(0) 推荐(0) 编辑
摘要: Problem Description Queues and Priority Queues are data structures which are known to most computer scientists. The Queue occurs often in our daily li 阅读全文
posted @ 2017-08-04 11:37 whileskies 阅读(165) 评论(0) 推荐(0) 编辑
摘要: Problem Description 当太阳的光辉逐渐被月亮遮蔽,世界失去了光明,大地迎来最黑暗的时刻。。。。在这样的时刻,人们却异常兴奋——我们能在有生之年看到500年一遇的世界奇观,那是多么幸福的事儿啊~~但网路上总有那么些网站,开始借着民众的好奇心,打着介绍日食的旗号,大肆传播病毒。小t不幸 阅读全文
posted @ 2017-08-03 12:04 whileskies 阅读(153) 评论(0) 推荐(0) 编辑
摘要: #include <iostream> #include <stdio.h> #include <cstring> #include <algorithm> #include <vector> using namespace std; #define Max 26 typedef struct Tr 阅读全文
posted @ 2017-08-02 13:55 whileskies 阅读(250) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 ··· 8 下一页