码迷,mamicode.com
首页 >  
搜索关键字:namespace    ( 41927个结果
hdu5137 枚举删点
#include#include#includeusing namespace std;const int maxn = 32;const int INF = 99999999;int map[maxn][maxn],n,m,dis[maxn][maxn];int max(int x,int y){...
分类:其他好文   时间:2015-10-14 00:08:09    阅读次数:218
UVA10651
1 // 头一次写这种带位运算的题,不会啊 > 5 #include 6 #include 7 #define MAX 4500 8 using namespace std; 9 int ans,vis[MAX];10 bool ck(int x,int pos)11 {12 if( (...
分类:其他好文   时间:2015-10-13 22:56:02    阅读次数:310
ZOJ 2015 10月份 月赛 3911 Prime Query
这道题我改啊,改啊,交啊,就对了。#include #include #include #include#include using namespace std;const int N = 10000005;const int M = 100005;int a[N];int p[M];int tre...
分类:其他好文   时间:2015-10-13 22:51:16    阅读次数:274
简单DP入门四连发
复习一下一直不太懂的dp.dp博大精深,路还长着呢第一题;http://acm.hdu.edu.cn/showproblem.php?pid=2084从下往上就是水题 1 #include 2 using namespace std; 3 int max(int x,int y) 4 { 5 ...
分类:其他好文   时间:2015-10-13 22:39:34    阅读次数:196
Uva(10986)
很裸的一道dijk算法题,因为顶点数太多无法用邻接矩阵表示,所以要用临界表来表示AC代码#include#include#include#include #include#includeusing namespace std;using namespace std;const int maxn=2*...
分类:其他好文   时间:2015-10-13 22:38:20    阅读次数:124
对称矩阵 一个简单的小把戏
using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Threading.Tasks;namespace ConsoleApplication13{ clas...
分类:其他好文   时间:2015-10-13 22:37:27    阅读次数:201
poj3259(spfa)
自己的第一道spfa,纪念一下,顺便转载一下spfa的原理。先po代码:#include #include using namespace std;const int MAX = 999999;const int MAXN = 501;int minimum(int a, int b){ re...
分类:其他好文   时间:2015-10-13 22:31:16    阅读次数:265
vijosP1289 老板娘的促销方案
vijosP1289 老板娘的促销方案链接:https://vijos.org/p/1289【思路】 组合公式+高精度。 如果n-m 2 using namespace std; 3 struct Bign{ 4 int len; 5 long long N[101]; 6 ...
分类:其他好文   时间:2015-10-13 21:10:21    阅读次数:263
uva 202 Repeating Decimals
题意:输入整数a和b,(0 2 #include 3 #include 4 #include 5 #include 6 using namespace std; 7 8 int vis[3005]; 9 10 int main(){11 int a,b;12 while(cin>>...
分类:其他好文   时间:2015-10-13 21:05:09    阅读次数:201
有关圆的计算。
using System;using System.Collections.Generic;using System.Linq;using System.Text;namespace 运算符{ class Program { const double pai = 3.1...
分类:其他好文   时间:2015-10-13 20:56:32    阅读次数:242
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!