Time travel http://acm.hdu.edu.cn/showproblem.php?pid=4418 分析: 因为走到最后在折返,可以将区间复制一份,就变成了只往右走,012343210。 写出转移方程: $f[t] = 0$ $f[i] = p_1 \times (f[i +1] ...
分类:
其他好文 时间:
2018-09-13 17:29:46
阅读次数:
163
131072K After the long vacation, the maze designer master has to do his job. A tour company gives him a map which is a rectangle. The map consists of ...
分类:
其他好文 时间:
2018-09-13 01:23:18
阅读次数:
206
You are given two positive integer numbers a and b. Permute (change order) of the digits of a to construct maximal number not exceeding b. No number i ...
分类:
其他好文 时间:
2018-09-12 14:04:29
阅读次数:
176
一、ELK工作原理ElasticsearchElasticsearch是个开源分布式搜索引擎,提供搜集、分析、存储数据三大功能。它的特点有:分布式,零配置,自动发现,索引自动分片,索引副本机制,restful风格接口,多数据源,自动搜索负载等。LogstashLogstash主要是用来日志的搜集、分析、过滤日志的工具,支持大量的数据获取方式。一般工作方式为c/s架构,client端安装在需要收集日
分类:
其他好文 时间:
2018-09-11 23:56:27
阅读次数:
284
```
dd if=/dev/zero of=/swapfile1 bs=1024 count=524288 mkswap /swapfile1 swapon /swapfile1 vi /etc/fstab # edit /etc/fstab file, add the following lin... ...
分类:
其他好文 时间:
2018-09-11 14:10:20
阅读次数:
195
在我上一篇文章中,编写了AnsibleAd-Hoc&Playbook的API,上篇文章http://blog.51cto.com/784687488/2171821这一篇将使用AnsibleAPI获取主机详细信息,CMDB系统中最基本的功能话不多说,还是直接上代码#-encoding:utf-8-importosimportsys#因为我是在django中使用,所以我加上了下面这段代码。自
第九章——文件系统管理 一.回顾分区和文件系统 1.分区类型: 2.分区表示方法: 3.文件系统: 二.文件系统常用命令 1.df命令、du命令、fsck命令和dump2fs命令: (1)文件系统查看命令df: (2)统计目录或文件大小: (3)du命令和df命令的区别: (4)文件系统修复命令fs ...
分类:
系统相关 时间:
2018-09-09 15:32:41
阅读次数:
213
<!--WizRtf2Html Charset=0 -->redhat linux swap<!--WizRtf2Html Charset=134 -->分区扩展的三种方法 2016-12-26 11:41:08 <!--more--> 分类: LINUX 原文地址:redhat linux swa ...
分类:
其他好文 时间:
2018-09-09 15:02:45
阅读次数:
189
退出编辑模式不保存修改(:q)然后切换到vsftpd目录下(cd/etc/vsftpd/)查看有没有.vsftpd.conf.swp这个文件有的话删除这个文件(rm-rf/etc/vsftpd/.vsftpd.conf.swp)然后再次查看(ls-a)你在进入vim/etc/vsftpd/vsftpd.conf就不会出现E325:ATTEBTIONFoundaswapfilebythename&q
分类:
系统相关 时间:
2018-09-09 00:34:20
阅读次数:
305
1)字符串是什么,和字符串的常用操作方法1,什么是字符串.字符:是单一的文字符号,字符串:是有序的字符序列,由"‘‘‘‘"""引起来的内容就是字符串.2,字符串的常有操作方法1,索引[位置]一排字符反应第x个位置的字符索引下标从0开始.使用[]来获取数据例:s=‘刘德华很帅但是张国荣更‘print(s[2])打印出来的就是"华"2,切片[start:end:step]start代表起始位置end代
分类:
其他好文 时间:
2018-09-08 16:49:21
阅读次数:
266