摘要:
1.链接地址:http://bailian.openjudge.cn/practice/2979http://poj.org/problem?id=10152.题目:总Time Limit:1000msMemory Limit:65536kBDescription在遥远的国家佛罗布尼亚,嫌犯是否有罪,须由陪审团决定。陪审团是由法官从公众中挑选的。先随机挑选n个人作为陪审团的候选人,然后再从这n个人中选m人组成陪审团。选m人的办法是:控方和辩方会根据对候选人的喜欢程度,给所有候选人打分,分值从0到20。为了公平起见,法官选出陪审团的原则是:选出的m个人,必须满足辩方总分和控方总分的差的绝对值最小
阅读全文
posted @ 2014-03-02 20:48
mobileliker
阅读(459)
推荐(0)
摘要:
1.链接地址:http://poj.org/problem?id=1936http://bailian.openjudge.cn/practice/19362.题目:All in AllTime Limit: 1000MSMemory Limit: 30000KTotal Submissions: 26651Accepted: 10862DescriptionYou have devised a new encryption technique which encodes a message by inserting between its characters randomly genera
阅读全文
posted @ 2014-03-02 14:37
mobileliker
阅读(297)
推荐(0)
摘要:
1 C++的话,用编译器定义的,基本类型都有; 2 #include 3 #include 4 5 using namespace std; 6 7 int main() 8 { 9 int intMax = numeric_limits::max();10 int intMin = numeric_limits::min();11 12 float floatMax = numeric_limits::max();13 float floatMin = numeric_limits::min();14 15 cout << intMax << " "
阅读全文
posted @ 2014-03-02 14:27
mobileliker
阅读(258)
推荐(0)
摘要:
1.链接地址:bailian.openjudge.cn/practice/1661http://poj.org/problem?id=16612.题目:总Time Limit:1000msMemory Limit:65536kBDescription "Help Jimmy" 是在下图所示的场景上完成的游戏。场景中包括多个长度和高度各不相同的平台。地面是最低的平台,高度为零,长度无限。Jimmy老鼠在时刻0从高于所有平台的某处开始下落,它的下落速度始终为1米/秒。当Jimmy落到某个平台上时,游戏者选择让它向左还是向右跑,它跑动的速度也是1米/秒。当Jimmy跑到平台的边缘
阅读全文
posted @ 2014-03-02 14:25
mobileliker
阅读(469)
推荐(0)
摘要:
1.链接地址:http://bailian.openjudge.cn/practice/1915http://poj.org/problem?id=19152.题目:总Time Limit:1000msMemory Limit:65536kBDescriptionBackgroundMr Somurolov, fabulous chess-gamer indeed, asserts that no one else but him can move knights from one position to another so fast. Can you beat him?The Proble
阅读全文
posted @ 2014-02-28 21:00
mobileliker
阅读(297)
推荐(0)
摘要:
1.链接地址:http://poj.org/problem?id=2533http://bailian.openjudge.cn/practice/27572.题目:总Time Limit:2000msMemory Limit:65536kBDescription一个数的序列bi,当b1 2 #include 3 4 using namespace std; 5 6 int main() 7 { 8 //freopen("C://input.txt","r",stdin); 9 10 int n;//1 > n;12 13 int i,j;14 1
阅读全文
posted @ 2014-02-28 20:52
mobileliker
阅读(397)
推荐(0)
摘要:
1.链接地址:http://bailian.openjudge.cn/practice/1163http://poj.org/problem?id=11632.题目:总时间限制:1000ms内存限制:65536kB描述73 88 1 02 7 4 44 5 2 6 5(Figure 1)Figure 1 shows a number triangle. Write a program that calculates the highest sum of numbers passed on a route that starts at the top an...
阅读全文
posted @ 2014-02-27 21:39
mobileliker
阅读(229)
推荐(0)
摘要:
1.链接地址:http://bailian.openjudge.cn/practice/1844http://poj.org/problem?id=18442.题目:SumTime Limit: 1000MSMemory Limit: 30000KTotal Submissions: 10031Accepted: 6564DescriptionConsider the natural numbers from 1 to N. By associating to each number a sign (+ or -) and calculating the value of this expre
阅读全文
posted @ 2014-02-27 21:30
mobileliker
阅读(197)
推荐(0)
摘要:
1.链接地址:http://bailian.openjudge.cn/practice/1321http://poj.org/problem?id=13212.题目:棋盘问题Time Limit: 1000MSMemory Limit: 10000KTotal Submissions: 20403Accepted: 10138Description在一个给定形状的棋盘(形状可能是不规则的)上面摆放棋子,棋子没有区别。要求摆放时任意的两个棋子不能放在棋盘中的同一行或者同一列,请编程求解对于给定形状和大小的棋盘,摆放k个棋子的所有可行的摆放方案C。Input输入含有多组测试数据。 每组数据的第一行
阅读全文
posted @ 2014-02-27 21:23
mobileliker
阅读(385)
推荐(0)
摘要:
1.链接地址:http://bailian.openjudge.cn/practice/1753/http://poj.org/problem?id=17532.题目:总时间限制:1000ms内存限制:65536kB描述Flip game is played on a rectangular 4x4 field with two-sided pieces placed on each of its 16 squares. One side of each piece is white and the other one is black and each piece is lying eith
阅读全文
posted @ 2014-02-27 03:14
mobileliker
阅读(452)
推荐(0)