码迷,mamicode.com
首页 >  
搜索关键字:spoj    ( 889个结果
SPOJ 1182 Sorted bit sequence
题目链接 题意: 分析: 其实如果会了Ural 1057. Amount of Degrees那道题目,这道题自然也就会了... 我们考虑枚举第$k$个数字的$1$的个数,那么我们需要计算的也就是区间内二进制状态下$1$的个数为$x$的数字个数,这个的求法在上一题中写过了... 我们求到第$k$的数 ...
分类:其他好文   时间:2017-04-06 21:04:23    阅读次数:158
spoj TBATTLE 质因数分解+二分
题目链接:点击传送 TBATTLE - Thor vs Frost Giants #number-theory #sliding-window-1 #number-theory #sliding-window-1 Thor is caught up in a fierce battle with L ...
分类:其他好文   时间:2017-04-02 21:00:08    阅读次数:297
spoj MINSUB 单调栈+二分
题目链接:点击传送 MINSUB - Largest Submatrix no tags no tags You are given an matrix M (consisting of nonnegative integers) and an integer K. For any submatri ...
分类:其他好文   时间:2017-04-02 17:29:46    阅读次数:173
SPOJ - INTSUB 数学
题目链接:点击传送 INTSUB - Interesting Subset no tags no tags You are given a set X = {1, 2, 3, 4, … , 2n-1, 2n} where n is an integer. You have to find the n ...
分类:其他好文   时间:2017-04-02 17:02:13    阅读次数:242
推荐一些信息学奥赛的网站
推荐一些信息学奥赛的网站: OJ类 USACO http://ace.delos.com/usacogate Vijos http://www.vijos.cn/ SGU http://acm.sgu.ru/ URAL http://acm.timus.ru/ SPOJ http://www.spo ...
分类:Web程序   时间:2017-03-31 15:29:31    阅读次数:277
SPOJ BGSHOOT 线段树
BGSHOOT - Shoot and kill The problem is about Mr.BG who is a great hunter. Today he has gone to a dense forest for hunting and killing animals. Sadly, ...
分类:其他好文   时间:2017-03-20 20:41:19    阅读次数:196
BZOJ 1982: [Spoj 2021]Moving Pebbles [博弈论 对称]
给你N堆Stone,两个人玩游戏. 每次任选一堆,首先拿掉至少一个石头,然后移动任意个石子到任意堆中. 谁不能移动了,谁就输了... 以前在poj做过已经忘记了... 构造对称,选最多的一堆往其他堆分构造对称局面,先手必胜 一开始就对称,先手必败 ...
分类:其他好文   时间:2017-03-15 00:15:59    阅读次数:150
Distinct Substrings(spoj 694)
题意:要求不同子串的个数 ...
分类:其他好文   时间:2017-03-12 23:42:01    阅读次数:185
【SPOJ - GSS2】Can you answer these queries II(线段树)
区间连续不重复子段最大值,要维护历史的最大值和当前的最大值,打两个lazy,离线 #include<cstdio> #include<cstring> #include<algorithm> #define maxn 150000 #define rep(i,l,r) for(int i=l;i<= ...
分类:其他好文   时间:2017-03-10 16:18:05    阅读次数:217
SPOJ GSS2 - Can you answer these queries II(线段树 区间修改+区间查询)(后缀和)
GSS2 - Can you answer these queries II #tree #tree Being a completist and a simplist, kid Yang Zhe cannot solve but get Wrong Answer from most of the ...
分类:其他好文   时间:2017-03-10 12:45:06    阅读次数:280
889条   上一页 1 ... 36 37 38 39 40 ... 89 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!