自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(26)
  • 收藏
  • 关注

原创 2016SDAU编程练习二1025

Sequence two Problem DescriptionSearch is important in the acm algorithm. When you want to solve a problem by using the search method, try to cut is very important.Now give you a number sequen

2016-04-23 15:19:46 219

原创 2016SDAU编程练习二1024

Sequence one Problem DescriptionSearch is important in the acm algorithm. When you want to solve a problem by using the search method, try to cut is very important.Now give you a number sequen

2016-04-23 15:15:58 208

原创 2016SDAU编程练习二1020

Prime Ring Problem Problem DescriptionA ring is compose of n circles as shown in diagram. Put natural number 1, 2, ..., n into each circle separately, and the sum of numbers in two adjacent ci

2016-04-23 15:11:46 202

原创 2016SDAU编程练习二1018

Tempter of the Bone Problem DescriptionThe doggie found a bone in an ancient maze, which fascinated him a lot. However, when he picked it up, the maze began to shake, and the doggie could

2016-04-23 15:09:28 342

原创 2016SDAU编程练习二1016

Red and Black Problem DescriptionThere is a rectangular room, covered with square tiles. Each tile is colored either red or black. A man is standing on a black tile. From a tile, he can move t

2016-04-23 15:05:58 305

原创 2016SDAU编程练习二1015

Knight Moves Problem DescriptionA friend of you is doing research on the Traveling Knight Problem (TKP) where you are to find the shortest closed tour of knight moves that visits each square o

2016-04-23 15:02:16 353

原创 2016SDAU编程练习二1012

Rescue Problem DescriptionAngel was caught by the MOLIGPY! He was put in prison by Moligpy. The prison is described as a N * M (N, M <= 200) matrix. There are WALLs, ROADs, and GUARDs in th

2016-04-23 14:57:10 353

原创 2016SDAU编程练习二1011

Oil Deposits Problem DescriptionThe GeoSurvComp geologic survey company is responsible for detecting underground oil deposits. GeoSurvComp works with one large rectangular region of land at a ti

2016-04-23 14:50:08 254

原创 2016SDAU编程练习二1010

Catch him Problem Description在美式足球中,四分卫负责指挥整只球队的进攻战术和跑位,以及给接球员传球的任务。四分卫是一只球队进攻组最重要的球员,而且一般身体都相对比较弱小,所以通常球队会安排5-7名大汉来保护他,其中站在四分卫前方、排成一线的5名球员称为进攻锋线,他们通常都是135公斤左右的壮汉。对防守方来说,攻击对手的四分卫当然是最直接的限制对手进攻的

2016-04-23 14:46:17 285

原创 2016SDAU编程练习二1019

N皇后问题 Problem Description在N*N的方格棋盘放置了N个皇后,使得它们不相互攻击(即任意2个皇后不允许处在同一排,同一列,也不允许处在与棋盘边框成45角的斜线上。你的任务是,对于给定的N,求出有多少种合法的放置方法。 Input共有若干行,每行一个正整数N≤10,表示棋盘和皇后的数量;如果N=0,表示结束。 Output共有

2016-04-16 14:23:20 154

原创 2016SDAU编程练习二1017

非常可乐 Problem Description大家一定觉的运动以后喝可乐是一件很惬意的事情,但是seeyou却不这么认为。因为每次当seeyou买了可乐以后,阿牛就要求和seeyou一起分享这一瓶可乐,而且一定要喝的和seeyou一样多。但seeyou的手中只有两个杯子,它们的容量分别是N 毫升和M 毫升 可乐的体积为S (S<101)毫升 (正好装满一瓶) ,它们三个之间

2016-04-16 14:21:47 254

原创 2016SDAU编程练习二1014

跟1013一样

2016-04-16 14:20:28 282

原创 2016SDAU编程练习二1013

A strange lift Problem DescriptionThere is a strange lift.The lift can stop can at every floor as you want, and there is a number Ki(0 <= Ki <= N) on every floor.The lift have just two b

2016-04-16 14:17:49 217

原创 2016SDAU编程练习二1009

连连看 Problem Description“连连看”相信很多人都玩过。没玩过也没关系,下面我给大家介绍一下游戏规则:在一个棋盘中,放了很多的棋子。如果某两个相同的棋子,可以通过一条线连起来(这条线不能经过其它棋子),而且线的转折次数不超过两次,那么这两个棋子就可以在棋盘上消去。不好意思,由于我以前没有玩过连连看,咨询了同学的意见,连线不能从外面绕过去的,但事实上这是错的。现在已

2016-04-16 14:15:59 190

原创 2016SDAU编程练习二1008

猜数字 A有1数m,B来猜.B每猜一次,A就说太大t太小或;对了问B猜n次可以猜到的最大数。 Input第1行是整数T,表示有T组数据,下面有T行 每行一个整数n (1 ≤ n ≤ 30)  Output猜n次可以猜到的最大数 Sample Input213 Sample Output17 Author

2016-04-16 14:14:01 234

原创 2016SDAU编程练习二1007

Cable master Problem DescriptionInhabitants of the Wonderland have decided to hold a regional programming contest. The Judging Committee has volunteered and has promised to organize the most hon

2016-04-16 14:07:03 233

原创 2016SDAU编程练习二1006

Line belt Problem DescriptionIn a two-dimensional plane there are two line belts, there are two segments AB and CD, lxhgww's speed on AB is P and on CD is Q, he can move with the speed R on ot

2016-04-16 14:02:37 187

原创 2016SDAU编程练习二1005

Turn the corner Problem DescriptionMr. West bought a new car! So he is travelling around the city.One day he comes to a vertical corner. The street he is currently in has a width x, the street

2016-04-16 13:50:31 352

原创 2016SDAU编程练习二1004

Toxophily Problem DescriptionThe recreation center of WHU ACM Team has indoor billiards, Ping Pang, chess and bridge, toxophily, deluxe ballrooms KTV rooms, fishing, climbing, and so on.We all

2016-04-16 13:46:30 333

原创 2016SDAU编程练习二1003

Pie Problem DescriptionMy birthday is coming up and traditionally I'm serving pie. Not just one pie, no, I have a number N of them, of various tastes and of various sizes. F of my friends are co

2016-04-16 13:41:24 228

原创 2016SDAU编程练习二1002

Strange fuction Problem DescriptionNow, here is a fuction:  F(x) = 6 * x^7+8*x^6+7*x^3+5*x^2-y*x (0 <= x <=100)Can you find the minimum value when x is between 0 and 100. 

2016-04-16 13:37:24 260

原创 2016SDAU编程练习二1001

Can you solve this equation? Problem DescriptionNow,given the equation 8*x^4 + 7*x^3 + 2*x^2 + 3*x + 6 == Y,can you find its solution between 0 and 100;Now please try your lucky. Input

2016-04-16 13:33:01 231

原创 贪心算法总结

做了一个专题,到最后都烦的不行,特别是那个霍夫曼树,拖到了最后看了别人的,而且可能是修行不够,有的题看不出来贪心,像一些卡边界问题完全就是活动安排问题,还有一些装载啊之类的问题,就是排列,只要看清问题的本质其实还是很好想的,可能是基础不扎实所以觉得编译比较难吧,一开始看得比较快,后来战线拉长,特别是那个霍夫曼,感觉复杂一点的是那个灰色问题,不太好理解,总结的话,还是万变不离其宗,具体问题具体分析,

2016-04-01 10:21:55 141

原创 2016SDAU编程练习一1009

Problem I Problem DescriptionAn entropy encoder is a data encoding method that achieves lossless data compression by encoding a message with "wasted" or "extra" information removed. In other words,

2016-04-01 10:15:21 219

原创 2016SDAU编程练习一1003

Problem C Problem DescriptionAn entropy encoder is a data encoding method that achieves lossless data compression by encoding a message with “wasted” or “extra” information removed. In other words,

2016-04-01 10:11:48 303

原创 2016SDAU编程练习一1011

Problem L Problem DescriptionAssume the coasting is an infinite straight line. Land is in one side of coasting, sea in the other. Each small island is a point locating in the sea side. And any radar

2016-04-01 10:08:59 213

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除