Period of an Infinite Binary Expansion POJ - 3358 题意:给一个分数,让求其二进制形式的最小循环节ans2和循环节开始的位置ans1。 以下内容转自http://blog.csdn.net/u013508213/article/details/4249 ...
分类:
其他好文 时间:
2017-08-26 11:27:02
阅读次数:
196
使用别人的组件: 比如:Vue.use(Vuesource); Vue.use(VueRouter); Vue.use(MintUI); 1.自定义全局组件: 使用 <Loading></Loading> 2.main.js App.vue index.js Loading.vue 运行结果:引入了 ...
分类:
其他好文 时间:
2017-08-25 01:06:17
阅读次数:
251
1》animation-iteration-count属性定义动画应该播放多少次。 animation-iteration-count:infinite; infinite表示无限循环 2》先执行一遍动画,然后再反向执行一遍动画: animation-direction:alternate 语法:a ...
分类:
Web程序 时间:
2017-08-23 14:58:40
阅读次数:
167
<style> .content{ width: 500px; margin:0 auto; } .content .img1{ animation: zhazha 1s infinite; } .content .img2 { animation: boom 1s 1; } @keyframes ...
分类:
其他好文 时间:
2017-08-20 00:40:20
阅读次数:
180
Problem Description A weird clock marked from 0 to 59 has only a minute hand. It won’t move until a special coin is thrown into its box. There are dif ...
分类:
其他好文 时间:
2017-08-19 21:17:41
阅读次数:
195
bobo has a sequence a 1,a 2,…,a n. He is allowed to swap twoadjacent numbers for no more than k times. Find the minimum number of inversions after his ...
分类:
其他好文 时间:
2017-08-19 11:02:33
阅读次数:
147
原文:Animating Single Div Art 翻译:nzbin 导读:学习工具的最好的方法就是尝试新技术,本文通过“单元素艺术”介绍了 CSS 变量的使用以及给单元素添加动画的几种方法。通过学习作者编写的复杂的“单元素”示例,相信你对 CSS 变量以及 CSS 动画会有一个深刻的认识。 如 ...
分类:
其他好文 时间:
2017-08-18 20:14:20
阅读次数:
244
boost_array_bind_fun_ref Array.cpp #include<boost/array.hpp> #include <iostream> #include <string> using namespace std; using namespace boost; void ma ...
分类:
编程语言 时间:
2017-08-18 18:46:44
阅读次数:
123
我们想要一块区域实现上划刷新时。 首先需要一块滚动视图:ionCintent 或者 ionScroll 把ion-infinite-scroll当作滚动视图的最后一个子元素,他的on-infinite属性可以赋一个达到底部时执行的函数 函数如下: 上划时执行getNew()函数; 这里有一个坑,当获 ...
分类:
其他好文 时间:
2017-08-15 18:55:17
阅读次数:
199
题意 给定长度为 $n$ 的序列 $A = \left\{ a_1, a_2, ..., a_n \right\}$ . 我们定义其逆序图 $G$ : 对于 $i < j$ , $i, j$ 之间存在连边 $\Leftrightarrow a_i > a_j$ . 给定一个序列的逆序图, 求有多少个 ...
分类:
其他好文 时间:
2017-08-14 23:30:28
阅读次数:
111