码迷,mamicode.com
首页 >  
搜索关键字:namespace    ( 41927个结果
USACO Section 1.2PROB Transformations
挺有趣的一道题,呵呵,不算难/*ID: jusonal1PROG: transformLANG: C++*/#include #include #include #include #include #include #include using namespace std;const int max...
分类:其他好文   时间:2014-10-30 01:41:37    阅读次数:198
noip2008T2 火柴棒等式
只会做这种弱智的水题了怎么办。。范围太小枚举便可若范围n#include #include #include #include using namespace std;int n;int pd[10000]; int a[10]={6,2,5,5,4,5,6,3,7,6};int b[4][6];i...
分类:其他好文   时间:2014-10-30 01:40:04    阅读次数:134
[C#]CSVHelper
关键代码:using System.Data; using System.IO; using System.Text; namespace YanZhiwei.DotNet2.Utilities.Common { /// /// CSV文件转换类 /// public static class CS...
分类:Windows程序   时间:2014-10-30 01:39:22    阅读次数:716
UVa 1585 - Score
题目:给你一个X和O组成的串,每个O有一个分,为他前面连续的O个数+1,求所有O的分数和。 分析:dp,简单题。lis类似物,每个位记录连续的个数即可。 说明:快500了(⊙_⊙)。 #include #include #include #include using namespace std; char str[81]; int score[81]; int main()...
分类:其他好文   时间:2014-10-30 00:15:02    阅读次数:169
WCF的异步调用
1.服务契约namespace Contracts{ [ServiceContract] public interface ICalculator { [OperationContract] double Add(double x,double y); ...
分类:其他好文   时间:2014-10-30 00:09:15    阅读次数:231
HDU1755
这道题直接暴力枚举复杂度为 n!*m但是k 2 #include 3 #include 4 5 using namespace std; 6 7 int vis[10] , n , m , x , k , num[10] , dp[102][102]; 8 const int INF = 1...
分类:其他好文   时间:2014-10-29 23:57:20    阅读次数:233
http://poj.org/problem?id=2112_网络流
1 #include 2 #include 3 #include 4 #include 5 #include 6 using namespace std; 7 8 #define MAX 300 9 #define INF 1000000010 int dis[MAX][MAX]; // 任意...
分类:Web程序   时间:2014-10-29 23:41:31    阅读次数:234
HDU 1044
http://acm.hdu.edu.cn/showproblem.php?pid=1044代码题,没什么好说的,先预处理出两点间距离,然后dfs搜一下找最大值#include #include #include #include using namespace std;const int INF=...
分类:其他好文   时间:2014-10-29 23:37:58    阅读次数:199
STL——静态常量整数成员在class内部直接初始化
如果class内含const static integral data member,那么根据C++标志规格,我们可以在class之内直接给予初值。所谓integral泛指所有的整数型别(包括浮点数),不单只是指int,下面是一个例子:#includeusing namespace std;temp...
分类:其他好文   时间:2014-10-29 23:33:08    阅读次数:356
poj 2352 stars 树状数组
这个题目刚开始没读懂,以为就是二维树状数组求上角矩阵和。 其实根本不用二维,因为数据已经有序,每次求的时候都是X方向上的比较。不过误打误撞也写了个离散化的代码。 WA: #include #include #include #include #include using namespace std; #define N 15000 int c[N][N],n,mm; int d[N];...
分类:编程语言   时间:2014-10-29 22:25:02    阅读次数:295
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!