自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

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

原创 商人的诀窍

商人的诀窍 Time Limit: 1000 ms Memory Limit: 65536 KiB Submit Statistic Discuss Problem Description E_star和von是中国赫赫有名的两位商人,俗话说的好无商不奸,最近E_star需要进一批苹果。可是他需要的苹果只有von才有,von的苹果都存在他的传说中很牛叉的仓库里,每个仓库都存了不同种类的苹果...

2018-06-30 09:25:49 202

原创 1096: 字符逆序

1096: 字符逆序 Time Limit: 1 Sec  Memory Limit: 64 MB Submit: 2017  Solved: 1059 [Submit][Status][Web Board] Description 将一个字符串str的内容颠倒过来,并输出。str的长度不超过100个字符。 Input 输入包括一行。 第一行输入的字符串。 Output 输出转换好的...

2018-06-27 14:48:41 162

原创 Aggressive cows【二分】

G - Aggressive cows  POJ - 2456  Farmer John has built a new long barn, with N (2 <= N <= 100,000) stalls. The stalls are located along a straight line at positions x1,...,xN (0 <= xi <=...

2018-06-25 21:41:09 189

原创 Cable master【二分】

F - Cable master  POJ - 1064  Inhabitants of the Wonderland have decided to hold a regional programming contest. The Judging Committee has volunteered and has promised to organize the most honest co...

2018-06-25 21:40:08 390

原创 Monthly Expense【二分】

B - Monthly Expense  POJ - 3273  Farmer John is an astounding accounting wizard and has realized he might run out of money to run the farm. He has already calculated and recorded the exact amount of...

2018-06-25 21:39:06 424

原创 River Hopscotch【二分】

A - River Hopscotch  POJ - 3258  Every year the cows hold an event featuring a peculiar version of hopscotch that involves carefully jumping from rock to rock in a river. The excitement takes place ...

2018-06-25 21:37:57 231

原创 Red and Black【深搜】

A - Red and Black  POJ - 1979  There 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 to one of...

2018-06-25 21:36:13 236

原创 Largest prime factor

  Largest prime factor  HDU - 2136  Everybody knows any number can be combined by the prime number.  Now, your task is telling me what position of the largest prime factor.  The position of prime 2...

2018-06-25 21:33:46 192

原创 Rightmost Digit【快速幂】

  Rightmost Digit  HDU - 1061  Given a positive integer N, you should output the most right digit of N^N.  Input The input contains several test cases. The first line of the input is a single int...

2018-06-25 21:31:54 327

原创 Can you find it?

  Can you find it?  HDU - 2141  Give you three sequences of numbers A, B, C, then we give you a number X. Now you need to calculate if you can find the three numbers Ai, Bj, Ck, which satisfy the f...

2018-06-25 21:30:22 377 1

原创 Speed Limit

J - Speed Limit  POJ - 2017  Bill and Ted are taking a road trip. But the odometer in their car is broken, so they don't know how many miles they have driven. Fortunately, Bill has a working stopwat...

2018-06-25 21:28:13 830

原创 们--加强斐波那契【递推】

们--加强斐波那契 Time Limit: 1000 ms Memory Limit: 65536 KiB Submit Statistic Discuss Problem Description 对于斐波那契数列想必各位已经见过了。这里给出一个加强版。 F[i] = i (i <= 3); F[i] = F[i-1] + F[i-2] + F[i-3](i >= 4); ...

2018-06-22 20:44:27 224

原创 三国佚事——巴蜀之危【递推】

三国佚事——巴蜀之危 Time Limit: 1000 ms Memory Limit: 65536 KiB Submit Statistic Discuss Problem Description 话说天下大势,分久必合,合久必分。。。却道那魏蜀吴三国鼎力之时,多少英雄豪杰以热血谱写那千古之绝唱。古人诚不我欺,确是应了那句“一将功成万骨枯”。  是夜,明月高悬。诸葛丞相轻摇羽扇,一脸愁苦...

2018-06-22 20:40:59 232

原创 Fighting_小银考呀考不过四级【递推】

Fighting_小银考呀考不过四级 Time Limit: 1000 ms Memory Limit: 65536 KiB Submit Statistic Discuss Problem Description   四级考试已经过去好几个星期了,但是小银还是对自己的英语水平担心不已。 小银打算好好学习英语,争取下次四级考试和小学弟小学妹一起拿下它! 四级考试的时候,监考老师会按考号分...

2018-06-22 20:28:25 178

原创 又见回文

又见回文 Time Limit: 1000 ms Memory Limit: 65536 KiB Submit Statistic Discuss Problem Description     “回文串”是一个正读和反读都一样的字符串,比如“level”或者“noon”等等就是回文串。现在呢,就是让你判断输入的字符串是否是回文串。 Input     有多组输入,每行输入一串字符,保...

2018-06-22 18:50:36 335

原创 最终排名

最终排名 Time Limit: 1000 ms Memory Limit: 65536 KiB Submit Statistic Discuss Problem Description 第四届山东理工大学ACM网络编程擂台赛比赛完后需要产生一个最终排名,排名按照题数多少来决定。但是有太多的队伍参与,手动计算排名已经不能满足比赛的需求。现在有一份名单记录各个队伍的ID和做出的题目数,需要你...

2018-06-22 18:40:13 439

原创 来淄博旅游

来淄博旅游 Time Limit: 1000 ms Memory Limit: 65536 KiB Submit Statistic Discuss Problem Description 淄博某旅行社每天都要接待来自全国各地的游客,他们从各个城市来到张店区,游玩后又去淄博的其他旅游景点。从各个城市来张店的游客只是在网上报名,然后旅行社根据统计的人数,用大巴把他们从不同城市拉到张店。在张店...

2018-06-22 18:38:55 551

原创 英文金曲大赛

英文金曲大赛 Time Limit: 1000 ms Memory Limit: 65536 KiB Submit Statistic Discuss Problem Description 我们在“渊子数”的题目中已经了解了渊子是个什么样的人了,他在大一的时候参加过工商学院的“英语聚乐部”。告诉你个秘密,这个俱乐部是个好地方,不但活动精彩而且有MM。 这不,英语俱乐部举办了一个叫做“英文...

2018-06-22 18:37:53 307

原创 选夫婿1

选夫婿1 Time Limit: 1000 ms Memory Limit: 32768 KiB Submit Statistic Discuss Problem Description     倾国倾城的大家闺秀潘小姐要选夫婿啦!武林中各门各派,武林外各大户人家,闻讯纷纷前来,强势围观。前来参与竞选的男生藏龙卧虎,高手云集,才子遍布,帅哥纷纭,更不乏富二代,官二代,可谓声势空前。 ...

2018-06-22 18:36:36 395

原创 选票统计

选票统计 Time Limit: 1000 ms Memory Limit: 65536 KiB Submit Statistic Discuss Problem Description 某校学生会主席由全校学生投票选举产生,共有m名候选人报名参选,编号为1到m(0<m<1000),全校有n名学生(0<n<30000),每人都可以投票。但每人只能投一票,每票只能选1名候选人。请你设计一个程...

2018-06-22 18:29:02 1085

原创 1042: 筛法求素数

1042: 筛法求素数 Time Limit: 1 Sec  Memory Limit: 128 MB Submit: 1387  Solved: 918 [Submit][Status][Web Board] Description 用筛法求之N内的素数。 Input N Output 0~N的素数 Sample Input 100 Sample Output 2 3 ...

2018-06-21 21:40:33 320

原创 爬楼梯

爬楼梯 Time Limit: 1000 ms Memory Limit: 65536 KiB Submit Statistic Discuss Problem Description 小明是个非常无聊的人,他每天都会思考一些奇怪的问题,比如爬楼梯的时候,他就会想,如果每次可以上一级台阶或者两级台阶,那么上 n 级台阶一共有多少种方案? Input 输入包含多组测试数据,对于每组测试数...

2018-06-20 21:41:47 357

原创 骨牌铺方格

骨牌铺方格 Time Limit: 1000 ms Memory Limit: 32768 KiB Submit Statistic Discuss Problem Description 在2×n的一个长方形方格中,用一个1× 2的骨牌铺满方格,输入n ,输出铺放方案的总数. 例如n=3时,为2× 3方格,骨牌的铺放方案有三种,如下图:  Input 输入数据由多行组成,每行包含一个...

2018-06-20 21:40:34 1093

原创 王小二切饼

王小二切饼 Time Limit: 1000 ms Memory Limit: 65536 KiB Submit Statistic Discuss Problem Description 王小二自夸刀工不错,有人放一张大的煎饼在砧板上,问他:“饼不许离开砧板,切n(1<=n<=100)刀最多能分成多少块?” Input 输入切的刀数n。 Output 输出为切n刀最多...

2018-06-20 21:39:20 333

原创 母牛的故事

母牛的故事 Time Limit: 1000 ms Memory Limit: 65536 KiB Submit Statistic Discuss Problem Description 有一对夫妇买了一头母牛,它从第2年起每年年初生一头小母牛。每头小母牛从第四个年头开始,每年年初也生一头小母牛。请编程实现在第n年的时候,共有多少头母牛? Input 输入数据由多个测试实例组成,每个...

2018-06-20 21:37:17 243

原创 最长公共子序列问题

最长公共子序列问题 Time Limit: 1000 ms Memory Limit: 65536 KiB Submit Statistic Discuss Problem Description 给定两个序列 X={x1,x2,…,xm} 和 Y={y1,y2,…,yn},找出X和Y的最长公共子序列。 Input 输入数据有多组,每组有两行 ,每行为一个长度不超过500的字符串(输入...

2018-06-20 15:06:05 216

原创 最长上升子序列

最长上升子序列 Time Limit: 3000 ms Memory Limit: 65536 KiB Submit Statistic Discuss Problem Description 一个数的序列bi,当b1 < b2 < ... < bS的时候,我们称这个序列是上升的。对于给定的一个序列(a1, a2, ..., aN),我们可以得到一些上升的子序列(ai1,...

2018-06-20 14:39:53 277

原创 Financial Management

Financial Management Time Limit: 1000 ms Memory Limit: 10000 KiB Submit Statistic Discuss Problem Description Larry graduated this year and finally has a job. He's making a lot of money, but someh...

2018-06-20 14:25:03 222

原创 Funcode-贪吃蛇

自己编写的一个小游戏,本来打算做贪吃蛇,结果不会使蛇的身子随蛇头方向改变而改变就换了种想法,最后变成了这样一个另类的小游戏,“笑哭“,下面是程序的主要代码,如果有兴趣也可以下载完整程序代码资源:https://download.csdn.net/download/yt201758501112/10488198。 Lessonx.h ///////////////////////////////...

2018-06-20 13:43:01 4149 4

空空如也

空空如也

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

TA关注的人

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