码迷,mamicode.com
首页 >  
搜索关键字:using    ( 53562个结果
算法提高 新建Microsoft Word文档
1 #include 2 #include 3 #include 4 #include 5 using namespace std; 6 const char s2[15] ="Successful"; 7 const char s3[15] ="Failed"; 8 int main() 9 {....
分类:编程语言   时间:2016-01-27 00:46:36    阅读次数:248
LightOJ1191 Bar Codes(DP)
题目大概是,二进制数可以看作是由几段连续的0和连续的1组成,问:n位没有前导0的 且 共用k段连续0/1组成的 且 连续0/1个数不超过m的二进制数有多少个。用dp[n][k][m]表示问题dp[i][1][j]=1 (i 2 #include 3 using namespace std; 4 lo...
分类:其他好文   时间:2016-01-26 22:06:23    阅读次数:236
Codeforces Round #340 (Div. 2) B. Chocolate
题意:一段01串 分割成段 每段只能有一个1 问一段串有多少种分割方式思路:两个1之间有一个0就有两种分割方式,然后根据分步乘法原理来做、(不过这里有一组0 1 0这种数据的话就不好直接处理,所以遇到第一个1才开始标记) 1 #include 2 using namespace std; 3 int...
分类:其他好文   时间:2016-01-26 22:04:03    阅读次数:142
二分图题目泛做(为了对应陈学姐的课件)
题1:BZOJ1854 SCOI2010游戏每个属性x,y分别向i连条边,匹配到不能匹配为止。输出即可。 1 #include 2 #include 3 #include 4 #include 5 #include 6 7 using namespace std; 8 9 const ...
分类:其他好文   时间:2016-01-26 22:01:44    阅读次数:153
spfa
1 #include 2 #include 3 #include 4 #include 5 #include 6 #include 7 using namespace std; 8 #define N 200000+5 9 const int inf=0x3f3f3f3f;10 struct no....
分类:其他好文   时间:2016-01-26 21:39:26    阅读次数:293
HDU 1064 Financial Management
很简单附代码 1 #include 2 #include 3 using namespace std; 4 5 6 int main() 7 { 8 double a=0; 9 double sum=0;10 //freopen("C:\\CODE\\in.txt",...
分类:其他好文   时间:2016-01-26 20:11:52    阅读次数:181
apache 更换掉80端口报错
如果:apache 更换掉80端口启动报错(报错内容如下文):httpd: Could not reliably determine the server's fully qualified domain name, using 127.0.0.1 for ServerName(13)Permiss...
分类:Web程序   时间:2016-01-26 18:24:24    阅读次数:348
关卡得分程序
//一个游戏,前20关是每一关自身的分数,//21-30关每一关是10分//31-40关,每一关是20分//41-49关,每一关是30分//第50关,是100//输入你现在闯到的关卡数,求你现在拥有的分数using System;using System.Collections.Generic;us...
分类:其他好文   时间:2016-01-26 18:23:15    阅读次数:268
关于C++数组的几点讨论
数组名为何物?int main(){ int number[] = { 1, 2, 3, 4, 5 }; int *pnumber = number; cout using namespace std;int max(int a[], int size);//size是数组的大小i...
分类:编程语言   时间:2016-01-26 18:22:56    阅读次数:193
excel数据导入到sqlserver中---------工作笔记
调用页面:using System;using System.Collections.Generic;using System.Linq;using System.Web;using System.Web.UI;using System.Web.UI.WebControls;using JuMi.B...
分类:数据库   时间:2016-01-26 18:22:50    阅读次数:296
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!