https://juejin.im/post/5c11bf145188252704368b98?utm_source=gold_browser_extension 作者:技术胖 ...
分类:
其他好文 时间:
2018-12-13 16:36:01
阅读次数:
154
function numberFormat (number, decimals, decPoint, thousandsSep, roundtag) { /* * 参数说明: * number:要格式化的数字 * decimals:保留几位小数 * dec_point:小数点符号 * thousan... ...
分类:
Web程序 时间:
2018-12-13 11:35:39
阅读次数:
399
Milk Patterns 产奶的模式 bzoj-1717 Usaco-2006 Dec 题目大意:给定一个字符串,求最长的至少出现了$k$次的子串长度。 注释:$1\le n\le 2\cdot 10^4$,$2\le k\le n$。 想法:不难想到二分答案,现在我们考虑如何验证。 这里就是后缀 ...
分类:
编程语言 时间:
2018-12-12 20:39:02
阅读次数:
221
队列变换 bzoj-1692 Usaco-2007 Dec 题目大意:给定一个长度为$n$的字符串。每次从头或尾取出一个字符加到另一个字符串里。要求变换后生成的字符串字典序最小,求字典序最小的字符串。 注释:$1\le n\le 3\cdot 10^4$。 想法: 考虑暴力怎么做: 每次把当前字符串 ...
分类:
编程语言 时间:
2018-12-12 15:40:42
阅读次数:
240
挂载光盘: 光盘插入光驱后使用:mount -t iso9660 /dev/cdrom /mnt 或 mount /dev/sr0 /mnt [root@centos7 ~]# ll /dev/cdrom lrwxrwxrwx 1 root root 3 Dec 12 10:55 /dev/cdro ...
分类:
系统相关 时间:
2018-12-11 15:58:52
阅读次数:
219
服务端:192.168.1.204 www.test.com 客户端:192.168.1.206 www.test3.com 客户端同步服务端报错如下: [root@www etc]# ntpdate -d -b 192.168.1.204 9 Dec 22:42:10 ntpdate[10293] ...
分类:
其他好文 时间:
2018-12-10 13:58:51
阅读次数:
225
1 #include<cstdio> 2 #include<iostream> 3 #include<cstdlib> 4 #include<algorithm> 5 #include<string> 6 #include<queue> 7 #include<ctime> 8 #define N 2 ...
分类:
其他好文 时间:
2018-12-07 14:47:00
阅读次数:
238
Given scores of N athletes, find their relative ranks and the people with the top three highest scores, who will be awarded medals: "Gold Medal", "Sil ...
分类:
编程语言 时间:
2018-12-06 10:16:32
阅读次数:
127
首先查看时间发现和百度的时间不一样 [root@www ~]# dateWed Dec 5 14:00:32 CST 2018 1、配置ntp服务器,设置时区同步,请参照ntp篇 https://www.cnblogs.com/effortsing/p/10011459.html 上面操作完后时间仍 ...
分类:
系统相关 时间:
2018-12-05 16:22:57
阅读次数:
737
两个人都觉得自己没错,或者对方都把错误归结于另外一方,总会盯着对方的不足,无限放大;谁都不肯先放下兵器,亦或害怕自己放下了兵器,对方又拿起了盾。这就好像双方在同一时间拉扯一根皮筋,拉扯的越长,张力越大,最后皮筋断了,受到的伤害也越大。如果孩子夹在中间,那无论输赢,受伤害的总是孩子。人生哪能多如意,万... ...
分类:
其他好文 时间:
2018-12-04 13:09:04
阅读次数:
156