c++语言并未定义任何的输入输出(IO)语句,取而代之,包含了一个全面的标准库(standard library)来提供IO机制。 本书中的很多示例都使用了iostream库。iostream库包含两个基本类型 istream 和 ostream,分别表示输入流和输出流。一个流就是一个字符序列...
分类:
编程语言 时间:
2015-02-26 21:38:01
阅读次数:
266
Problem Description
七夕节那天,月老来到数字王国,他在城门上贴了一张告示,并且和数字王国的人们说:"你们想知道你们的另一半是谁吗?那就按照告示上的方法去找吧!"
人们纷纷来到告示前,都想知道谁才是自己的另一半.告示如下:
数字N的因子就是所有比N小又能被N整除的所有正整数,如12的因子有1,2,3,4,6.
你想知道你的另一半吗?
Input
输...
分类:
其他好文 时间:
2015-02-25 14:17:25
阅读次数:
126
Problem Description
Now, here is a fuction:
F(x) = 6 * x^7+8*x^6+7*x^3+5*x^2-y*x (0
Can you find the minimum value when x is between 0 and 100.
Input
The first line of the input contains an in...
分类:
其他好文 时间:
2015-02-25 14:17:22
阅读次数:
220
Problem Description
Problems in Computer Science are often classified as belonging to a certain class of problems (e.g., NP, Unsolvable, Recursive). In this problem you will be analyzing a property o...
分类:
其他好文 时间:
2015-02-25 14:16:04
阅读次数:
178
Problem Description
Now,given the equation 8*x^4 + 7*x^3 + 2*x^2 + 3*x + 6 == Y,can you find its solution between 0 and 100;
Now please try your lucky.
Input
The first line of the input contains a...
分类:
其他好文 时间:
2015-02-25 13:02:42
阅读次数:
151
Problem Description
The doggie found a bone in an ancient maze, which fascinated him a lot. However, when he picked it up, the maze began to shake, and the doggie could feel the ground sinking. He ...
分类:
其他好文 时间:
2015-02-25 09:11:35
阅读次数:
172
//CodeForces 404A 1 #include "iostream" 2 #include "cstdio" 3 #include "cstring" 4 #include "algorithm" 5 using namespace std; 6 char mat[310][310]; 7...
分类:
其他好文 时间:
2015-02-25 00:45:17
阅读次数:
338
//CodeForces 407B 1 #include "iostream" 2 #include "cstdio" 3 #include "cstring" 4 #include "algorithm" 5 using namespace std; 6 const __int64 mod = 1...
分类:
其他好文 时间:
2015-02-25 00:44:34
阅读次数:
140
//CodeForces 404B 1 #include "iostream" 2 #include "cstdio" 3 #include "cstring" 4 #include "algorithm" 5 using namespace std; 6 const __int64 N = 1e6...
分类:
其他好文 时间:
2015-02-25 00:43:16
阅读次数:
204
//CodeForces 407A 1 #include "iostream" 2 #include "cstdio" 3 #include "cstring" 4 #include "algorithm" 5 using namespace std; 6 int square[1010]; 7 s...
分类:
其他好文 时间:
2015-02-25 00:42:55
阅读次数:
261