码迷,mamicode.com
首页 >  
搜索关键字:nth    ( 846个结果
手写nth_element模板(随机化版快排)
#include<ctime> #include<cstdio> #include<cstdlib> #include<iostream> #include<algorithm> using namespace std; #define ll long long const int maxn=1e6 ...
分类:其他好文   时间:2019-10-02 17:07:24    阅读次数:92
css3 nth 选择器
css3 nth 选择器 :first-child(),:last-child () :nth-child(n) :nth-last-child() :nth-of-type() :nth-last-of-type () :first-of-type() :last-of-... ...
分类:Web程序   时间:2019-09-22 10:44:30    阅读次数:6624
The 2019 Asia Nanchang First Round Online Programming Contest The Nth Item
"The Nth Item" 思路: 先用特征根法求出通向公式,然后通向公式中出现了$\sqrt{17}$,这个可以用二次剩余求出来,然后可以O($log(n)$)求出。 但是还不够,我们先对$n$欧拉降幂,然后求base为$\sqrt{1e9}$的快速幂,预处理一些东西,就可以类似O(1)求出了。 ...
分类:其他好文   时间:2019-09-14 22:16:04    阅读次数:107
The Nth Item 南昌网络赛(递推数列,分段打表)
The Nth Item $$ Time Limit: 1000 ms \quad Memory Limit: 262144 kB $$ 题意 给出递推式,求解每次 $F[n]$ 的值,输出所有 $F[n]$ 的 $xor$ 值。 思路 对于线性递推数列,可以用特征方程求出他的通项公式,比如这题 $ ...
分类:其他好文   时间:2019-09-11 23:36:16    阅读次数:116
HTML5新标签和CSS伪类
HTML5提供了很多新的标签,由于HTML5的兼容性比较差,HTML5的标签常用于手机端 CSS3结构伪类选择器 :first-child 选中第一个元素 :last-child 选中最后一个元素 :nth-child(n) 选中第几个元素 其中n除了填写数字代表第几个元素外,填写n代表选择所有元素 ...
分类:Web程序   时间:2019-09-09 19:54:37    阅读次数:119
H. The Nth Item(The 2019 Asia Nanchang First Round Online Programming Contest)
题意:https://nanti.jisuanke.com/t/41355 给出N1,计算公式:A=F(N)Ni=Ni-1 ^ (A*A),F为类斐波那契需要矩阵快速幂的递推式。 求第k个N。 思路: 发现从大约1e5个数开始N交替出现,到一定位置%2即可。(or正解:https://blog.cs ...
分类:其他好文   时间:2019-09-09 19:04:54    阅读次数:101
layui设置table的各种背景色
添加以下CSS,并引入项目即可生效/*偶数行背景色*/.layui-table[lay-even]tr:nth-child(even){/*background-color:#aaffaa;*/background-color:#eeffee;}/*鼠标指向表格时,奇数行背景颜色*/.layui-tabletbodytr:hover,.layui-table-hover{background-co
分类:其他好文   时间:2019-09-07 14:51:26    阅读次数:710
js 抛物线、随机颜色
div:nth-of-type(1){ width: 600px; height: 2px; background: #000; position: absolute; top: 300px; } div:nth-of-type(2){ width: 2px; height: 600px; back ...
分类:Web程序   时间:2019-09-04 13:51:52    阅读次数:124
leetcode 19 删除链表的倒数第N个节点
地址 https://leetcode-cn.com/problems/remove-nth-node-from-end-of-list/ 给定一个链表,删除链表的倒数第 n 个节点,并且返回链表的头结点。 说明: 给定的 n 保证是有效的。 进阶: 你能尝试使用一趟扫描实现吗? 解法 使用快慢指针 ...
分类:其他好文   时间:2019-09-04 13:37:34    阅读次数:113
CSS基础(2)
1.结构伪类选择器 span:first-child 选择span元素的父元素中的第一个子元素,第一个子元素还必须得是span标签 span:last-child 选择span元素的父元素中的最后一个子元素,最后一个子元素还必须得是span标签 span:nth-child(n) 选择span元素的 ...
分类:Web程序   时间:2019-09-01 10:20:48    阅读次数:276
846条   上一页 1 ... 7 8 9 10 11 ... 85 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!