acm摸底
淡淡的(*^_^*)
这个作者很懒,什么都没留下…
展开
-
hdu-1000
hdu-1000 hdu-1000 第一次打的程序,按习惯打了cout<<“a+b”。 本应该是main函数,却因为手速问题,打成mian,导致了函数出现一定要return的情况。 下面是通过的程序 whlie 的使用,让程序在有输入a,b时,才可以计算a+b的值,不输入a,b时,不进行计算。 ...原创 2018-12-07 23:40:29 · 179 阅读 · 0 评论 -
统计每个元音字母在字符串中出现的次数
统计每个元音字母在字符串中出现的次数<c_hnq> Input 输入数据首先包括一个整数n,表示测试实例的个数,然后是n行长度不超过100的字符串。 Output 对于每个测试实例输出5行,格式如下: a:num1 e:num2 i:num3 o:num4 u:num5 多个测试实例之间由一个空行隔开。 请特别注意:最后一块输出后...原创 2018-12-14 23:23:43 · 5536 阅读 · 0 评论 -
可否分为n偶数斤西瓜
题目: One hot summer day Pete and his friend Billy decided to buy a watermelon. They chose the biggest and the ripest one, in their opinion. After that the watermelon was weighed, and the scales showed ...原创 2018-12-09 23:17:57 · 260 阅读 · 0 评论