How to zip a file for Windows? 压缩一个文件: makecab c:/file_name.txt c:/file_name.zip 解压一个文件: expand c:/file_name.zip c:/file_name.txt How to replace in shell? 全局替换真正使用的是两个ex命令是 :g(global全局)和:s(switch替换). 替换命令的语法如下: :s / old / new / 这将把当前中模式old的第一次出现修改为…
Those questions Simply write down questions that ever frustrated me a little: How to convert unix timestamp to standard format in SQL? How to convert unix timestamp to standard format in R? How to download files from the remote server to local deskto…
目录 2018.11.6 正睿停课训练 Day17 A chinese(思路 计数) B physics(单调队列/剪枝 DP) C chemistry(期望 DP) 考试代码 A B C 2018.11.6 正睿停课训练 Day17 虽然题都改了但还是咕了无数天的博客... 期望得分:忘了 实际得分:55+(80->60)+20 比赛链接 A chinese(思路 计数) 题目链接 考虑\(\sum i*f[i]\)的意义,即所有方案中炼字的个数和. 考虑枚举每个数\(i∈[1,k]\)作为炼…
题目传送门 Meteors 格式难调,题面就不妨放了. 分析: 一道整体二分的练手题. 就是一般的整体二分的套路,但是要注意,将修改和询问加入队列的时候要先加修改再加询问.另外,博主代码打得太丑,常数贼大,不建议照这么打... Code: //It is made by HolseLee on 5th Oct 2018 //Luogu.org P3527 #include<bits/stdc++.h> #define N 300007 using namespace std; typedef…
题目传送门 K-th Number Time Limit: 20000MS Memory Limit: 65536K Total Submissions: 69053 Accepted: 24471 Case Time Limit: 2000MS Description You are working for Macrohard company in data structures department. After failing your previous task about ke…
Dynamic Rankings Time Limit: 10 Seconds Memory Limit: 32768 KB The Company Dynamic Rankings has developed a new kind of computer that is no longer satisfied with the query like to simply find the k-th smallest number of the given N numbers. They…
E. Sign on Fence time limit per test 4 seconds memory limit per test 256 megabytes input standard input output standard output Bizon the Champion has recently finished painting his wood fence. The fence consists of a sequence of n panels of 1 meter w…
详见:剑指 Offer 题目汇总索引:第6题 Binary Tree Postorder Traversal Given a binary tree, return the postorder traversal of its nodes' values. For example: Given binary tree {1,#,2,3}, 1 \ 2 / 3 return [3,2,1]. Note: Recursive solution is trivial, could…