B君要用一个表面积为S的圆锥将白山云包起来。 B君希望包住的白山云体积尽量大,B君想知道体积最大可以是多少。 注意圆锥的表面积包括底面和侧面。 Input Output Input示例 Output示例 ...
分类:
其他好文 时间:
2017-11-18 22:31:16
阅读次数:
220
Given a non-negative integer c, your task is to decide whether there're two integers a and b such that a2 + b2 = c. Example 1: Input: 5 Output: True E ...
分类:
其他好文 时间:
2017-11-09 15:05:14
阅读次数:
136
3211: 花神游历各国 Description Input Output 每次x=1时,每行一个整数,表示这次旅行的开心度 每次x=1时,每行一个整数,表示这次旅行的开心度 Sample Input 4 1 100 5 5 5 1 1 2 2 1 2 1 1 2 2 2 3 1 1 4 Sampl ...
分类:
编程语言 时间:
2017-11-07 16:22:48
阅读次数:
227
1 Asio介绍 在进行网络编程之前,我们先对Asio进行简单的介绍。首先Asio这个名字就说明了它的核心作用——异步输入/输出(Asynchronous input/output).也是就是说这个库设计的目的是让C++异步地处理数据且独立于平台,并不只是针对网络编程而已,只是它主要被应用于网络编程 ...
分类:
其他好文 时间:
2017-11-07 14:24:09
阅读次数:
223
Defines types ifstream and ofstream representing input and output files respectively. ifstream is derived from istream, inheriting all its operations ... ...
分类:
其他好文 时间:
2017-11-03 23:56:47
阅读次数:
234
3211: 花神游历各国 Description Input Output 每次x=1时,每行一个整数,表示这次旅行的开心度 每次x=1时,每行一个整数,表示这次旅行的开心度 Sample Input 4 1 100 5 5 5 1 1 2 2 1 2 1 1 2 2 2 3 1 1 4 Sampl ...
分类:
其他好文 时间:
2017-10-28 13:53:56
阅读次数:
216
Given an integer array, find three numbers whose product is maximum and output the maximum product. Example 1: Input: [1,2,3] Output: 6 Example 2: Inp ...
分类:
其他好文 时间:
2017-10-27 01:27:15
阅读次数:
196
题目描述: 给定一个十进制正整数N,写下从1开始,到N的所有正数,计算出其中出现所有1的个数。 例如:n = 12,包含了5个1。1,10,12共包含3个1,11包含2个1,总共5个1。 Input Output ...
分类:
其他好文 时间:
2017-10-25 11:25:26
阅读次数:
131
1787: [Ahoi2008]Meet 紧急集合 Description Input Output Sample Input 6 4 1 2 2 3 2 4 4 5 5 6 4 5 6 6 3 1 2 4 4 6 6 6 Sample Output 5 2 2 5 4 1 6 0 HINT Sou ...
分类:
其他好文 时间:
2017-10-24 21:01:53
阅读次数:
165
A. Alex and broken contest time limit per test 2 seconds memory limit per test 256 megabytes input standard input output standard output A. Alex and b ...
分类:
编程语言 时间:
2017-10-24 13:20:36
阅读次数:
295