- 博客(9)
- 收藏
- 关注
原创 D - Problem D HDU - 2039
给定三条边,请你判断一下能不能组成一个三角形。 Input 输入数据第一行包含一个数M,接下有M行,每行一个实例,包含三个正数A,B,C。其中A,B,C <1000; Output 对于每个测试实例,如果三条边长A,B,C能组成三角形的话,输出YES,否则NO。 Sample Input 2 1 2 3 2 2 2 Sample ...
2018-12-09 17:59:13 58
原创 A - Problem A CodeForces - 4A
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 w ki...
2018-12-09 17:55:39 72
原创 A + B Problem Too HDU - 2101
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 output no for resu...
2018-12-07 18:04:39 63
原创 计算球体积 HDU - 2002
Problem Description 根据输入的半径值,计算球的体积。 Input 输入数据有多组,每组占一行,每行包括一个实数,表示球的半径。 Output 输出对应的球的体积,对于每组输入数据,输出一行,计算结果保留三位小数。 Sample Input1 1.5 Sample Output4.189 14.137 问题链接 问题分析;1.重点在于输出方式要用setprecision函数保留 ...
2018-12-07 17:56:47 130
原创 ASCII码排序 HDU - 2000
Problem Description 输入三个字符后,按各字符的ASCII码从小到大的顺序输出这三个字符。 Input 输入数据有多组,每组占一行,有三个字符组成,之间无空格。 Output 对于每组输入数据,输出一行,字符中间用一个空格分开。 Sample Inputqwe asd zxc Sample Outpute q w a d s c x z 问题链接 问题分析:1.主要在于输入方式 ...
2018-12-07 17:33:32 127
原创 A + B Problem HDU - 1000
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. Sample Input 1 1 Sample Out...
2018-12-05 22:59:32 54
原创 Stones on the Table CodeForces - 266A
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 neighboring stones had different colors. Sto...
2018-12-05 22:49:17 112
原创 George and Accommodation CodeForces - 467A
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 moving into a dormitory. George and Al...
2018-12-05 22:08:59 88
原创 String Task CodeForces - 118A
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 string, consisting if u...
2018-12-05 20:26:21 89
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人