//count down from 5 to 1, a useful animation. show the code to you: <!DOCTYPE html> <html> <style> #contain { width: 400px; height: 300px; overflow: h ...
分类:
Web程序 时间:
2018-10-28 11:11:14
阅读次数:
210
做vue项目用到下拉滚动加载数据功能,由于选的UI库(element)没有这个组件,就用Vue-infinite-loading 这个插件代替,使用中遇到的一些问题及使用方法,总结作记录! 安装:npm install vue-infinite-loading –save 引入 ES6 import ...
分类:
其他好文 时间:
2018-10-17 14:55:01
阅读次数:
229
leetcode 874 Robot Simulation 限制:32MB, 1s 描述 A robot on an infinite grid starts at point (0, 0) and faces north. The robot can receive one of three po ...
分类:
其他好文 时间:
2018-10-14 19:15:18
阅读次数:
216
The ant Welly now dedicates himself to urban infrastructure. He came to the kingdom of numbers and solicited an audience with the king. He recounted h ...
分类:
其他好文 时间:
2018-10-14 11:33:57
阅读次数:
279
题目链接: http://acm.hdu.edu.cn/showproblem.php?pid=6223 题目: 题意: 给你一个长度为n的数字串,开始时你选择一个位置(记为i,下标从0开始)做为起点,那么下一步将在(i × i + 1)%n处,将字典序最大的路径上的数打印出来。 思路: 要想字典序 ...
分类:
其他好文 时间:
2018-10-13 21:37:07
阅读次数:
177
题目地址:http://acm.hdu.edu.cn/showproblem.php?pid=6223 题意:给定长度为n的一串数字S,现在要按照一种规则寻找长度为n的数字串,使得该数字串的字典序最大。规则:从数字串S的某一个下标为x的数字出发,可以到达的下一个数字是下标为(x*x+1)%n的数字。 ...
分类:
其他好文 时间:
2018-10-12 01:29:55
阅读次数:
254
A robot on an infinite grid starts at point (0, 0) and faces north. The robot can receive one of three possible types of commands: 2: turn left 90 deg ...
分类:
其他好文 时间:
2018-10-08 13:31:13
阅读次数:
148
K-Inversions 题意:给定一个只包含A和B的字符串,对于1 <= i < j <= n,如果s[i] = 'B', s[j] = ‘A’, 且j-i=k, 那么就构成了一个k-inversions,对于在1~n-1范围内的k,输出k-inversions的数量 思路:构造两个多项式,A和B ...
分类:
其他好文 时间:
2018-10-05 20:18:39
阅读次数:
217
Portal qwq(貌似是CodeForces Gym 100228 (ECNA2003) I) Description 对于长度为 $n$ 的序列 $A$ ,定义其逆序图 $G$ 如下:无向图 $G$有$n$ 个节点,编号为 $0..n 1$ ;对于任意的$ 0≤ia[j]$,那么 $G$中存在 ...
分类:
其他好文 时间:
2018-10-05 18:57:35
阅读次数:
159
题目大意 对于一个长为$N$的序列$A$,定义它所对应的逆序图: 有$N$个点组成,标号为$1...N$的无向图,对于每一组$i,j(i<j)$若存在$A_i>A_j$则在新图中就存在一条$(A_i,A_j)$的无向边。 现在给定一个$N(N\leq 1000)$个点的图,保证它是某个序列对应的逆序 ...
分类:
其他好文 时间:
2018-10-05 16:03:16
阅读次数:
127