#include "List.h"#include #include using namespace std;#define max(a, b) (a) > (b) ? (a) : (b)// LeetCode, Longest Substring Without Repeating Charact...
分类:
其他好文 时间:
2016-01-23 01:10:10
阅读次数:
187
添加参数配置文件 调用:添加using System.Configuration;引用string factoryName = ConfigurationManager.AppSettings["FactoryName"];进行添加2.添加...
分类:
其他好文 时间:
2016-01-23 01:06:54
阅读次数:
195
题目大意就是取循环小数的循环节思路比较清晰完全模拟人脑做除法,同时分组标记被除数和除数,判断循环节中间需要判断是除尽和没除尽两种情况最后要关注格式,每两个输出要有空行,且第二行前有3个空格一下代码 1 #include 2 #include 3 using namespace std; 4 5...
分类:
其他好文 时间:
2016-01-23 01:04:09
阅读次数:
172
输入:一行,两个空格隔开的整数A,B输出:一个数A+B。#include using namespace std;int main(){ int a,b; cin>>a>>b; coutscanf("%d %d",&a,&b);
分类:
其他好文 时间:
2016-01-23 00:56:38
阅读次数:
165
1 #include 2 #include 3 #include 4 using namespace std; 5 long long sum=0; 6 void print_permutation(int n,int s,int *a,int cur);//n为输出的,s为元素个数,a为数组,c....
分类:
其他好文 时间:
2016-01-23 00:56:18
阅读次数:
173
1 #include 2 #include 3 #include 4 #include 5 using namespace std; 6 const int maxn=150; 7 const int mod=1000000007; 8 int dp[maxn][maxn]; 9 10 i...
分类:
编程语言 时间:
2016-01-22 22:01:28
阅读次数:
340
#include #include using namespace std;bool helper(int row, const vector &m, string s){ if (s.empty()) { return true; } for (int i = 0;...
分类:
其他好文 时间:
2016-01-22 21:37:02
阅读次数:
217
using System;using System.Collections.Generic;using System.Linq;using System.Web;using System.Text;using System.Data;using System.Collections;using My...
分类:
数据库 时间:
2016-01-22 21:09:40
阅读次数:
229
参考文献: 基于混沌序列的粒子群优化算法[J], 孟红计老师#include #include #include using namespace std;#define M 50 //群体数目50#define N 4 //每个粒子的维数4#define NN 500 //迭代次数#defi...
分类:
编程语言 时间:
2016-01-22 21:02:22
阅读次数:
160
C++11 feature version#include #include #include using namespace std;const unsigned maximum = 10000;unsigned loop(unsigned n){ unsigned i = 1; wh...
分类:
其他好文 时间:
2016-01-22 17:29:43
阅读次数:
125