![](https://img-blog.csdnimg.cn/20201014180756918.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
acm训练题
在广州漂泊的本科仔
这个作者很懒,什么都没留下…
展开
-
George and Accommodation
Text Reverse Problem Description George has recently entered the BSUCP (Berland State University for Cool Programmers). George has a friend Alex who has also entered the university. Now they are movi...原创 2018-12-05 22:15:27 · 147 阅读 · 0 评论 -
Stones on the Table
Text Reverse Problem Description There 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 the table so that any two neighborin...原创 2018-12-05 23:17:19 · 114 阅读 · 0 评论 -
A + B Problem
Text Reverse Problem Description Calculate A + B. Input Each line will contain two integers A and B. Process to end of file. Output For each case, output A + B in one line. 问题简述:就是一题简单的加法问题。但是要注意的是,题...原创 2018-12-05 23:50:00 · 79 阅读 · 0 评论 -
第一次周训 A
A - Problem A 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 scal...原创 2018-12-09 10:58:16 · 124 阅读 · 0 评论 -
第一次周训 problem J
J - Problem J 给定一个日期,输出这个日期是该年的第几天。 Input 输入数据有多组,每组占一行,数据格式为YYYY/MM/DD组成,具体参见sample input ,另外,可以向你确保所有的输入数据是合法的。 Output 对于每组输入数据,输出一行,表示该日期是该年的第几天。 程序简述:输入年月日后,用循环把前面月份的天数全加上(要判断大小月),然后加上本月份的天数。其中还要判...原创 2018-12-09 11:08:56 · 134 阅读 · 0 评论 -
ASCII码排序
Text Reverse Problem Description 输入三个字符后,按各字符的ASCII码从小到大的顺序输出这三个字符。 Input 输入数据有多组,每组占一行,有三个字符组成,之间无空格。 Output 对于每组输入数据,输出一行,字符中间用一个空格分开。 问题简述 这就是简单的排序问题。 程序简述:我利用冒泡排序将三个字母进行排序。 #include <iostream&...原创 2018-12-07 14:53:53 · 155 阅读 · 0 评论 -
计算球体积
Text Reverse Problem Description 根据输入的半径值,计算球的体积。 Input 输入数据有多组,每组占一行,每行包括一个实数,表示球的半径。 Output 输出对应的球的体积,对于每组输入数据,输出一行,计算结果保留三位小数。 问题简述:计算球体积,要注意的是,结果要保留小数点后三位。 程序简述:利用球体积公式,求出球的体积。在把结果保留小数点后三位。 #incl...原创 2018-12-07 15:00:01 · 643 阅读 · 0 评论 -
A + B Problem Too
Text Reverse Problem Description This problem is also a A + B problem,but it has a little difference,you should determine does (a+b) could be divided with 86.For example ,if (A+B)=98,you should outpu...原创 2018-12-07 15:09:34 · 96 阅读 · 0 评论