![](https://img-blog.csdnimg.cn/20201014180756922.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
普通水题
文章平均质量分 76
maqinyao5566
这个作者很懒,什么都没留下…
展开
-
比大小 OJ 73
描述给你两个很大的数,你能不能判断出他们两个数的大小呢?比如123456789123456789要大于-123456输入每组测试数据占一行,输入两个不超过1000位的10进制整数a,b数据保证输入的a,b没有前缀的0。如果输入0 0表示输入结束。测试数据组数不超过10组输出如果a>b则输出“a>b”,如果a样例输入11111111111111原创 2016-01-08 19:13:04 · 285 阅读 · 0 评论 -
父亲给三个儿子分田(水题,但比较麻烦)
做这道题花了很长时间,代码能力太菜,存数组时就出现问题了,下面三个FOR循环都怎样都控制不好。Three sons inherited from their father a rectangular corn fiend divided into n × m squares. For each square we know how many tons of corn grows o原创 2016-04-04 16:43:58 · 382 阅读 · 0 评论 -
G - 寻找大富翁 HDU 3785(对和比大小)
开一个数组记录和作为作为下标,从大到小找M个最大下标Description浙江桐乡乌镇共有n个人,请找出该镇上的前m个大富翁.Input输入包含多组测试用例.每个用例首先包含2个整数n(0n和m同时为0时表示输入结束.Output请输出乌镇前m个大富翁的财产数,财产多的排前面,如果大富翁不足m个,则全部输出,每组输出占原创 2016-03-13 09:56:51 · 361 阅读 · 0 评论 -
前m大的数 HDU 1280(以和为下标比大小)输出M个最大和
Description还记得Gardon给小希布置的那个作业么?(上次比赛的1005)其实小希已经找回了原来的那张数表,现在她想确认一下她的答案是否正确,但是整个的答案是很庞大的表,小希只想让你把答案中最大的M个数告诉她就可以了。 给定一个包含N(NInput输入可能包含多组数据,其中每组数据包括两行: 第一行两个数N和M, 第二行N个数,表示该序列。原创 2016-03-13 10:12:57 · 295 阅读 · 0 评论 -
E - A Magic Lamp HDU 3183(在删除指定个数的数后的到最小的数,且去前导0)
在不少于应剩余的数字个数时,按着顺序,依次寻找最小数。放到新的数组里。注意去除前导零。DescriptionKiki likes traveling. One day she finds a magic lamp, unfortunately the genie in the lamp is not so kind. Kiki must answer a question,原创 2016-03-14 19:20:34 · 206 阅读 · 0 评论 -
求出现字母个数
这样一个水题,依然被拦住了。我以字符为下标,但恰好z的ASCIIL值为122.而我只开了120.所以一直被卡DescriptionThose days, many boys use beautiful girls' photos as avatars in forums. So it is pretty hard to tell the gender of a user at原创 2016-04-12 17:57:06 · 395 阅读 · 0 评论 -
求n的因子的个数和。.
比赛时被拦住了,因子个数和太多,会超时~~~DescriptionLet's denote d(n) as the number of divisors of a positive integer n. You are given three integers a, b and c. Your task is to calculate the following sum:原创 2016-04-12 19:14:21 · 1330 阅读 · 0 评论 -
Divide the Sequence hdu 5783
Problem DescriptionAlice has a sequence A, She wants to split A into as much as possible continuous subsequences, satisfying that for each subsequence, every its prefix sum is not small than 0.原创 2016-08-02 18:24:36 · 388 阅读 · 1 评论 -
hdu NanoApe Loves Sequence
Problem DescriptionNanoApe, the Retired Dog, has returned back to prepare for the National Higher Education Entrance Examination!In math class, NanoApe picked up sequences once again. He wrote原创 2016-08-08 13:18:57 · 274 阅读 · 0 评论