自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+

丙三醇

Stupid boy learn programming . QQ交流:792883735

  • 博客(44)
  • 资源 (2)
  • 收藏
  • 关注

原创 hdu1004——Let the Balloon Rise

原题:Problem DescriptionContest time again! How excited it is to see balloons floating around. But to tell you a secret, the judges' favorite time is guessing the most popular problem. When th

2013-03-31 22:59:29 3968

原创 hdu1062——Text Reverse

原题:Problem DescriptionIgnatius likes to write words in reverse way. Given a single line of text which is written by Ignatius, you should reverse all the words and then output them.  Inpu

2013-03-31 01:35:38 1508

原创 hdu3079——Vowel Counting

原题:Problem DescriptionThe "Vowel-Counting-Word"(VCW), complies with the following conditions.Each vowel in the word must be uppercase. Each consonant (the letters except the vowels) must be lo

2013-03-31 00:49:37 1314

原创 hdu1328——IBM Minus One

原题:Problem DescriptionYou may have heard of the book '2001 - A Space Odyssey' by Arthur C. Clarke, or the film of the same name by Stanley Kubrick. In it a spaceship is sent from Earth to Saturn.

2013-03-31 00:37:18 2047

原创 poj——校门外的树解题报告

原题:【问题描述】 某校大门外长度为L的马路上有一排树,每两棵相邻的树之间的间隔都是1米。我们可以把马路看成一个数轴,马路的一端在数轴0的位置,另一端在L的位置;数轴上的每个整数点,即0,1,2,……,L,都种有一棵树。  由于马路上有一些区域要用来建地铁。这些区域用它们在数轴上的起始点和终止点表示。已知任一区域的起始点和终止点的坐标都是整数,区域之间可能有重合的部分。现在要把这些区域中的树(

2013-03-30 21:09:29 7309

原创 吉哥系列故事——礼尚往来

原题:Problem Description  吉哥还是那个吉哥  那个江湖人称“叽叽哥”的基哥    每当节日来临,女友众多的叽叽哥总是能从全国各地的女友那里收到各种礼物。  有礼物收到当然值得高兴,但回礼确是件麻烦的事!  无论多麻烦,总不好意思收礼而不回礼,那也不是叽叽哥的风格。    现在,即爱面子又抠门的叽叽哥想出了一个绝妙的好办法:他准备将各个女友送来的礼物合

2013-03-30 19:30:23 1462

原创 SDUT——Judges time calculation

原题:题目描述In our region, the contest traditionally starts at 12:30 and lasts for 5 hours. If you are able to submit a solution at 12:39, the wise judges would determine that 9 minutes had elapsed s

2013-03-30 16:04:40 893

原创 小Q系列故事——大笨钟

原题:Problem Description  饱尝情感苦恼的小Q本打算隐居一段时间,但仅仅在3月25号一天没有出现,就有很多朋友想念他,所以,他今天决定再出来一次,正式和大家做个告别。    小Q近来睡眠情况很差——晚上睡不着,早上又起不来!以前总是全勤的他这个月甚至迟到了好几次,虽然主管没说什么,但是他自己清楚此事的严重性。  爱情没有了,小Q不想再失去面包,于是他决定买个

2013-03-30 13:52:27 1067 7

原创 poj1657——Distance on Chessboard

原题:Description国际象棋的棋盘是黑白相间的8 * 8的方格,棋子放在格子中间。如下图所示: 王、后、车、象的走子规则如下: 王:横、直、斜都可以走,但每步限走一格。 后:横、直、斜都可以走,每步格数不受限制。 车:横、竖均可以走,不能斜走,格数不限。 象:只能斜走,格数不限。写一个程序,给定起始位置和目标位置,计算王、后、车、象从起始

2013-03-29 18:07:48 952

原创 poj1753——Flip Game

原题:DescriptionFlip 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 ly

2013-03-28 22:53:13 992

原创 高效素数打表

/*遇到素数需要打表时,先估算素数的个数:num = n / lnx;num为大概数字,越大误差越小(只是估计,用于估算素数表数组大小)这个打表法效率貌似很高,网上说几乎达到了线性时间(不知道是真是假=。=)*/#include#include#include#include#includeusing namespace std;int n;bool visit[1010

2013-03-28 20:02:55 1038

原创 堆和栈的区别

一、预备知识—程序的内存分配    一个由C/C++编译的程序占用的内存分为以下几个部分    1、栈区(stack)—   由编译器自动分配释放   ,存放函数的参数值,局部变量的值等。其    操作方式类似于数据结构中的栈。    2、堆区(heap)   —   一般由程序员分配释放,   若程序员不释放,程序结束时可能由OS回    收   。注意它与数据结构中的堆是两

2013-03-27 22:38:44 656

原创 zju——Simple Task

原题:Given a positive integer n and the odd integer o and the nonnegative integer p such that n = o2^p. Example For n = 24, o = 3 and p = 3. Task Write a program which for each data se

2013-03-27 12:02:07 920

原创 hdu2388——Lowest Common Multiple Plus

原题:Problem Description求n个数的最小公倍数。  Input输入包含多个测试实例,每个测试实例的开始是一个正整数n,然后是n个正整数。  Output为每组测试数据输出它们的最小公倍数,每个测试实例的输出占一行。你可以假设最后的输出是一个32位的整数。  Sample Input2 4 63 2 5 7

2013-03-27 10:14:41 689

原创 省赛热身赛之Javabeans

原题:DescriptionJavabeans are delicious. Javaman likes to eat javabeans very much. Javaman has n boxes of javabeans. There are exactly i javabeans in thei-th box (i = 1, 2, 3,...n). Everyday

2013-03-25 18:06:09 768

原创 省赛热身赛之Median

原题:DescriptionA median is described as the numeric value separating the higher half of a list, from the lower half. The median of a finite list of numbers can be found by arranging all the ele

2013-03-25 01:07:46 1061

原创 省赛热身赛之Ordinal Numbers

原题:DescriptionOrdinal numbers refer to a position in a series. Common ordinals include zeroth, first, second, third, fourth and so on. Ordinals are not often written in words, they are written u

2013-03-25 00:14:44 1116

原创 腾讯马拉松之小Q系列故事——屌丝的逆袭

原题:Problem Description  毕业于普通本科的小Q一直自称是资深屌丝,不仅学校不知名,甚至他自己在这个普通学校也是默默无闻——直到临近毕业的时候,班里5朵金花中的2位甚至从没和他说过话!  谁又能想到,如此不起眼的小Q在历经重重面试环节后,竟然如愿以偿加入了心仪已久的腾讯公司!消息刚刚传开的那几天,这在他们班甚至整个学院都是讨论的热门话题,如果这时候你还表示不知道小Q

2013-03-25 00:00:18 1331 3

原创 hdu2032—— 杨辉三角

原题: Problem Description 还记得中学时候学过的杨辉三角吗?具体的定义这里不再描述,你可以参考以下的图形:11 11 2 11 3 3 11 4 6 4 11 5 10 10 5 1   Input 输入数据包含多个测试实例,每个测试实例的输入只包含一个正整数n(

2013-03-24 00:37:04 1537

原创 hdu2030—— 汉字统计

原题: Problem Description 统计给定文本文件中汉字的个数。  Input 输入文件首先包含一个整数n,表示测试实例的个数,然后是n段文本。  Output 对于每一段文本,输出其中的汉字的个数,每个测试实例的输出占一行。

2013-03-24 00:26:33 2086

原创 hdu2029——Palindromes_easy version

原题: Problem Description “回文串”是一个正读和反读都一样的字符串,比如“level”或者“noon”等等就是回文串。请写一个程序判断读入的字符串是否是“回文”。  Input 输入包含多个测试实例,输入数据的第一行是一个正整数n,表示测试实例的个数,后面紧跟着是n个字符串。

2013-03-24 00:21:46 1073

原创 hdu——Rock, Paper, Scissors

原题:Problem DescriptionRock, Paper, Scissors is a classic hand game for two people. Each participant holds out either a fist (rock), open hand (paper), or two-finger V (scissors). If both players s

2013-03-23 23:11:46 1192

原创 省赛热身赛之Light Bulb

原题:DescriptionCompared to wildleopard's wealthiness, his brother mildleopard is rather poor.  His house is narrow and he has only one light bulb in his house. Every night, he is wandering in h

2013-03-22 23:03:34 957

原创 省赛热身赛之 K-Nice

原题:Description    This is a super simple problem. The description is simple, the solution is simple. If you believe so, just read it on. Or if you don't, just pretend that you can't see this o

2013-03-21 23:49:58 959

原创 省赛热身赛之A Stack or A Queue?

原题:DescriptionDo you know stack and queue? They're both important data structures. A stack is a "first in last out" (FILO) data structure and a queue is a "first in first out" (FIFO) one.

2013-03-21 23:30:18 1044

原创 省赛热身赛之80ers' Memory

原题:DescriptionI guess most of us are so called 80ers, which means that we were born in the 1980's. This group of people shared a lot of common memories. For example, the Saint Seiya, the YoYo

2013-03-21 22:58:12 819

原创 省赛热身赛第三场——Second-price Auction

原题:DescriptionDo you know second-price auction? It's very simple but famous. In a second-price auction, each potential buyer privately submits, perhaps in a sealed envelope or over a secure co

2013-03-21 22:53:24 550

原创 hdu2027 统计元音

原题: Problem Description 统计每个元音字母在字符串中出现的次数。  Input 输入数据首先包括一个整数n,表示测试实例的个数,然后是n行长度不超过100的字符串。  Output 对于每个测试实例输出5行,格式如下:

2013-03-21 12:48:40 667

原创 hdu2025 查找最大元素

原题: Problem Description 对于输入的每个字符串,查找其中的最大字母,在该字母后面插入字符串“(max)”。  Input 输入数据包括多个测试实例,每个实例由一行长度不超过100的字符串组成,字符串仅由大小写字母构成。  Output

2013-03-21 12:46:03 874

原创 hdu2024 C语言合法标识符

原题: Problem Description 输入一个字符串,判断其是否是C的合法标识符。  Input 输入数据包含多个测试实例,数据的第一行是一个整数n,表示测试实例的个数,然后是n行输入数据,每行是一个长度不超过50的字符串。  Output

2013-03-21 12:44:45 1120

原创 HDU2023 求平均成绩

原题 : Problem Description 假设一个班有n(n  Input 输入数据有多个测试实例,每个测试实例的第一行包括两个整数n和m,分别表示学生数和课程数。然后是n行数据,每行包括m个整数(即:考试分数)。  Output 对于

2013-03-21 12:42:25 663

原创 hdu2026 首字母变大写

原题: Problem Description 输入一个英文句子,将每个单词的第一个字母改成大写字母。  Input 输入数据包含多个测试实例,每个测试实例是一个长度不超过100的英文句子,占一行。  Output 请输出按照要求改写后的英文句

2013-03-21 04:47:21 731

原创 SDUT排序问题

原题:题目描述输入10个整数,将它们从小到大排序后输出,并给出现在每个元素在原来序列中的位置。输入输入数据有一行,包含10个整数,用空格分开。输出输出数据有两行,第一行为排序后的序列,第二行为排序后各个元素在原来序列中的位置。示例输入1 2 3 5 4 6 8 9 10 7示例输出1 2 3 4 5 6 7 8 9 101 2 3 5 4 6

2013-03-19 20:52:56 1130

原创 SDUT——选夫婿2

原题:题目描述       倾国倾城的大家闺秀潘小姐要选夫婿啦!武林中各门各派,武林外各大户人家,闻讯纷纷前来,强势围观。前来参与竞选的男生藏龙卧虎,高手云集,才子遍布,帅哥纷纭,更不乏富二代,官二代,可谓声势空前。        每个人参与竞选的帅哥除了进行一段激情洋溢的求婚演讲以外,还要报上自己姓名、身高,以及个人简历。最后再进行文武选拔,最后夺魁者方能得到潘小姐的

2013-03-19 20:06:34 2025

原创 SDUT——英文金曲大赛

原题:题目描述我们在“渊子数”的题目中已经了解了渊子是个什么样的人了,他在大一的时候参加过工商学院的“英语聚乐部”。告诉你个秘密,这个俱乐部是个好地方,不但活动精彩而且有MM。这不,英语俱乐部举办了一个叫做“英文金曲大赛”的节目。这个节目有好多人参加,这不,成绩出来了,渊子当是很勇敢,自告奋勇接下了算出大家的总得分的任务。 当时有7个评委,每个评委都要给选手打分,现在要求去掉一个最

2013-03-19 19:13:26 1771

原创 SDUT——打印数字图形

原题:题目描述从键盘输入一个整数n(1≤n≤9),打印出指定的数字图形。输入正整数n(1≤n≤9)。输出指定数字图形。示例输入5示例输出 1 121 12321 1234321123454321 1234321 12321 121 1 原码:#includeint main(){

2013-03-19 18:03:21 2216

原创 SDUT测试赛——Problem F

原题:题目描述       It seems like the year of 2013 came only yesterday. Do you know a curious fact? The year of 2013 is the first year after the old 1987 with only distinct digits.      Given a year n

2013-03-19 17:42:42 937

原创 SDUT——Mirror, Mirror on the Wall 解题报告

原题:题目描述        For most fonts, the lowercase letters b and d are mirror images of each other, as are the letters p and q. Furthermore, letters i, o, v, w, and x are naturally mirror images of them

2013-03-17 21:28:38 981

原创 hdu2022——海选女主角

原题: Problem Description potato老师虽然很喜欢教书,但是迫于生活压力,不得不想办法在业余时间挣点外快以养家糊口。“做什么比较挣钱呢?筛沙子没力气,看大门又不够帅...”potato老师很是无奈。“张艺谋比你还难看,现在多有钱呀,听说还要导演奥运开幕式呢!你为什么不去娱乐圈发展呢?”lwg在一旁出主意。嗯,也是,为了生存,就

2013-03-07 23:40:37 813

原创 hdu2018——母牛的故事

原题: Problem Description 有一头母牛,它每年年初生一头小母牛。每头小母牛从第四个年头开始,每年年初也生一头小母牛。请编程实现在第n年的时候,共有多少头母牛?  Input 输入数据由多个测试实例组成,每个测试实例占一行,包括一个整数n(0n=0表示输入数据的结束,不做处理。

2013-03-05 21:31:34 1062

百度文库下载器(给力版)

百度文库下载器(给力版)

2013-03-30

dos高手速成

dos高手速成

2013-01-22

空空如也

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

TA关注的人

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