E-COM-NET
首页
在线工具
Layui镜像站
SUI文档
联系我们
推荐频道
Java
PHP
C++
C
C#
Python
Ruby
go语言
Scala
Servlet
Vue
MySQL
NoSQL
Redis
CSS
Oracle
SQL Server
DB2
HBase
Http
HTML5
Spring
Ajax
Jquery
JavaScript
Json
XML
NodeJs
mybatis
Hibernate
算法
设计模式
shell
数据结构
大数据
JS
消息中间件
正则表达式
Tomcat
SQL
Nginx
Shiro
Maven
Linux
rope
HDU 4477 HDOJ Cut the
rope
II
http://acm.hdu.edu.cn/showproblem.php?pid=4477 题目意思: 给你一个长度为n的线段,要求至少分成两段,使得每段的长度各不相同。问分解的方案数。 首先考虑,若分解成k段,则n的值至少为1+2+3+4+...+k=(k+1)*k/2 所以本题k的最大值为315 考虑dp[k][n]表示长度为n的线段分解成k段的方案数。 其中分为两种情况
·
2015-11-13 01:54
HDU
ural 1020
Rope
1 #include <cstdio> 2 #include <cstring> 3 #include <cmath> 4 #include <algorithm> 5 #define maxn 2000 6 using namespace std; 7 const double pi=acos(-1.0); 8
·
2015-11-13 01:49
r
UVALive 6145 Version Controlled IDE(可持久化treap、
rope
)
题目链接:https://icpcarchive.ecs.baylor.edu/index.php?option=com_onlinejudge&Itemid=8&page=show_problem&problem=4156 题目拷贝难度大我就不复制了。 题目大意:维护一个字符串,要求支持插入、删除操作,还有输出第 i 次操作后的某个子串。强制在线。
·
2015-11-12 17:39
version
ACM学习历程—HDU1392 Surround the Trees(计算几何)
A peasant wants to buy a
rope
to surround all these trees.
·
2015-11-12 11:02
round
KeepCode1 解题思路及代码实现
HDUOJ 题目编号: ID Origin Title Problem A HDU 4475 Downward paths Problem B HDU 4476 Cut the
rope
·
2015-11-11 17:40
code
手把手教你入门EaselJS做HTML5动画
DEMO演示链接这个demo的最终效果是游戏割绳子(Cut the
Rope
)中的小青蛙的动画表情。
·
2015-11-09 12:15
html5
【STL】list基础
非标准序列容器slist和
rope
。slist是一个单向链表,
rope
本质上是一个重型字符串。 非标准关联容器hash_set、hash_mult
·
2015-11-02 18:26
list
码农干货系列【3】--割绳子(cut the
rope
)制作点滴:旋转(rotation)
旋转 在大量的游戏开发过程当中,旋转是经常被开发者使用的,通常需要得到旋转后目标点的坐标。旋转分很多种类:2D游戏世界中,以某一点为旋转目标;3D游戏世界中,以轴为旋转目标。所以本文将旋转分为四类,涵盖所有旋转的情况: 绕点旋转(2D) 绕坐标轴(x/y/z)旋转(3D) 绕坐标轴的平行轴旋转(3D) 绕任意轴旋转(3D) 绕点旋转 在绕点旋转的时候,需要传入
·
2015-11-02 13:45
cut
Cut the
rope
pid=651 描述We have a
rope
whose length is L.
·
2015-11-01 15:47
cut
割绳子(Cut the
Rope
)的开发者Candy讲述幕后的故事
割绳子(Cut the
Rope
)非常可爱而有趣所以很快流行起来成为一个人见人爱的游戏。因此,我们有一个想法:让我们为这个伟大的游戏提供一个HTML5的网页版本,提供给更多的人。
·
2015-11-01 13:01
cut
POJ2291——Rotten Ropes
A tear-off weight t is associated to each
rope
, that is, if we try to lift an object, heavier th
·
2015-10-31 15:02
poj
STL之list/vector/deque
非标准序列容器: slist和
rope
。slist是一个单向链表,
rope
本质上是一个重型字符串。
·
2015-10-31 11:37
vector
块状链表[ext/
rope
]
在g++头文件中,<ext/
rope
>中有成型的块状链表,在using namespace __gnu_cxx;空间中,其操作十分方便。
·
2015-10-31 10:58
ext
C/C++字符串处理
C/C++字符串处理盘点:Char*/String/StringBuilder/TextPool/
Rope
许式伟 2008-3-20 概要 在介绍StdExt的时候,我曾经提到,STL设计精良,但是以下几块仍然设计不足
·
2015-10-31 10:40
c/c++
URAL 1020
Rope
URAL_1020 实际上圆弧部分能够组成一个圆,而直线部分则分别等于各相邻两点间距离。 #include<stdio.h> #include<string.h> #include<math.h> #define MAXD 110 int N; double R; const double pi = aco
·
2015-10-31 09:16
r
STL之容器:选择时机,删除元素,迭代器失效
非标准序列容器slist和
rope
。
·
2015-10-31 08:35
STL
NYOJ_651_Cut the
rope
首先考虑,若分解成k段,则n的值至少为1+2+3+4+...+k=(k+1)*k/2 所以本题k的最大值为315 假定dp[k][n]表示为可以分成k段和为n的方案数, 情况分为两种: 1、只有一个1的,则等于dp[k-1][n-k],相当与从n里拿走k个1,可以分成k-1段的方案数 2、没有1的,则等于dp[k][n-k],相当于从n里拿走k个1,可以分成k段的方案数 所以 dp[k
·
2015-10-30 13:45
cut
【STL】list基础
非标准序列容器slist和
rope
。slist是一个单向链表,
rope
本质上是一个重型字符串。 非标准关联容器hash_set、hash_multiset
·
2015-10-27 15:04
list
STL之容器:选择时机,删除元素,迭代器失效
非标准序列容器slist和
rope
。slist是一个单向链表,
rope
本质上是
·
2015-10-21 13:26
STL
【STL】list基础
非标准序列容器slist和
rope
。slist是一个单向链表,
rope
本质上是一个重型字符串。 非标准关联容器hash_
·
2015-10-21 13:14
list
STL容器:删除元素,迭代器失效,选择时机
非标准序列容器slist和
rope
。
·
2015-10-21 12:07
STL
[HNOI2002]营业额统计 Splay tree
functional> 2 #include <algorithm> 3 #include <iostream> 4 //#include <ext/
rope
·
2015-10-21 11:49
tree
POJ 2365
Rope
(计算几何)
Description给出多边形顶点数n,钉子直径r,求从外面围住的绳子长度。Input第一行两个整数n和r表示多边形顶点数和钉子直径,之后n行每行两个浮点数表示顶点坐标Output输出外围绳子长度SampleInput410.00.02.00.02.02.00.02.0SampleOutput14.28Solution简单几何题,看图问题转化成求多边形的周长再加上一个钉子的周长Code#incl
V5ZSQ
·
2015-08-27 09:00
NOI系列赛中 C++容器使用总结
非标准序列容器slist和
rope
。slist是一个单向链表,
rope
本质上是一“重型”string。
tham_
·
2015-08-26 10:00
C++
STL
信息学竞赛STL
C++容器使用总结
HDU4344 Mark the
Rope
pollard_rho大整数分解应用
题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=4344题目大意:给出一个长为n(n小于2^63)的管子,现在Eric要在管子上做标记,每隔L个长度单位做一个标记,从管子头端开始,保证最后一次标记恰好在管子的尾端。让你找出有多少个这样的L(L #include #include #include #include #definetimes10 #de
AC_Gibson
·
2015-07-20 19:00
Effective STL 条款1:仔细选择你的容器
对于容器的分类:标准STL序列容器:vector,string,deque和list标准STL关联容器:set,multiset,map和multimap非标准序列容器:slist(单向链表)和
rope
u011058765
·
2015-06-05 18:00
STL
如何选择容器类型
STL::list
非标准序列容器slist和
rope
。slist是一个单向链表,
rope
本质上是一个重型字符串。非标准关联容器hash_set、hash_multiset、hash_map和hash_multimap。
jiangqin115
·
2015-05-27 19:00
BZOJ1209【
rope
】
/*Iwillwaitforyou*/ #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #definemakemake_pair #definefifirst #defines
Lethelody
·
2015-05-14 18:00
BZOJ1507【
rope
】
/*Iwillwaitforyou*/ #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #definemakemake_pair #definefifirst #defines
Lethelody
·
2015-05-13 16:00
hdu 4344 Mark the
Rope
依然是pollard_rho和Miller_Rabin的模版。。。#include #include #include usingnamespacestd; constintPRIME[9]={2,3,5,7,11,13,17,19,23}; typedeflonglongLL; LLans1,ans2,tmp,n,dig[200]; intCase,cnt; LLmult(LLa,LLb,L
Zeyu_King
·
2015-04-06 21:00
Pollard_rho
Miller_Rabin
容器
1、仔细选择容器顺序容器:vector,string,deque和list关联容器:set,Multiset,map和MultiMap非标准序列容器:slist,
rope
。slist是一个单向链表。
hjing1988
·
2015-03-16 20:00
BZOJ 3678 wangxz与OJ 缩点Splay
但是后来好像被卡了,还有
rope
什么乱搞的都被卡了。
jiangyuze831
·
2015-03-06 14:00
splay
bzoj
ural 1145
Rope
in the Labyrinth 图中 bfs求树的直径
1145.RopeintheLabyrinthTimelimit:0.5secondMemorylimit:64MBAlabyrinthwithrectangularformandsize m × n isdividedintosquarecellswithsides'length1bylinesthatareparallelwiththelabyrinth'ssides.Eachcellofth
u013532224
·
2015-02-12 11:00
bfs
树的直径
POJ2365
Rope
题目链接:http://poj.org/problem?id=2365解题思路:做这题时,真是郁闷死了,明明是到水题,我还wrong了这么多次。首先,一开始我把半径定义成int型,心想后面总是会乘以一个double型pi,也会变成double型,结果就因为这,一直wrong。而且这题还有一个问题就是输出必须要%f型,不然你也会一直wrong。这题真是受够了。AC代码:#include #inclu
piaocoder
·
2014-12-08 07:00
Rope
(几何)
题目链接:ural1020.
Rope
题目大意:按照顺序给定N个点,每个点有半径R,问说用线环绕N个点所需要的长度。
u011328934
·
2014-10-24 00:00
【BZOJ】【P3678】【wangxz与OJ】【题解】【
rope
】
id=3678LZT大爷的题,怒Dwangxz……
rope
水过,出题人用的块链,还有就是此题卡内存,用short才过……Code:#include #include #include #include
u012732945
·
2014-08-13 14:00
bzoj
省选
Effective STL读书笔记
慎重选择容器类型 a.标准STL序列容器:vector、string、deque、list b.标准STL关联容器:set、multiset、map、multimap c.非标准序列容器:slist、
rope
u010110208
·
2014-08-07 10:00
C++
STL
【
Rope
大法好】【STL中丧心病狂的可持久化平衡树】
曾经我不会写平衡树……于是在STL中乱翻……学到了pb_ds库中的SXBK的斐波那契堆、支持kth的set,和……ext/
rope
先发一个官方的说明(鸣谢maoxiaohan1999):http://www.sgi.com
u012732945
·
2014-08-02 19:00
STL
省选
【BZOJ】【P3674】【可持久化并查集加强版】【题解】【可持久化数组】
id=3674可持久化并查集其实就写一个可持久化数组就可以了可持久化数组可以用可持久化线段树或可持久化平衡树……蒟蒻懒,用了
rope
:#include #include usingnamespacestd
u012732945
·
2014-08-02 16:00
bzoj
省选
【SDnoip2014夏令营】【day5】
卧槽为什么不用
rope
!!!T了2个点,160总分270,rank10总结:我是SBP.S.有关
rope
的使用我还太弱,必须加强……出一道
rope
水题&&在博客里发表
rope
使用说明
u012732945
·
2014-07-20 17:00
省选
STL中的容器
非标准序列容器slist和
rope
。slist是一个单向链表,
rope
本质上是一个重型字符串非标准关联容器hash_set、h
JXH_123
·
2014-06-14 09:00
【WikiOI】【P1743】【反转卡片】【题解】【平衡树or
rope
】
传送门:www.wikioi.com/problem/1743/康复计划第二弹,本来想练练Treap|Splay的,看到这么水的题直接
rope
秒杀Code://ID:zky #include #include
u012732945
·
2014-05-29 12:00
省选
UVA 12538 Version Controlled IDE
ext/
rope
真是持久化字符串处理神器......
u012797220
·
2014-04-26 16:00
Effective STL (1)
慎重选择容器类型 标准序列容器:vectorstringdequelist 标准关联容器:setmultisetmapmultimap 非标准序列容器:slistrope.slist是一个单向链表,
rope
Daywei0123
·
2014-04-04 21:00
迭代器失效场合
非标准序列容器slist和
rope
。slist是一个单向链表,
rope
本质上是一个重型字符串非标准关联容器hash_set、hash_m
luoluoxiaocainiao
·
2014-03-26 14:00
C++
迭代器
STL
C++ 容器使用(转载)
非标准序列容器slist和
rope
。slist是一个单向链表,
rope
本质上是一“重型”string。
besterector
·
2014-01-11 23:00
Effective stl 第一章 容器
第1条:慎重选择容器类型标准STL序列容器:vector,string,deque,list标准STL关联容器:set,multiset,map,multimap非标准序列容器slist和
rope
。
xlf13872135090
·
2014-01-08 22:00
cocos2d-x节点(b2RopeJoint.h)API
cocos2d-x节点(b2RopeJoint.h)API温馨提醒:为了大家能更好学习,强烈推荐大家看看本人的这篇博客 Cocos2d-X权威指南笔记//
Rope
(绳)joints(接头)两个bodies
runaying
·
2013-11-28 21:00
api
cocos2d
cocos2dx
cocos2d-x
cocos2d-x节点(b2
Rope
.h)API
cocos2d-x节点(b2
Rope
.h)API温馨提醒:为了大家能更好学习,强烈推荐大家看看本人的这篇博客 Cocos2d-X权威指南笔记//绳索 #ifndefB2_
ROPE
_H #defineB2
runaying
·
2013-11-28 21:00
api
cocos2d
cocos2dx
cocos2d-x
小面试题
小球从绳子的这一端移动到另一端对象:小球 、绳子分析:小球 ,移动的动作 绳子,提供一个指针,指向,方向class
Rope
{ private
u012894266
·
2013-11-20 08:00
上一页
1
2
3
4
5
6
7
下一页
按字母分类:
A
B
C
D
E
F
G
H
I
J
K
L
M
N
O
P
Q
R
S
T
U
V
W
X
Y
Z
其他