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 ...
题目大意:平面上一堆点,用两条平行于坐标轴的直线将其分为四部分,使得点数最多的一部分最少 第一维枚举,第二维三分,点集用两棵树状数组维护 #include<bits/stdc++.h> #define maxn 100010 using namespace std; inline int read( ...
分类:
其他好文 时间:
2016-04-03 15:57:22
阅读次数:
279
最水的概率期望,推荐算法合集之《浅析竞赛中一类数学期望问题的解决方法》 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
题意:求(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
一、删除前缀 '*' 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
///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
最近在看这个:learncpp.com主要是一些我自己容易忽视的地方记一些笔记在下面,章节序号对应主页的章节序号,还有错漏地方请不吝赐教 CH1.3aRule: Avoid "using" statement outside of a function body. CH1.10The preproc ...
分类:
编程语言 时间:
2016-04-03 13:10:11
阅读次数:
423
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
经典状压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
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 ...