「SPOJ10707」Count on a tree II "传送门" 树上莫队板子题。 锻炼基础,没什么好说的。 参考代码: ...
分类:
其他好文 时间:
2020-01-24 00:34:56
阅读次数:
102
shell命令 uniq 0、uniq命令的专属图床 "点此快速打开文章" 【 图床_shell命令uniq 】 1、uniq命令的功能说明 ? 命令用于检查及删除文本文件中重复出现的行列,一般与 命令结合使用。 可检查文本文件中重复出现的行列。 2、uniq命令的语法格式 3、uniq命令的选项说 ...
分类:
系统相关 时间:
2020-01-22 18:29:59
阅读次数:
123
Linux--查询文件的第几行到第几行命令 cat catalina.out | tail -n +14000 | head -n 10000 | sort | uniq -c linux 如何显示一个文件的某几行(中间几行)【一】从第3000行开始,显示1000行。即显示3000~3999行cat ...
分类:
其他好文 时间:
2020-01-20 18:51:12
阅读次数:
87
1068 万绿丛中一点红 (20分) https://pintia.cn/problem-sets/994805260223102976/problems/994805265579229184 题目思路: 题目给定N*M个数字,要求找出只出现一次的数字,并且这个数字的相邻的数字都和他的差值必须大于给 ...
分类:
其他好文 时间:
2020-01-19 19:33:54
阅读次数:
68
Luogu P5715 三位数排序 静态查询区间第$k$小数—— 主席树 板子题! 直接上板子即可。 ...
分类:
编程语言 时间:
2020-01-19 09:28:57
阅读次数:
68
cat /proc/cpuinfo | grep 'physical id' | sort | uniq | wc -l 个数 cat /proc/cpuinfo | grep 'process' | sort | uniq | wc -l 核数 cat /proc/meminfo 查看内存 ...
分类:
系统相关 时间:
2020-01-17 22:42:46
阅读次数:
130
1.not null和default # sex字段不可为空,默认值为'男' create table t2( id int, name char(10), sex enum('男','女') not null default '男' ); 2.unique key # id和name字段中的值不可 ...
分类:
数据库 时间:
2020-01-16 23:46:48
阅读次数:
112
Given an integer n, return any array containing n unique integers such that they add up to 0. Example 1: Input: n = 5 Output: [-7,-1,1,3,4] Explanatio ...
分类:
其他好文 时间:
2020-01-16 14:19:16
阅读次数:
90
date;find /home/admin/image -name *.jpeg | xargs md5sum|sort >allfiles;cat allfiles |uniq -w 32 > uniqfiles;comm allfiles uniqfiles -2 |cut -c 35-|wc ...
分类:
其他好文 时间:
2020-01-16 12:26:41
阅读次数:
104
1 #!/bin/bash 2 ############################################################### 3 #Author :Bing # 4 #Create Time:11/26/2019 # 5 ###################### ...
分类:
其他好文 时间:
2020-01-13 10:37:31
阅读次数:
82