![](https://img-blog.csdnimg.cn/20201014180756928.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
ACM训练题
文章平均质量分 56
螢塚
这个作者很懒,什么都没留下…
展开
-
CodeForces - 266A——Stones on the Table
Stones on the TableThere are n stones on the table in a row, each of them can be red,green or blue. Count the minimum number of stones to take from thetable so that any two neighboring stones had ...原创 2018-12-07 22:16:15 · 152 阅读 · 0 评论 -
HDU-2030——汉字统计
汉字统计Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 62459 Accepted Submission(s): 33621Problem Description统计给定文本文件中汉字的个数。Input输入文件首先包含一...原创 2018-12-14 16:47:21 · 315 阅读 · 0 评论 -
HDU-2000——ASCII码排序
ASCII码排序输入三个字符后,按各字符的ASCII码从小到大的顺序输出这三个字符。Input输入数据有多组,每组占一行,有三个字符组成,之间无空格。Output对于每组输入数据,输出一行,字符中间用一个空格分开。Sample Inputqweasdzxc程序分析: 本题可以用冒泡算法,但这个题目中,一组数组仅有三个,故采用更简便的两两对比的方法来排顺序。本题...原创 2018-12-07 10:24:07 · 171 阅读 · 0 评论 -
hdu-2002——计算球体积
HDU - 2002根据输入的半径值,计算球的体积。Input输入数据有多组,每组占一行,每行包括一个实数,表示球的半径。Output输出对应的球的体积,对于每组输入数据,输出一行,计算结果保留三位小数。Sample Input11.5Sample Output4.18914.137Hint#define PI 3.1415927程序分析:利用m...原创 2018-12-07 09:13:31 · 189 阅读 · 0 评论 -
hdu2101——A + B Problem Too
A + B Problem TooThis problem is also a A + B problem,but it has a littledifference,you should determine does (a+b) could be divided with86.For example ,if (A+B)=98,you should output no for result...原创 2018-12-06 23:16:39 · 152 阅读 · 0 评论 -
HDU-1000——A+B problem
A+B problemCalculate A + B.InputEach line will contain two integers A and B. Process to end of file.OutputFor each case, output A + B in one line.Sample Input1 1Sample Output2程序分析:...原创 2018-12-06 22:45:36 · 149 阅读 · 0 评论 -
CodeForces-118A——Vjudge String Task
String Task CodeForces118A:Petya started to attend programming lessons. On the first lesson his task was to write a simple program. The program was supposed to do the following: in the given stri...原创 2018-12-06 22:08:53 · 168 阅读 · 0 评论 -
HDU - 2055——An easy problem
An easy problemTime Limit: 1000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 33073 Accepted Submission(s): 21354Problem Descriptionwe define f(A) = 1, ...原创 2018-12-13 23:11:56 · 281 阅读 · 0 评论 -
HDU - 2027——统计元音
统计元音Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 100796 Accepted Submission(s): 38651Problem Description统计每个元音字母在字符串中出现的次数。Input输入数据...原创 2018-12-13 18:51:43 · 213 阅读 · 0 评论 -
CodeForces - 131A——cAPS lOCK
A. cAPS lOCKtime limit per test0.5 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputwHAT DO WE NEED cAPS LOCK FOR?Caps lock is a computer keyboard key. Pressin...原创 2018-12-12 23:24:02 · 328 阅读 · 0 评论 -
CodeForces - 110A——Nearly Lucky Number
A. Nearly Lucky NumberPetya loves lucky numbers. We all know that lucky numbers are thepositive integers whose decimal representations contain only the luckydigits 4 and 7. For example, numbers 47...原创 2018-12-11 20:57:27 · 245 阅读 · 0 评论