码迷,mamicode.com
首页 >  
搜索关键字:last    ( 7540个结果
UVALive 6911---Double Swords(贪心+树状数组(或集合))
题目链接 https://icpcarchive.ecs.baylor.edu/index.php?option=com_onlinejudge&Itemid=8&page=show_problem&problem=4923 problem description Last night, Kingd ...
分类:编程语言   时间:2016-10-22 21:02:21    阅读次数:207
2014080503梦幻布丁(C++)
#include<cstdio> #define N 100010 #define M 1000010 int c[N],sum[M]; int next[N],last[M]; int head[M]; int f[M]; int n,m,ans; inline int read() { int ...
分类:编程语言   时间:2016-10-22 15:13:12    阅读次数:219
初识java集合——链表
* 链表中的每个节点,存放着上一个节点的引用和下一个节点的引用 * 相对于泛型集合,链表是一个有序集合,每个对象的位置十分的重要 * 链表的add默认也是添加到尾部的 * * 链表的添加删除操作往往借助迭代器来完成,参见IteratorIntro * * 对于链表的遍历,绝对不要使用(代码区-1)的 ...
分类:编程语言   时间:2016-10-22 14:09:44    阅读次数:158
不同版本mysql主从复制
先把错误撩这里,有空了再来更新Last_IO_Error:Gotfatalerror1236frommasterwhenreadingdatafrombinarylog:‘Misconfiguredmaster-serveridwasnotset‘cat/var/log/messages或者cat/mnt/sdb/mysql_3306/mysql.error16101914:20:16[ERROR]SlaveI/O:errorconnectingtomaster‘repuse..
分类:数据库   时间:2016-10-22 00:55:09    阅读次数:290
centos pptpd卡用户后的暴力处理
备忘一下。暴力法一:last|grepppp|grepstill找出pppX如果有2、3个,就一个一个输入这个X,如果实在太多,自己写个脚本吧弄个for循环搞搞好了。kill-9`cat/var/run/pppX.pid`rm-f/var/run/pppX.pid暴力法二:ps-ef|grepppp|awk‘{print$2}‘kill-9之顺便说一下踢TTY登录的(我理..
分类:其他好文   时间:2016-10-21 17:03:22    阅读次数:140
[spacemacs]anaconda自动补全不工作
spacemacs打开python源文件自动补全不工作,打开anaconda-mode buffer看到以下信息: Traceback (most recent call last): File "/Users/matthew/.emacs.d/.cache/anaconda-mode/0.1.5/ ...
分类:系统相关   时间:2016-10-21 00:10:21    阅读次数:306
JQuery
一、选择器 1、基本选择器 ①id选择器:# ②class选择器:. ③标签名选择:标签名 ④并列选择:用,隔开 ⑤后代选择:用空格隔开 2、过滤选择器 (1)、基本过滤 ①首个::first ②尾个::last ③任意个::eq(索引号) ④大于::gt(索引号) ⑤小于::lt(索引号) ⑥排除 ...
分类:Web程序   时间:2016-10-20 14:18:33    阅读次数:247
Linux系统下信息或者和故障排查命令小结
1、查看用户在线和登录情况w-查看在线用户last-查看最近用户登录情况2、查看系统命令执行历史history3、查看系统现在运行的进程信息pstree-a(简单结果)psaux(详细结果)4、查看网络连接信息netstat-ntlpnetstat-nulpnetstat-nxlp5、查看CPU和内存运行信息free-m#查看当前内存..
分类:系统相关   时间:2016-10-19 14:28:35    阅读次数:261
NOIP201508跳石头(C++)
#include <cstdio>#include <cstring>using namespace std;const int maxn=50005;int a[maxn],n,m,ans;bool check(int x){ int sum,last; sum=0;last=0; for (in ...
分类:编程语言   时间:2016-10-17 22:52:35    阅读次数:168
获取阶乘N!最后一个非零位
publicstaticintget_last_num(intn){ if(n==0||n==1){ System.out.println(1); return1; } inttmp=1; for(inti=n;i>0;i--){ //去除右边的0 if(i%10==0){ i=i/10; while(i%10==0){ i=i/10; } } //取它的个位数 tmp=tmp*(i%10); //如果相乘后是10的倍数,去除右边的0 if(tmp%1..
分类:其他好文   时间:2016-10-17 00:35:59    阅读次数:98
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!