摘要: Comet OJ Contest 8 "传送门" A.杀手皇后 签到。 Code cpp include using namespace std; typedef long long ll; const int N = 1e5 + 5; int n; int w[N]; ll sumv, sum; 阅读全文
posted @ 2019-08-13 21:25 heyuhhh 阅读(207) 评论(0) 推荐(0) 编辑
摘要: Codeforces Round 578 (Div. 2) "传送门" A. Hotelier 暴力即可。 Code cpp include using namespace std; typedef long long ll; const int N = 2e5 + 5; int t, n, m, 阅读全文
posted @ 2019-08-13 20:48 heyuhhh 阅读(255) 评论(2) 推荐(0) 编辑
摘要: 2019牛客暑期多校训练营(第八场) "传送门" A.All one Matrices 枚举每一行作为极大矩阵的底部,然后枚举列根据$up[i][j]$来确定矩阵高度,通过单调栈找到其左右最远扩展位置,之后通过预处理出行$1$个数的前缀和,判断一下下一行对应位置是否全为$1$即可。 Code cpp 阅读全文
posted @ 2019-08-13 20:32 heyuhhh 阅读(348) 评论(0) 推荐(0) 编辑
该文被密码保护。 阅读全文
posted @ 2019-08-13 09:45 heyuhhh 阅读(30) 评论(0) 推荐(0) 编辑