... 1 #include<bits/stdc++.h> 2 using namespace std; 3 int read(){ 4 int x=0,f=1;char ch=getchar(); 5 while(ch<'0'||ch>'9'){if(ch=='-')f=-1;ch=getchar ...
分类:
其他好文 时间:
2016-06-23 22:20:41
阅读次数:
302
基础平衡树操作,del+insert 这道题就是还要记录一下平衡树中的编号和对应的书的编号,注意这两个都不是单调的 写平衡树的时候,老是脑子有病。。总觉得平衡树里的标号是单调的。。 这个也是模板没有修改前写的,常数较大。。。 1 #include<bits/stdc++.h> 2 using nam ...
分类:
其他好文 时间:
2016-06-23 22:14:39
阅读次数:
267
描述 http://www.lydsy.com/JudgeOnline/problem.php?id=1622 给出多个文本串和模式串,求每个文本串中有多少模式串. 分析 直接暴力... 1 #include <bits/stdc++.h> 2 using namespace std; 3 4 co ...
分类:
其他好文 时间:
2016-06-23 22:07:33
阅读次数:
163
题目大意:维护一种数据结构,支持下列操作: 1.将一个区间加上一个数 2.将一个区间翻转 3.询问一段区间的最大值 感受:傻叉题还敢说自己是序列终结者O__O "… 这道题写的时候还没修改我的splay模板,所以常数较大。。 1 #include<bits/stdc++.h> 2 using nam ...
分类:
其他好文 时间:
2016-06-23 21:55:44
阅读次数:
172
系统更新失败,反复重启还是不行,那是不是下载下来的补丁没用了呢??所以我们先要删除Windows更新的缓存文件!在做以下操作之前,首先我们要确认系统内的windows update & BITS服务设置是否开启。 检查方法: 1、按“Win+R”组合键打开运行,输入“services.msc”,点击 ...
题目链接https://leetcode.com/problems/reverse-bits/题目原文
Reverse bits of a given 32 bits unsigned integer.
For example, given input 43261596 (represented in binary as 00000010100101000001111010011100...
分类:
编程语言 时间:
2016-06-21 07:29:03
阅读次数:
439
我猜我这样继续做水题会狗带 和模拟赛的题很像,贪心搞一下。 1 #include<bits/stdc++.h> 2 using namespace std; 3 int read(){ 4 int x=0,f=1;char ch=getchar(); 5 while(ch<'0'||ch>'9'){ ...
分类:
其他好文 时间:
2016-06-18 18:30:53
阅读次数:
233
觉得是贪心,但是一开始不太肯定。。。然后就A了 一个点对它的父亲的贡献就是自己的权值加儿子的个数 1 #include<bits/stdc++.h> 2 using namespace std; 3 int read(){ 4 int x=0,f=1;char ch=getchar(); 5 whi ...
分类:
其他好文 时间:
2016-06-18 14:06:16
阅读次数:
161
The minimum interval between the leading edges of the start bits of two consecutive characters sent by the terminal to the ICC shall be between 12 and ...
分类:
其他好文 时间:
2016-06-17 00:36:27
阅读次数:
230
描述 http://www.lydsy.com/JudgeOnline/problem.php?id=1625 01背包裸题. p.s.随便点开一道就是水题... 分析 ... 1 #include <bits/stdc++.h> 2 using namespace std; 3 4 const i ...
分类:
其他好文 时间:
2016-06-13 19:11:00
阅读次数:
153