我的思维能力真的上来了好感动555 原题: 随便点的一道DP题,本来这题以前无数次想不出来,题解好像也看不懂,想的时候都打算放弃了 但是想着一定要死磕思维能力,最后居然还真的自己做出来了 果真是以前放弃得太轻易hhh 首先要确定一下题意,“有ai个人”我感觉也可以理解为>=ai个人 但是其实后来想一 ...
分类:
其他好文 时间:
2019-12-11 19:48:56
阅读次数:
77
logstash 安装,下载最新版本的logstash: 点击打开链接 解压到磁盘根目录下:在logstash>bin 1、目录下创建:logstash.conf 2、输入内容: input { input { stdin{ stdin{ } } } } output { output { stdo ...
大一开始了解ACM,兴趣使然,看了些刘汝佳写的书,颇有心得,于是记录下来,不定时更新。 ACM的输入: #define LOCAL #include <stdio.h> int main() { #ifdef LOCAL freopen("data.in","r",stdin); freopen(" ...
分类:
其他好文 时间:
2019-12-10 00:32:18
阅读次数:
141
code: #include <bits/stdc++.h> #define N 200004 #define ll long long #define mod 1000000007 #define setIO(s) freopen(s".in","r",stdin) using namespace ...
分类:
其他好文 时间:
2019-12-09 21:16:07
阅读次数:
84
函数可以没有返回值案例,编写一个函数,从终端输入一个整数,打印出对应的金字塔 import scala.io.StdIn object work02 { def main(args: Array[String]): Unit = { println("请输入一个数") var num:Int=Std ...
分类:
其他好文 时间:
2019-12-07 01:21:53
阅读次数:
203
链接: https://vjudge.net/problem/SPOJ BALNUM 题意: Balanced numbers have been used by mathematicians for centuries. A positive integer is considered a bal ...
分类:
其他好文 时间:
2019-12-07 00:59:49
阅读次数:
78
由于自动化需要,部署一台ftp服务器 安装vsftpd yum install vsftpd -y 安装完成之后,在/etc/vsftpd目录下会有四个文件 [root@localhost ~]# ll /etc/vsftpd/ 总用量 20 -rw . 1 root root 125 10月 31 ...
分类:
系统相关 时间:
2019-12-06 11:57:01
阅读次数:
93
学习参考的官网: https://developers.google.com/protocol-buffers/docs/javatutorial 简单指南详解:这个文档写的简直是太详细了。 本篇从下面三个步骤进行介绍: I. Define message formats in a .proto f ...
分类:
Web程序 时间:
2019-12-02 18:58:29
阅读次数:
127
Linux gzip: stdin: not in gzip format ...
分类:
系统相关 时间:
2019-12-01 21:13:55
阅读次数:
99
第一种方式:import syssys.stdout.write("请输入:\n")while True: line = sys.stdin.readline() if line == "\n": break else: print(line)第二种方式: import syss_line = sy ...
分类:
其他好文 时间:
2019-12-01 16:58:34
阅读次数:
90