码迷,mamicode.com
首页 >  
搜索关键字:using    ( 53562个结果
12558 - Egyptian Fractions (HARD version)
#include #include #include #include using namespace std; typedef long long LL; const int maxn=10010; int maxd,t,tt; set sk; LL ans[maxn],v[maxn]; LL gcd(LL a,LL b){ return b?gcd(b, a%b):a; } LL ge...
分类:其他好文   时间:2015-04-28 09:48:39    阅读次数:105
uva 10131 Is Bigger Smarter? dag 最长路 加路径还原
#include #include #include #include #include #include #include #include #include #include #define INF 100000000 using namespace std; struct node{ int x,y; }; node a[1005]; int n; int ma[1...
分类:其他好文   时间:2015-04-28 09:47:39    阅读次数:121
杭电ACM1249——三角形
三角形平方平面,推到一下,就可以得出公式:F(1) = 2. F(2) = 8; F(n >= 3) = F(n - 1) + 6 * (n - 1)。 AC代码: #include using namespace std; int a[10005]; int main() { a[0] = 0; a[1] = 2; a[2] = 8; for(int i = 3; i < ...
分类:其他好文   时间:2015-04-28 09:40:16    阅读次数:108
字典树模板
#include using namespace std; const int MA=10; const char MU='0'; struct dian { int sum; dian *next[MA]; dian ()//构造函数 { sum=0; for(int i=0;i<MA;++i) next[i...
分类:其他好文   时间:2015-04-28 09:39:59    阅读次数:129
杭电ACM1248——寒冰王座
简单的完全背包。 将三种物品的价格可以理解成既是价值,又是重量。 简单动态规划 AC代码: #include #include using namespace std; int dp[10005]; int a[3] = {150, 200, 350}; int b[3] = {150, 200, 350}; int max(int x, int y) { return x >...
分类:其他好文   时间:2015-04-28 09:37:58    阅读次数:120
C#中调用PowerShell代码
在C#中调用PowerShell代码,很多时候Add是不好使的!要用AddScript!记录一下! using (Runspace runspace = RunspaceFactory.CreateRunspace()) { try ...
分类:Windows程序   时间:2015-04-28 09:34:44    阅读次数:132
hdu 1026 bfs+记录路径
题意:从0,0点出发到n-1,m-1点,路上的数字代表要在这个点额外待多少秒,求最短的路递归输出路径即可 1 #include 2 #include 3 #include 4 #include 5 #include 6 #include 7 #include 8 using name...
分类:其他好文   时间:2015-04-28 09:31:14    阅读次数:133
Solve Error Debug Assertion Failed Expression vector iterators incompatible Using PCL in Release Mode of VS2010
When using PCL 1.4.0 in the release mode building under VS2010, we might sometime get the error "Debug Assertion Failed Expression vector iterators in...
分类:其他好文   时间:2015-04-28 07:06:53    阅读次数:258
数组、数组链表ArrayList和List、Dictionary、SortedList、Hashtable
using System;using System.Collections.Generic;//数值链表的头文件using System.Linq;using System.Text;using System.Collections;//数值链表的头文件namespace ConsoleApplic...
分类:编程语言   时间:2015-04-28 07:06:20    阅读次数:107
K皇后问题递归解法
1 #include 2 #include 3 using namespace std; 4 5 bool check(int row,int *a) 6 { 7 for(int i=0;i>k;50 int num=0;51 findpos(0,a,num,k);52 ...
分类:其他好文   时间:2015-04-28 01:43:53    阅读次数:173
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!