在样式里的div需要先写动画名如aa,animation:aa 10s(动画时长),infinite(无限循环) 1、@keyframes规则用于创建动画。在@keyframes中规定某项CSS样式,就能创建由当前样式逐渐改为新样式的动画效果2、使用animation进行动画捆绑。两个值:动画名称、 ...
分类:
其他好文 时间:
2018-04-02 15:12:43
阅读次数:
176
A. Balance 不难发现确定第一行第一列后即可确定全部,列不等式单纯形求解线性规划即可。 B. Entanglement 留坑。 C. Gravity 对于每个连通块设$f_x$表示$x$连通块往下掉了多少,对于同一列相邻两个关于$f$建图求最短路即可。 D. Infinite Pattern ...
分类:
其他好文 时间:
2018-03-30 01:15:36
阅读次数:
277
Description Background Binary trees are a common data structure in computer science. In this problem we will look at an infinite binary tree where the ...
分类:
其他好文 时间:
2018-03-29 19:04:41
阅读次数:
309
Problem Description: In computer science, a binary tree is a tree data structure in which each node has at most two children. Consider an infinite ful ...
分类:
其他好文 时间:
2018-03-22 23:53:17
阅读次数:
337
面试有被问到怎么实现线程池,网上找的可以用的代码,在VS2010上测试通过,没有用到C++11,信号量也是用WINDOWS的。 线程池为了节省开辟线程耗费的资源,提前创建一批线程处于信号量等待状态,需要用的时候将任务加入队列中,发送信号量,抢占到的线程执行该任务。具体代码如下: ...
分类:
编程语言 时间:
2018-03-12 21:12:11
阅读次数:
319
题链: http://acm.hdu.edu.cn/showproblem.php?pid=3689题解: KMP,概率dp (字符串都从1位置开始) 首先对模式串S建立next数组。 定义dp[i][j]表示猴子打的串长度为i,且该串的后缀与模式串最多匹配到j位置的概率。 显然dp[0][0]=1 ...
分类:
其他好文 时间:
2018-03-11 00:27:55
阅读次数:
162
问题描述 We have a graph with N vertices, numbered 0 through N?1. Edges are yet to be added. We will process Q queries to add edges. In the i-th (1≦i≦Q) q ...
分类:
其他好文 时间:
2018-03-10 17:50:32
阅读次数:
169
Assume the coasting is an infinite straight line. Land is in one side of coasting, sea in the other. Each small island is a point locating in the sea ...
分类:
其他好文 时间:
2018-03-10 11:49:53
阅读次数:
165
A New Year party is not a New Year party without lemonade! As usual, you are expecting a lot of guests, and buying lemonade has already become a pleas ...
分类:
其他好文 时间:
2018-03-08 02:56:42
阅读次数:
275
Assume the coasting is an infinite straight line. Land is in one side of coasting, sea in the other. Each small island is a point locating in the sea ...
分类:
其他好文 时间:
2018-03-07 20:15:07
阅读次数:
179