码迷,mamicode.com
首页 >  
搜索关键字:int    ( 143001个结果
MySQL 联合索引测试
搭建测试环境1:创建表CREATE TABLE tab_index(id int(5),age int(3),dte datetime);2:插入测试数据INSERT INTO tab_indexVALUES(1,'2012-05-13',23);INSERT INTO tab_indexVALUE...
分类:数据库   时间:2015-04-15 22:48:10    阅读次数:254
hdu 1269 tarjan求强连通分量
tarjan求强连通分量的裸题复习,直接上代码: 1 #include 2 #include 3 #include 4 using namespace std; 5 6 const int N = 10001; 7 const int M = 100000; 8 int dfn[N], lo...
分类:其他好文   时间:2015-04-15 22:46:52    阅读次数:175
链表的插入、删除
结构体:1 typedef struct Student{2 int m_val;3 struct Student* m_next;4 }NODE,*pNODE;链表的插入: 1 //尾部插入 2 void linkInitTail(pNODE* pphead) 3 { 4 ...
分类:其他好文   时间:2015-04-15 22:46:49    阅读次数:135
高精度乘法
#include#includeconst int maxn=1000;int mul(char a[],char b[],int c[]){ int la=strlen(a); int lb=strlen(b); int lc=la+lb-1; int ta[maxn],tb[maxn]; for...
分类:其他好文   时间:2015-04-15 22:39:37    阅读次数:150
nyoj 1057寻找最大数(三) 贪心
#include #include int main(){ char temp,str[20]; int k,len,mark,flag,j; while(scanf("%s %d",str,&k)!=EOF){ len=strlen(str); if(k==0) { puts(str); continue; } for(int i=0;i<len;i++...
分类:其他好文   时间:2015-04-15 21:34:42    阅读次数:139
POJ 3061
#include #include #include #include #include using namespace std; #define maxn 100000 #define INF 0x7ffffff int n, S, a[maxn]; void solve() { int s = 0, t = 0; int res = INF; int s...
分类:其他好文   时间:2015-04-15 21:28:40    阅读次数:105
HDU 折线分割平面
当第n条线分割前n-1条线的未交叉线时分割平面最多#include#include__int64 s;int main(){int c,n;scanf("%d",&c);while(c--){scanf("%d",&n);s=n*(2*n-1)+1;printf("%I64d\n",s);}retu...
分类:其他好文   时间:2015-04-15 21:24:22    阅读次数:114
首尾相接最大子数组和
#includeusing namespace std;#define Nu 5int main(){ int a[Nu]={1,-2,5,-3,6}; cout<<"随机产生数组为:"; for(int i=0;i<Nu;i++) cout<<a[i]<<" ";...
分类:编程语言   时间:2015-04-15 21:24:05    阅读次数:141
第一章实验
#include #include#includeint main() { int i=0,j=0,n;char str[10];char strsd[100];char cmd[20][10]; char fun[20][50]; ...
分类:其他好文   时间:2015-04-15 21:23:07    阅读次数:119
C. Polycarpus' Dice
在每个位置讨论一下最大值最小值的取值范围就行 1 #include 2 #include 3 #define maxn 200003 4 using namespace std; 5 typedef long long LL; 6 LL a[maxn],b[maxn]; 7 8 int main(....
分类:其他好文   时间:2015-04-15 21:22:22    阅读次数:129
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!