- 博客(8)
- 收藏
- 关注
原创 hdu2104
hdu2104 Problem Description The Children’s Day has passed for some days .Has you remembered something happened at your childhood? I remembered I often played a game called hide handkerchief with my friends. Now I introduce the game to you. Suppose there ar
2020-11-19 12:15:30 77
原创 hdu1720
hdu1720 Problem Description Many classmates said to me that A+B is must needs. If you can’t AC this problem, you would invite me for night meal. _ Input Input may contain multiple test cases. Each case contains A and B in one line. A, B are hexadecimal num
2020-11-18 17:51:31 67
原创 hdu2039
hdu2039 Problem Description 给定三条边,请你判断一下能不能组成一个三角形。 Input 输入数据第一行包含一个数M,接下有M行,每行一个实例,包含三个正数A,B,C。其中A,B,C <1000; Output 对于每个测试实例,如果三条边长A,B,C能组成三角形的话,输出YES,否则NO。 Sample Input 2 1 2 3 2 2 2 Sample Output NO YES 只需要注意用double即可 #include<iostream> #inc
2020-11-18 17:20:06 109
原创 hdu2022
hdu2022 Problem Description potato老师虽然很喜欢教书,但是迫于生活压力,不得不想办法在业余时间挣点外快以养家糊口。 “做什么比较挣钱呢?筛沙子没力气,看大门又不够帅…”potato老师很是无奈。 “张艺谋比你还难看,现在多有钱呀,听说还要导演奥运开幕式呢!你为什么不去娱乐圈发展呢?”lwg在一旁出主意。 嗯,也是,为了生存,就委屈点到娱乐圈混混吧,马上就拍一部激光电影《杭电记忆——回来我的爱》。 说干就干,马上海选女主角(和老谋子学的,此举可以吸引媒体的眼球,呵呵),并且特
2020-11-18 16:56:01 154
原创 hdu2021
hdu2021 Problem Description 作为杭电的老师,最盼望的日子就是每月的8号了,因为这一天是发工资的日子,养家糊口就靠它了,呵呵 但是对于学校财务处的工作人员来说,这一天则是很忙碌的一天,财务处的小胡老师最近就在考虑一个问题:如果每个老师的工资额都知道,最少需要准备多少张人民币,才能在给每位老师发工资的时候都不用老师找零呢? 这里假设老师的工资都是正整数,单位元,人民币一共有100元、50元、10元、5元、2元和1元六种。 Input 输入数据包含多个测试实例,每个测试实例的第一行是一
2020-11-18 16:38:15 122
原创 hdu2026
hdu2026 Problem Description 输入一个英文句子,将每个单词的第一个字母改成大写字母。 Input 输入数据包含多个测试实例,每个测试实例是一个长度不超过100的英文句子,占一行。 Output 请输出按照要求改写后的英文句子。 Sample Input i like acm i want to get an accepted Sample Output I Like Acm I Want To Get An Accepted tips cin 不能输入空格 cin.get (cha
2020-11-17 22:15:54 65
原创 hdu2019
hdu2019 Problem Description 有n(n<=100)个整数,已经按照从小到大顺序排列好,现在另外给一个整数x,请将该数插入到序列中,并使新的序列仍然有序。 Input 输入数据包含多个测试实例,每组数据由两行组成,第一行是n和m,第二行是已经有序的n个数的数列。n和m同时为0标示输入数据的结束,本行不做处理。 Output 对于每个测试实例,输出插入新的元素后的数列。 Sample Input 3 3 1 2 4 0 0 Sample Output 1 2 3 4 最开始写的时
2020-11-17 21:51:43 138
原创 hdu2018
hdu2018 迭代 a[i]=a[i-1]+a[i-3]; #include<iostream> #include<iomanip> #include<string.h> using namespace std; int main() { int n; while(cin>>n) { if(n==0) { break; } else { int a[60]={0}; a[0]=1; a[1]=1;
2020-11-17 19:30:03 223
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人