- 博客(8)
- 收藏
- 关注
原创 第一次周训 problem J
J - Problem J给定一个日期,输出这个日期是该年的第几天。Input输入数据有多组,每组占一行,数据格式为YYYY/MM/DD组成,具体参见sample input ,另外,可以向你确保所有的输入数据是合法的。Output对于每组输入数据,输出一行,表示该日期是该年的第几天。程序简述:输入年月日后,用循环把前面月份的天数全加上(要判断大小月),然后加上本月份的天数。其中还要判...
2018-12-09 11:08:56
187
原创 第一次周训 A
A - Problem AOne 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
153
原创 A + B Problem Too
Text ReverseProblem DescriptionThis 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
129
原创 计算球体积
Text ReverseProblem Description根据输入的半径值,计算球的体积。Input输入数据有多组,每组占一行,每行包括一个实数,表示球的半径。Output输出对应的球的体积,对于每组输入数据,输出一行,计算结果保留三位小数。问题简述:计算球体积,要注意的是,结果要保留小数点后三位。程序简述:利用球体积公式,求出球的体积。在把结果保留小数点后三位。#incl...
2018-12-07 15:00:01
678
原创 ASCII码排序
Text ReverseProblem Description输入三个字符后,按各字符的ASCII码从小到大的顺序输出这三个字符。Input输入数据有多组,每组占一行,有三个字符组成,之间无空格。Output对于每组输入数据,输出一行,字符中间用一个空格分开。问题简述这就是简单的排序问题。程序简述:我利用冒泡排序将三个字母进行排序。#include <iostream&...
2018-12-07 14:53:53
181
原创 A + B Problem
Text ReverseProblem DescriptionCalculate 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.问题简述:就是一题简单的加法问题。但是要注意的是,题...
2018-12-05 23:50:00
101
原创 Stones on the Table
Text ReverseProblem DescriptionThere 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
142
原创 George and Accommodation
Text ReverseProblem DescriptionGeorge 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
169
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人