摘要:
https://codeforc.es/problemset/problem/1216/C 判断一个矩形是否被另外两个矩形完全覆盖,这题是我是用离散化的方法来做的。 1 #include<bits/stdc++.h> 2 using namespace std; 3 int x[7],y[7],tx 阅读全文
posted @ 2019-09-26 22:56
zjxxcn
阅读(228)
评论(0)
推荐(0)
摘要:
https://codeforc.es/problemset/problem/1216/B 这题还是贪心,直接排序即可 。 1 #include<bits/stdc++.h> 2 using namespace std; 3 int const N=1000+10; 4 int a[N],n,b[N 阅读全文
posted @ 2019-09-26 22:14
zjxxcn
阅读(211)
评论(0)
推荐(0)
摘要:
https://codeforc.es/problemset/problem/1216/A 本题直接$O(n)$贪心。 1 #include<bits/stdc++.h> 2 using namespace std; 3 int const N=200000+10; 4 char s[N]; 5 i 阅读全文
posted @ 2019-09-26 22:04
zjxxcn
阅读(157)
评论(0)
推荐(0)

浙公网安备 33010602011771号