#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
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
这道题我改啊,改啊,交啊,就对了。#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博大精深,路还长着呢第一题;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
很裸的一道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
自己的第一道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 老板娘的促销方案链接: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
题意:输入整数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