能识别小数,科学记数法表示的数。
不多解释,代码先上:
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
using namespace std;
const int maxn = 1002;
const int n_key = 40...
分类:
其他好文 时间:
2015-04-06 07:40:39
阅读次数:
181
zoj 3202 Second-price Auction
水题,不解释了,直接贴代码
#include
#include
#include
#include
using namespace std;
struct node{
int x;
int y;
};
struct node number[105];
int cmp(struct node a,struct node b){...
分类:
其他好文 时间:
2015-04-06 01:08:18
阅读次数:
231
namespace 自己琢磨推箱子{ class Program { static void Main(string[] args) { //定义一个地图 int x=2,y=1;//小人的位置 int temp = 0; int[,] map = new int[10, 10] { {1,1,.....
分类:
其他好文 时间:
2015-04-06 00:55:30
阅读次数:
220
裸题,最简单fib的应用模板,算是新技能get 吧。 其实和快速幂差不多了,只是矩阵代替的递推式。 1 #include 2 #include 3 #include 4 using namespace std; 5 const int maxn = 1005; 6 struct node...
分类:
其他好文 时间:
2015-04-06 00:53:32
阅读次数:
201
深夜来一发,裸的最小生成树,数据量还挺大,kruskal算法g++始终过不去,c++刚好飘过,这个时候就体现出kruskal和prim的适用范围的不同了,前者适用于稀疏图,后者适用于稠密图。kruskal算法: 1 #include 2 #include 3 using namespace st.....
分类:
其他好文 时间:
2015-04-06 00:52:57
阅读次数:
239
传送门:Gift题意:由n(n#include #include #include #include #include #define LL long long#define N 25#define mod 1000000007using namespace std;/***************...
分类:
其他好文 时间:
2015-04-06 00:51:39
阅读次数:
243
编译不能通过
#include "iostream"
using namespace std;
int _tmain(int argc, _TCHAR* argv[])
{
char *p= "hello" ; //不是把一个字符串赋给了一个字符型的指针,而是把一个字符型的指针指向了字符串的首地址。
strcpy(p,"hel");
cout << p << endl;
return...
分类:
其他好文 时间:
2015-04-05 23:37:28
阅读次数:
334
#include //预处理 注意:iostream不带.hint main(){ std::cout //预处理 注意:iostream不带.h /*名字空间-namespace*/using namespace std; //定义以后,下面程序可以直接使用 int mai...
分类:
编程语言 时间:
2015-04-05 23:28:37
阅读次数:
217
题意:一只小狗要刚好在t时刻从起点都到终点,问可不可以。注意剪枝。 1 #include 2 #include 3 #include 4 using namespace std; 5 int maze[9][9]; 6 bool vis[9][9]; 7 int n,m,t; 8 bool ans;...
分类:
其他好文 时间:
2015-04-05 23:22:08
阅读次数:
186
using System;using System.Collections.Generic;using System.Linq;using System.Text;namespace TheBiz.Common{ public interface IResult { ///...
分类:
其他好文 时间:
2015-04-05 23:17:24
阅读次数:
200