码迷,mamicode.com
首页 >  
搜索关键字:div2    ( 813个结果
hdu 5423 Rikka with Tree(dfs)bestcoder #53 div2 1002
题意:输入一棵树,判断这棵树在以节点1为根节点时,是否是一棵特殊的树。相关定义:1. 定义f[A, i]为树A上节点i到节点1的距离,父节点与子节点之间的距离为1。2. 对于树A与树B,如果A与B的节点数相同,且无论i为何值,f[A, i]与f[B, i]都相等,则A与B为两棵相似的树。3. 对于一...
分类:其他好文   时间:2015-08-31 21:32:46    阅读次数:156
Codeforces掉分记 round318(div2)
codeforces round318 Bear and Elections Limak is a grizzly bear who desires power and adoration.Lim He wants to win in upcoming election Bear and Drawing Limak is a little bear who learns to draw. People usually...
分类:其他好文   时间:2015-08-30 14:29:44    阅读次数:279
topcoder SRM 666 DIV2 CollectingTokens 树形dp
Problem Statement     Surya has a tree with n nodes, numbered 1 through n. Each node contains some arbitrary nonnegative number of tokens. Surya sometimes goes for a walk on the tree. He h...
分类:其他好文   时间:2015-08-26 17:55:07    阅读次数:186
codeforces 250 div2 A B C D
A. 模拟 #include using namespace std; #define LL long long #define INF 0x3f3f3f3f #define maxn 100 + 10 char s[4][maxn]; int len[4]; int main() { int t1, t2; int Min = INF, Max = -INF; ...
分类:其他好文   时间:2015-08-16 18:25:50    阅读次数:99
绝对定位之类的
1.图片的大小时200 201,我给包含他的div设置的是300 100,下面的div的margin值是60,发现图片会把下面的div给盖住。就算是给下面的div设置了overflow;hidden属性还是不行。加上宽度也是不行的。2.下面再给图片设置一个绝对定位。此时div2的位置并没有发生什么变...
分类:其他好文   时间:2015-08-16 13:34:17    阅读次数:139
TC SRM 665 DIV2 A LuckyXor 暴力
LuckyXorTime Limit: 20 SecMemory Limit: 256 MB题目连接TCDescriptionA lucky number is a positive integer consisting of only the digits 4 and 7.Given an int...
分类:其他好文   时间:2015-08-11 23:19:08    阅读次数:227
jQuery 鼠标拖拽排序
测试的拖拽功能 div1 div2 div3 div4 div5
分类:编程语言   时间:2015-08-11 12:08:55    阅读次数:123
清除浮动的几种方式
1.br元素结合clear属性清浮动案例:html: css: .div1{ border: 5px solid green; } .div2{ background: red; width: 200px; he...
分类:其他好文   时间:2015-08-08 19:41:57    阅读次数:134
Topcoder SRM 663 Div2 Hard: CheeseRolling(状压DP)
Problem Statement   N people (where N is a power of 2) are taking part in a single-elimination tournament in cheese rolling. The diagram below illustrates the structure of the tournament br...
分类:其他好文   时间:2015-08-08 18:18:27    阅读次数:159
三行css代码实现垂直居中
html结构为: <div?id=‘div2‘> <div?id=‘div1‘></div> </div> css代码为: #div2{ height:300px;width:300px; border:1px?red?solid; text-align:center; margin:auto; } #div1{ ??????height:50...
分类:Web程序   时间:2015-08-07 20:31:36    阅读次数:119
813条   上一页 1 ... 56 57 58 59 60 ... 82 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!