![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Waters
文章平均质量分 54
bingsanchun
这个作者很懒,什么都没留下…
展开
-
hdu2016—— 数据的交换输出
原题: Problem Description 输入n(n Input 输入数据有多组,每组占一行,每行的开始是一个整数n,表示这个测试实例的数值的个数,跟着就是n个整数。n=0表示输入的结束,不做处理。 Output 对于每组输入数据,输原创 2013-03-05 21:27:39 · 907 阅读 · 3 评论 -
hdu2024 C语言合法标识符
原题: Problem Description 输入一个字符串,判断其是否是C的合法标识符。 Input 输入数据包含多个测试实例,数据的第一行是一个整数n,表示测试实例的个数,然后是n行输入数据,每行是一个长度不超过50的字符串。 Output原创 2013-03-21 12:44:45 · 1096 阅读 · 0 评论 -
找女朋友解题报告
原题:题目描述山东理工大学有很多学生,当然也有很多美女,机械实验班的学委(外号:大王八)很想找个女朋友,但他想找个身高和自己相配的女生坐女朋友,现有理工大N个美女的身高数据,但由于N的值较大,为了尽快找到合适的女友,大王八想请你帮他完成这N个美女的身高排序,按降序排列。输入输入包括两行,第一行是一个正整数N(N输出输出只有一行,为这N个数的降序序列,数与数之间用空格隔开。原创 2013-01-28 11:49:36 · 978 阅读 · 0 评论 -
海选女主角解题报告
题目描述potato老师虽然很喜欢教书,但是迫于生活压力,不得不想办法在业余时间挣点外快以养家糊口。 “做什么比较挣钱呢?筛沙子没力气,看大门又不够帅...”potato老师很是无奈。“张艺谋比你还难看,现在多有钱呀,听说还要导演奥运开幕式呢!你为什么不去娱乐圈发展呢?”lwg在一旁出主意。嗯,也是,为了生存,就委屈点到娱乐圈混混吧,马上就拍一部激光电影《杭电记忆——回来我的爱》。原创 2013-01-28 20:54:46 · 452 阅读 · 0 评论 -
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 · 932 阅读 · 0 评论 -
SDUT——英文金曲大赛
原题:题目描述我们在“渊子数”的题目中已经了解了渊子是个什么样的人了,他在大一的时候参加过工商学院的“英语聚乐部”。告诉你个秘密,这个俱乐部是个好地方,不但活动精彩而且有MM。这不,英语俱乐部举办了一个叫做“英文金曲大赛”的节目。这个节目有好多人参加,这不,成绩出来了,渊子当是很勇敢,自告奋勇接下了算出大家的总得分的任务。 当时有7个评委,每个评委都要给选手打分,现在要求去掉一个最原创 2013-03-19 19:13:26 · 1762 阅读 · 0 评论 -
省赛热身赛之 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 · 952 阅读 · 0 评论 -
腾讯马拉松之小Q系列故事——屌丝的逆袭
原题:Problem Description 毕业于普通本科的小Q一直自称是资深屌丝,不仅学校不知名,甚至他自己在这个普通学校也是默默无闻——直到临近毕业的时候,班里5朵金花中的2位甚至从没和他说过话! 谁又能想到,如此不起眼的小Q在历经重重面试环节后,竟然如愿以偿加入了心仪已久的腾讯公司!消息刚刚传开的那几天,这在他们班甚至整个学院都是讨论的热门话题,如果这时候你还表示不知道小Q原创 2013-03-25 00:00:18 · 1304 阅读 · 3 评论 -
省赛热身赛之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 · 1106 阅读 · 0 评论 -
hdu2000——ASCII码排序
原题: 输入三个字符后,按各字符的ASCII码从小到大的顺序输出这三个字符。 Input 输入数据有多组,每组占一行,有三个字符组成,之间无空格。 Output 对于每组输入数据,输出一行,字符中间用一个空格分开。 Sample原创 2013-02-22 16:33:12 · 393 阅读 · 0 评论 -
hdu2006——求奇数的乘积
原题: Problem Description 给你n个整数,求他们中所有奇数的乘积。 Input 输入数据包含多个测试实例,每个测试实例占一行,每行的第一个数为n,表示本组数据一共有n个,接着是n个整数,你可以假设每组数据必定至少存在一个奇数。 Output原创 2013-02-22 16:46:48 · 333 阅读 · 0 评论 -
hdu2010——水仙花数
原题: Problem Description 春天是鲜花的季节,水仙花就是其中最迷人的代表,数学上有个水仙花数,他是这样定义的:“水仙花数”是指一个三位数,它的各位数字的立方和等于其本身,比如:153=1^3+5^3+3^3。现在要求输出所有在m和n范围内的水仙花数。 Input 输入数据有多组,原创 2013-02-22 17:18:50 · 439 阅读 · 0 评论 -
hdu2011——多项式求和
原题: Problem Description 多项式的描述如下:1 - 1/2 + 1/3 - 1/4 + 1/5 - 1/6 + ...现在请你求出该多项式的前n项的和。 Input 输入数据由2行组成,首先是一个正整数m(m Output 对原创 2013-02-26 14:45:21 · 414 阅读 · 0 评论 -
hdu2014——青年歌手大奖赛_评委会打分
原题: Problem Description 青年歌手大奖赛中,评委会给参赛选手打分。选手得分规则为去掉一个最高分和一个最低分,然后计算平均得分,请编程输出某选手的得分。 Input 输入数据有多组,每组占一行,每行的第一个数是n(2 Output原创 2013-03-05 21:22:45 · 1117 阅读 · 0 评论 -
hdu2012——素数判定解题报告
原题: Problem Description 对于表达式n^2+n+41,当n在(x,y)范围内取整数值时(包括x,y)(-39 Input 输入数据有多组,每组占一行,由两个整数x,y组成,当x=0,y=0时,表示输入结束,该行不做处理。 Output原创 2013-02-26 18:19:01 · 530 阅读 · 0 评论 -
Codeforces Round #219 (Div. 2)A. Collecting Beats is Fun
Cucumber boy is fan of Kyubeat, a famous music game.Kyubeat has 16 panels for playing arranged in 4 × 4 table. When a panel lights up, he has to press that panel.Each panel has a timing to press原创 2013-12-14 09:35:47 · 9688 阅读 · 0 评论 -
SGU276-Andrew's Troubles
Famous Berland ACM-ICPC team Anisovka consists of three programmers: Andrew, Michael and Ilya. A long time ago, during the first few months the team was founded, Andrew was very often late to the trai原创 2013-12-02 21:32:15 · 9161 阅读 · 0 评论 -
FZU-竞技游戏
DescriptionJohn和Smith在玩一种竞技游戏。在游戏中,John给Smith由n个正整数组成的序列以及m条操作指令,需要Smith按照指令来对n个整数进行操作。其中每条指令都包括二个整数(a, b),意义如下:如果a大于0,表示将序列中第b个数乘于2;如果a小于0,表示将序列中第b个数加上2;如果a等于0,则忽略此条指令。游戏结束后,Smith需要求出序列原创 2013-12-08 20:17:00 · 9386 阅读 · 0 评论 -
SGU127-Telephone directory
127. Telephone directorytime limit per test: 0.5 sec. memory limit per test: 4096 KB CIA has decided to create a special telephone directory for its agents. The first 2 pages of the directory原创 2013-11-27 15:51:11 · 1142 阅读 · 0 评论 -
Codeforces Round #215 (Div. 2) -A. Sereja and Coat Rack
Sereja owns a restaurant for n people. The restaurant hall has a coat rack withn hooks. Each restaurant visitor can use a hook to hang his clothes on it. Using thei-th hook costs ai rubles. Only o原创 2013-11-27 00:43:43 · 1706 阅读 · 0 评论 -
FZU——数字游戏
Problem Description给一个N位的正整数,该数不包含前导0,先让你调整其中每个数字的位置,得到另一个n位的数,并且使得这个数越小越好,而且这个数不能包含前导0。比如543210可以变成102345,而12345保持不变才是最优结果。 Input第一行一个整数T(T每组数据先输入一行一个整数N(1 Output每组数据对应一行输出,即调整数原创 2013-11-10 17:05:28 · 1421 阅读 · 0 评论 -
SGU123——The sum(又见斐波那契)
The Fibonacci sequence of numbers is known: F1 = 1; F2 = 1; Fn+1 = Fn + Fn-1, for n>1.You have to find S - the sum of the first K Fibonacci numbers.InputFirst line contains natural number原创 2013-11-20 11:14:31 · 1457 阅读 · 0 评论 -
codeforces 365A——Good Number
Let's call a number k-good if it contains all digits not exceedingk (0, ..., k). You've got a numberk and an array a containingn numbers. Find out how many k-good numbers are in a (count each原创 2013-11-20 10:13:54 · 1773 阅读 · 0 评论 -
SGU184——Patties
Petya is well-known with his famous cabbage patties. Petya's birthday will come very soon, and he wants to invite as many guests as possible. But the boy wants everybody to try his specialty of the ho原创 2013-11-20 11:27:15 · 1321 阅读 · 0 评论 -
hdu2003——求实数的绝对值
原题: Problem Description 求实数的绝对值。 Input 输入数据有多组,每组占一行,每行包含一个实数。 Output 对于每组输入数据,输出它的绝对值,要求每组数据输出一行,结果保留两位小数。 Sa原创 2013-02-22 16:42:40 · 547 阅读 · 0 评论 -
hdu2008——数值统计
原题: Problem Description 统计给定的n个数中,负数、零和正数的个数。 Input 输入数据有多组,每组占一行,每行的第一个数是整数n(n Output 对于每组输入数据,输出一行a,b和c,分别表示给定的数据中负数、零和正数的个数。原创 2013-02-22 16:59:10 · 317 阅读 · 0 评论 -
hdu2019——数列有序解题报告
原题:Problem Description有n(n Input输入数据包含多个测试实例,每组数据由两行组成,第一行是n和m,第二行是已经有序的n个数的数列。n和m同时为0标示输入数据的结束,本行不做处理。 Output对于每个测试实例,输出插入新的元素后的数列。 Sample Input3 31 2 40 0原创 2013-02-26 16:19:36 · 409 阅读 · 0 评论 -
hdu2015——偶数求和
原题: Problem Description 有一个长度为n(n Input 输入数据有多组,每组占一行,包含两个正整数n和m,n和m的含义如上所述。 Output 对于每组输入数据,输出一个平均值序列,每组输出占一行。原创 2013-03-05 21:26:04 · 754 阅读 · 0 评论 -
HDU2023 求平均成绩
原题 : Problem Description 假设一个班有n(n Input 输入数据有多个测试实例,每个测试实例的第一行包括两个整数n和m,分别表示学生数和课程数。然后是n行数据,每行包括m个整数(即:考试分数)。 Output 对于原创 2013-03-21 12:42:25 · 654 阅读 · 0 评论 -
省赛热身赛第三场——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 · 543 阅读 · 0 评论 -
省赛热身赛之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 · 1053 阅读 · 0 评论 -
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 · 883 阅读 · 0 评论 -
简单斐波那契
斐波那契数列是一种非常有意思的数列,由 0 和 1 开始,之后的斐波那契系数就由之前的两数相加。用数学公式定义斐波那契数列则可以看成如下形式:F0=0F1=1Fn=Fn-1+Fn-2我们约定Fn表示斐波那契数列的第n项,你能知道斐波那契数量中的任何一项吗?输入包括一行,包括一个数字N(0≤N≤50)。输出包括一行,包括一个数字,为斐波那契数列的第N项的值。样例输入原创 2013-07-22 21:37:15 · 1069 阅读 · 0 评论 -
浙江2013省赛——Java Beans
原题:There are N little kids sitting in a circle, each of them are carrying some java beans in their hand. Their teacher want to selectM kids who seated in M consecutive seats and collect java beans原创 2013-05-11 15:23:29 · 1021 阅读 · 0 评论 -
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 · 909 阅读 · 0 评论 -
poj——校门外的树解题报告
原题:【问题描述】 某校大门外长度为L的马路上有一排树,每两棵相邻的树之间的间隔都是1米。我们可以把马路看成一个数轴,马路的一端在数轴0的位置,另一端在L的位置;数轴上的每个整数点,即0,1,2,……,L,都种有一棵树。 由于马路上有一些区域要用来建地铁。这些区域用它们在数轴上的起始点和终止点表示。已知任一区域的起始点和终止点的坐标都是整数,区域之间可能有重合的部分。现在要把这些区域中的树(原创 2013-03-30 21:09:29 · 7272 阅读 · 0 评论 -
hdu2039三角形解题报告
原题:点击打开链接分析:水题,不解释~源码:#include#include#includeusing namespace std;int main(){ int n; double a[3]; scanf("%d",&n); while(n--) { for(int i=0;i<3;i++) {原创 2013-02-22 15:25:20 · 367 阅读 · 0 评论 -
hdu2021发工资咯解题报告
原题:点击打开链接分析:最近很水,先练练手~源码:#includeint main(){ int n,m,a,b,c,d,e,f,i,j,k; while(scanf("%d",&n)!=EOF&&n!=0) { k=0; for(i=0;i<n;i++) { scanf("%d",&m原创 2013-02-22 15:00:28 · 425 阅读 · 0 评论 -
绝对值排序解题报告
原题:点击题目链接分析:水题一枚,不解释;水神一个,难题不会~源码:#include#include#include#includeusing namespace std;struct N{ int a; int b;}p[101];int cmp(N g,N h){ return g.b>h.b;}int main(){原创 2013-02-22 14:26:42 · 366 阅读 · 0 评论 -
芳芳的不下降序列
原题:题目描述 芳芳特喜欢数列,有一天,芳芳发现了这样一个问题,给一个n个数的序列,可以进行这样一次操作,对区间[L,R]上的数字集体+1(1,最少操作多少次,使得整个序列变为单调不下降序列。如 3 2 1 -> 3 3 2 -> 3 3 3最少2次操作。无所不能的芳芳觉得太简单了,你能解决吗?输入 多组数据。输入一个n,接下原创 2013-01-31 17:10:12 · 387 阅读 · 0 评论