码迷,mamicode.com
首页 >  
搜索关键字:using    ( 53562个结果
C# ListBox
1 using System; 2 using System.Collections.Generic; 3 using System.ComponentModel; 4 using System.Data; 5 using System.Drawing; 6 using System.Linq; 7 ...
分类:Windows程序   时间:2016-04-03 17:13:02    阅读次数:224
usaco 2016 Feb 负载平衡
题目大意:平面上一堆点,用两条平行于坐标轴的直线将其分为四部分,使得点数最多的一部分最少 第一维枚举,第二维三分,点集用两棵树状数组维护 #include<bits/stdc++.h> #define maxn 100010 using namespace std; inline int read( ...
分类:其他好文   时间:2016-04-03 15:57:22    阅读次数:279
【BZOJ3036】绿豆蛙的归宿 概率与期望
最水的概率期望,推荐算法合集之《浅析竞赛中一类数学期望问题的解决方法》 1 #include <iostream> 2 #include <cstdio> 3 using namespace std; 4 #define N 100010 5 #define M 200020 6 struct E ...
分类:其他好文   时间:2016-04-03 15:51:18    阅读次数:165
hdu1695 GCD(莫比乌斯反演)
题意:求(1,b)区间和(1,d)区间里面gcd(x, y) = k的数的对数(1 #include #include using namespace std; const int N=100000+10; int u[N],prime[N]; bool vis[N]; void init() { ... ...
分类:其他好文   时间:2016-04-03 14:40:14    阅读次数:259
关于字符串 “*****AB**C*D*****” 中前缀、后缀和中间 '*' 的处理
一、删除前缀 '*' 1 #include<iostream> 2 #include<cstdio> 3 4 using namespace std; 5 6 //主函数 7 int main() 8 { 9 char chr[20],*b,*p; //字符串缓冲区;字符串头指针;字符串临时指针 1 ...
分类:其他好文   时间:2016-04-03 14:29:15    阅读次数:216
BFS(广度优先搜索)
///POJ 3278 Catch That Cow #include<stdio.h>#include<string.h>#include<iostream>#include<queue>using namespace std; int step[100010];int vis[100010];q ...
分类:其他好文   时间:2016-04-03 14:26:57    阅读次数:124
C++笔记(to be cont'd)
最近在看这个:learncpp.com主要是一些我自己容易忽视的地方记一些笔记在下面,章节序号对应主页的章节序号,还有错漏地方请不吝赐教 CH1.3aRule: Avoid "using" statement outside of a function body. CH1.10The preproc ...
分类:编程语言   时间:2016-04-03 13:10:11    阅读次数:423
ImportError with IronPython in C#
I was using IronPython to execute python code inside my C# implementation lately, and I encountered this error when trying to use xmlrpclib: It was re ...
分类:编程语言   时间:2016-04-03 13:03:34    阅读次数:635
【BZOJ1087】 [SCOI2005]互不侵犯King 状压DP
经典状压DP. f[i][j][k]=sum(f[i-1][j-cnt[k]][k]); cnt[i]放置情况为i时的国王数量 前I行放置情况为k时国王数量为J 1 #include <iostream> 2 #include <cstdio> 3 using namespace std; 4 #d ...
分类:其他好文   时间:2016-04-03 10:27:30    阅读次数:184
C# 窗体
1 using System; 2 using System.Collections.Generic; 3 using System.ComponentModel; 4 using System.Data; 5 using System.Drawing; 6 using System.Linq; 7 ...
分类:Windows程序   时间:2016-04-02 22:53:21    阅读次数:272
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!