上一页 1 2 3 4 5 6 7 ··· 13 下一页
摘要: https://codeforces.com/contest/1313 满足题意的建造的摩天大厦是成“峰”状的,从左开始到最大值是单调递增,从最大值的位置到最右边是单调递减。 如何维护这个序列?用单调栈即可,类似用单调栈求长方形最大面积。 首先从左到右遍历一遍序列,维护一个递增单调栈,统计从左到右可 阅读全文
posted @ 2020-03-05 15:18 AaronChang 阅读(168) 评论(0) 推荐(0) 编辑
摘要: https://codeforces.com/problemset/problem/1311/E 题目点对追击问题可以抽象成两个一次函数相交问题,y = v*t+xi,xi为y轴上的截距,v是斜率,那么当且仅当两个函数在第一象限相交时,点对的最小距离是0,如果两个点对不在第一象限相交,则点对最小距离 阅读全文
posted @ 2020-02-28 21:33 AaronChang 阅读(191) 评论(0) 推荐(0) 编辑
摘要: 1.移动光标 1 数字 + h,j,k,l 上,下,左,右 2 ctrl-e 移动页面 3 ctrl-f 上翻一页 4 ctrl-b 下翻一页 5 ctrl-u 上翻半页 6 ctrl-d 下翻半页 7 w 跳到下一个字首,按标点或单词分割 8 W 跳到下一个字首,长跳,如end-of-line被认 阅读全文
posted @ 2020-02-27 15:47 AaronChang 阅读(548) 评论(0) 推荐(0) 编辑
摘要: 1.创建普通文件命令:touch 命令 2.创建目录文件命令:mkdir 命令 3.删除普通文件命令:rm 命令 4.删除目录文件命令:rmdir 命令 5.给普通文件写东西命令:vim 命令 6.查看文件内容前三行、后三行命令:head命令 7.拷贝复制命令:cp 命令 8.剪贴、移动文件命令:m 阅读全文
posted @ 2020-02-27 13:15 AaronChang 阅读(190) 评论(0) 推荐(0) 编辑
摘要: https://codeforces.com/contest/1303/problem/E 1 #include<bits/stdc++.h> 2 using namespace std; 3 const int maxn = 405; 4 int dp[maxn][maxn]; 5 bool ch 阅读全文
posted @ 2020-02-24 17:30 AaronChang 阅读(149) 评论(0) 推荐(0) 编辑
摘要: https://codeforces.com/contest/1304/problem/D 1 #include<bits/stdc++.h> 2 using namespace std; 3 void solve(){ 4 int n; 5 string s; 6 cin>>n; 7 cin>>s 阅读全文
posted @ 2020-02-24 17:28 AaronChang 阅读(225) 评论(0) 推荐(0) 编辑
摘要: https://codeforces.com/contest/1304/problem/E 1 #include<bits/stdc++.h> 2 using namespace std; 3 typedef long long ll; 4 const int maxbit = 20; 5 cons 阅读全文
posted @ 2020-02-24 17:27 AaronChang 阅读(174) 评论(0) 推荐(0) 编辑
摘要: https://codeforces.com/contest/1304/problem/F2 1 #include<bits/stdc++.h> 2 using namespace std; 3 const int maxn = 4e4+5; 4 int dp[55][maxn]; 5 int va 阅读全文
posted @ 2020-02-24 17:26 AaronChang 阅读(159) 评论(0) 推荐(0) 编辑
摘要: A. Two Rabbits (手速题) 1 #include<bits/stdc++.h> 2 using namespace std; 3 typedef long long ll; 4 int main(){ 5 int t; 6 cin>>t; 7 while(t--){ 8 ll x,y, 阅读全文
posted @ 2020-02-24 17:24 AaronChang 阅读(117) 评论(0) 推荐(0) 编辑
摘要: A. Erasing Zeroes (模拟) 1 #include<bits/stdc++.h> 2 using namespace std; 3 typedef long long ll; 4 const int maxn = 1e5+5; 5 int main(){ 6 int t;cin>>t 阅读全文
posted @ 2020-02-24 17:18 AaronChang 阅读(103) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 ··· 13 下一页