[root@linux-node1~]#cd/usr/local/src/[root@linux-node1src]#cdkeystone-2014.1[root@linux-node1keystone-2014.1]#pythonsetup.pyinstall[root@linux-node1keystone-2014.1]#cdetc/[root@linux-node1etc]#ll总用量72-rw-rw-r--11004100415404月1717:19default_catalog.templ..
分类:
其他好文 时间:
2014-08-18 01:37:33
阅读次数:
217
HDU Poor Hanamichi
题目链接
思路:直接从l往上找判断即可
代码:
#include
#include
#include
#include
using namespace std;
typedef long long ll;
int t;
ll l, r;
bool judge(ll num) {
ll flag = 1;
l...
分类:
其他好文 时间:
2014-08-17 22:49:22
阅读次数:
238
反向标记是错的,要对矩形进行拆分#include #include #include #include typedef long long LL;using namespace std;#define lson rt seg;void pushup(int rt, int l, int r) { ....
分类:
其他好文 时间:
2014-08-17 14:16:52
阅读次数:
173
合并排序再枚举。题意问五个数组中各抽一个加起来 和是否为 0。開始想用 200*200*200 和 200*200 比。果然TLE了。后来知道 得 200*200,200*200 ,200 。先200*200 的枚举,排序,去重。然后三个元素加起来,微调 两个 200*200 的指针。这题用 %ll...
分类:
其他好文 时间:
2014-08-17 11:42:12
阅读次数:
202
linux中ls、ls -l、ls -al、ll命令...
分类:
系统相关 时间:
2014-08-16 22:34:41
阅读次数:
346
解题报告
题意:
给定的矩形里面有镂空的矩阵,求矩阵面积并。
思路:
直接把一个图形拆成4个矩形,进行面积并。
扫描线+线段树
#include
#include
#include
#include
#define LL __int64
using namespace std;
struct Seg
{
int lx,rx,h,v;
friend bool op...
分类:
其他好文 时间:
2014-08-16 21:10:41
阅读次数:
207
看着题意:[1,i]中等于a[i]的个数要大于[,jn]中等于a[j]的个数 且i
int n;
int aa[1000000 + 55];
int bb[1000000 + 55];
int c[1000000 + 55];
map mp;
ll lowbit(ll x) {
return x&(-x);
}
void add(int i,int val) {
while...
分类:
其他好文 时间:
2014-08-16 21:09:01
阅读次数:
194
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#pragma comment(linker, "/STACK:1024000000");
#define EPS (1e-6)
#define LL long long
#de...
分类:
其他好文 时间:
2014-08-16 19:48:41
阅读次数:
239
题目链接:点击打开链接
题意就是求最大面积
枚举每个柱子作为起点
然后二分两边长度。 求个区间最值。
#include
#include
#include
using namespace std;
#define ll long long
#define N 100100
inline bool rd(int &n){
int x = 0, tmp = 1;
...
分类:
其他好文 时间:
2014-08-16 18:34:41
阅读次数:
228
原文地址:
对于一般的求a^b%c的值,当a,b都在long long范围内,c在1e9的时候,都可以用快速幂取模进行求解。
LL powerMod(LL x, LL k, LL m){
LL res = 1;
while(x %= m, k){
if(k&1) res *= x, res %= m;
x *= x, k...
分类:
其他好文 时间:
2014-08-16 17:08:50
阅读次数:
291