---恢复内容开始---可持久化线段树http://www.lydsy.com/JudgeOnline/problem.php?id=4299/************************************************************** Problem: 429...
分类:
其他好文 时间:
2015-10-14 09:02:30
阅读次数:
369
题目链接:https://www.codechef.com/problems/IITK1P10大概是:修改点值,求子树节点为0有多少个,DFS序后,BIT 询问,修改1#include23usingnamespacestd;4typedeflonglongll;56#defineN2234567ll...
分类:
其他好文 时间:
2015-09-23 01:10:22
阅读次数:
139
个人赛的题
出不来
还是没有想清楚!
#include
using namespace std;
typedef long long ll;
ll gcd(ll a,ll b){
return b==0?a:gcd(b,a%b);
}
int main()
{
int t;
scanf("%d",&t);
while(t--){
ll a,b;...
分类:
其他好文 时间:
2015-08-30 15:51:45
阅读次数:
166
点击打开题目链接https://www.codechef.com/problems/SETDIFF
Set Difference
Problem code: SETDIFF
SUBMIT
ALL SUBMISSIONS
All submission...
分类:
其他好文 时间:
2015-08-29 23:17:19
阅读次数:
181
the best way to restore is to replace all the question marks by latin letters in such a way that the total sum of occurrences of all the strings from her dictionary in it is maximal....
分类:
其他好文 时间:
2015-08-19 16:44:56
阅读次数:
212
BZOJ 3514 Codechef MARCH14 GERALD07加强版 LCT+主席树...
分类:
其他好文 时间:
2015-08-13 10:05:58
阅读次数:
232
程序员最应去的网站有哪些?要想成为优秀的程序猿,不仅要有一定天分,常与大神交流,自己多加练习才是正确的方法。下面是一些Quora用户推荐的国外网站,与广大程序猿或者希望学习编程的朋友们分享:1)编程练习和竞赛类http://www.codechef.com/http://www.spoj.com/p/http://..
分类:
Web程序 时间:
2015-08-02 23:34:05
阅读次数:
144
hzwer上少有的几道需要建一下模的 要不是有这么几道题 我都觉得lct只会考裸题了呢题解看hzwer吧http://hzwer.com/4358.html唯一蛋疼的就是为了处理0这个呵呵的位置,和严格小于,我把ntr数组全部+2,然后l+1,这样建树的时候就要写m+2了= =好蛋疼 1 #inc....
分类:
其他好文 时间:
2015-07-21 22:03:31
阅读次数:
125
终于补出这道:一直耽搁到现在找到一个代码可读性很好的分块temp;题意:给一个长度为n 的数组 A,Q次询问,区间相等数的最大范围是多少?数据范围都是10e5;当然知道分块了;传统分块看各种累;找了一份很好的tmp 2 3 using namespace std; 4 const int N =1....
分类:
其他好文 时间:
2015-05-26 06:44:41
阅读次数:
121
随便瞎写,其实没做出多少题:Chef and Cake题目大概是用输入的数生成 一个数组并且生成出q个【X,Y】的询问,数组长度N 表示 I in【X,X+K-1] 范围 min(A[i]);A[i] 生成的数组。询问X,Y的区间最小值 =Mi年(dp[x],dp[y-k+1]);求出每个dp;这里...
分类:
其他好文 时间:
2015-05-19 20:50:55
阅读次数:
231