传送门 A - The Number of Even Pairs #include <bits/stdc++.h> #define ll long long using namespace std; int main() { //freopen("in.txt","r",stdin); int n, ...
分类:
其他好文 时间:
2020-03-23 12:38:57
阅读次数:
98
LINK: "DZY Loves Math" 一道比较有意思的数论题 原谅我的智障多调了40min. 可以简单的推式子推出 答案为$\sum{w=1}^n\frac{n}{w}\frac{m}{w}\sum{x|w}\mu(x)f(\frac{w}{x})$ f函数定义和题目中一致。 考虑后面前缀和 ...
分类:
其他好文 时间:
2020-03-23 11:28:36
阅读次数:
74
1、warning:the `gets' function is dangerous and should not be used 2、stdin.c:21:2: error: too many arguments to function ‘fputs’ 原因: 问题出在程序中使用了 gets是非常 ...
分类:
系统相关 时间:
2020-03-22 18:03:20
阅读次数:
165
1.默认输入输出 默认输入 键盘:stdin 默认输出 屏幕:stdout 2.输出重定向 重定向:改变数据流输出的位置、方向,例如输出到文件。使用">"表示。 命令 > 文件名:例如ifconfig > ~/leo/log.txt,将ifconfig的输出重定向到~/leo/log.txt文件中。 ...
分类:
其他好文 时间:
2020-03-20 14:28:08
阅读次数:
70
非常经典的最小割模型. code: #include <bits/stdc++.h> #define N 3006 #define ll long long #define setIO(s) freopen(s".in","r",stdin) using namespace std; const l ...
分类:
其他好文 时间:
2020-03-19 21:21:21
阅读次数:
48
[toc] 一、什么是logstash logstash是一个日志收集器,可以理解为一个管道,或者中间件。 功能是从定义的输入源inputs读取信息,经过filters过滤器处理,输入到定义好的outputs输出源。 logstash 输入源可以指定输入数据,可以是stdin、日志文件、数据库等 输 ...
分类:
其他好文 时间:
2020-03-18 23:49:40
阅读次数:
84
回到顶部 nohup nohup 命令运行由 Command参数和任何相关的 Arg参数指定的命令,忽略所有挂断(SIGHUP)信号。在注销后使用 nohup 命令运行后台中的程序。要运行后台中的 nohup 命令,添加 & ( 表示“and”的符号)到命令的尾部。 nohup 是 no hang ...
分类:
系统相关 时间:
2020-03-18 20:20:35
阅读次数:
121
``` #include typedef unsigned int _;_ d,b, #define i(I1,Il,lI)if(Il){lI;}else{I1;} ... ...
分类:
其他好文 时间:
2020-03-17 19:15:26
阅读次数:
89
这里是在root下创建的,当然也可以赋予给用户root权限(具体赋权方法在文章最后,一般只有运维都权限,普通用户需要赋权) 1.创建用户 -g 属组-u 设置uid-m 创建家目录-M 没有家目录-G 指定属于多个组-s 指定登录shell-d 指定家目录-c 注释-D 改变它默认的属性-e 指定的 ...
分类:
系统相关 时间:
2020-03-15 23:47:30
阅读次数:
92
题意 : 可以选择任意一个数 + 2 当所有的数都>0时,都 -1 最后你能否都变成 0 先排序 ,比较相邻两个数字的差 ,如果有一个时奇数,说明是不可以 都为偶数,可以 View Code 代码: 1 #include <bits/stdc++.h> 2 using namespace std; ...
分类:
其他好文 时间:
2020-03-15 11:32:37
阅读次数:
58