码迷,mamicode.com
首页 >  
搜索关键字:using    ( 53562个结果
bzoj 1191: [HNOI2006]超级英雄Hero
1 #include<cstdio> 2 #include<iostream> 3 #include<cstring> 4 #define M 1005 5 using namespace std; 6 int pi[M],n,m,a[M][2],f[M],i; 7 bool xun(int a1)
分类:其他好文   时间:2016-03-04 00:16:30    阅读次数:212
插入排序
1 #include"iostream" 2 #define N 10 3 using namespace std; 4 void excha(int &a,int &b); 5 int main(){ 6 int a[N]={1,3,2,4,5,6,7,8,9,0}; 7 int i,j,min;
分类:编程语言   时间:2016-03-04 00:14:23    阅读次数:213
一些LCT裸题
又来回炉lct了= = [bzoj3514]: Codechef MARCH14 GERALD07加强版 模版题。常见姿势,把边也当成点。 1 #include<cstdio> 2 #include<iostream> 3 #include<cstring> 4 using namespace st
分类:其他好文   时间:2016-03-03 23:04:35    阅读次数:531
PAT1069. The Black Hole of Numbers
//这是到水题,之前因为四位数的原因一直不能A,看了别人的程序,才明白,不够四位的时候没考虑到,坑啊。。。。。脸打肿 #include<cstdio>#include<algorithm>using namespace std;int main(){ //freopen("input.txt","r
分类:其他好文   时间:2016-03-03 22:54:19    阅读次数:307
插入排序
1 #include"iostream" 2 #define N 10 3 using namespace std; 4 void excha(int &a,int &b); 5 int main(){ 6 int a[N]={0,2,1,3,4,5,6,7,8,9}; 7 int min; 8 i
分类:编程语言   时间:2016-03-03 22:50:15    阅读次数:215
HDU 2191多重背包问题、
1 #include<cstdio> 2 #include<cmath> 3 #include<iostream> 4 #include<cstring> 5 const int qq=2000+50; 6 int v[qq],w[qq],dp[qq]; 7 using namespace std;
分类:其他好文   时间:2016-03-03 22:45:46    阅读次数:226
1049 counting ones
从所有一位数包含的1开始向上递推所有k位数包含的1,递推式: ak = ak-1 * 10 + pow(10,k-1); AC代码: #include <vector> #include <cstdio> using namespace std; int main(){ int n; vector<
分类:其他好文   时间:2016-03-03 21:23:27    阅读次数:158
C#链接MySQL
using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.
分类:数据库   时间:2016-03-03 20:57:32    阅读次数:233
cctype头文件(字符处理库)的使用
C++ 中cctype头文件的使用 头文件cctype(字符处理库)中定义了有关字符判断与处理的库函数,使用前要包含头文件: #include <cctype> using namespace std; cctype头文件中的常用函数列表如下: 函数名称 返回值isalnum() 如果参数是字母数字
分类:其他好文   时间:2016-03-03 19:19:15    阅读次数:139
循环三角形
什么是循环三角形 如下所示 #include <iostream> using namespace std; int main( ) { int a[100][100]={0}; //数组元素默认是0 int n,m; cin>>n; //n是输入的数组大小(行数和列数) while(n<0||n>
分类:其他好文   时间:2016-03-03 19:14:56    阅读次数:186
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!