- 博客(7)
- 收藏
- 关注
原创 HDU6178
#include using namespace std; typedef long long ll; namespace fastIO { #define BUF_SIZE 500000 //fread -> read bool IOerror = 0; inline char nc() { static char buf[BUF_SIZE],
2017-08-25 21:08:04 221
原创 HDU6172
套了杜教的板子。能力够了在手推 #include using namespace std; #define rep(i,a,n) for (int i=a;i<n;i++) #define per(i,a,n) for (int i=n-1;i>=a;i--) #define pb push_back #define mp make_pair #define all(x) (x).begin
2017-08-25 17:36:20 264
原创 HDU6180
排序完后,贪心的选择当前开始时间在前面结束时间离的最近的。 #include using namespace std; typedef long long ll; namespace fastIO { #define BUF_SIZE 1000000 //fread -> read bool IOerror = 0; inline char nc() {
2017-08-25 17:35:12 308 1
原创 Codeforces845C
扫描线的简单运用。 #include using namespace std; typedef long long ll; typedef pair P; const int N = 2E5 + 7; vector a; int n; int main() { std::ios::sync_with_stdio(false),cin.tie(0),cout.tie(0);
2017-08-23 22:11:57 195
原创 Codeforces 839B
Daenerys Targaryen has an army consisting of k groups of soldiers, the i-th group contains ai soldiers. She wants to bring her army to the other side of the sea to get the Iron Throne. She has rec
2017-08-16 01:59:23 240
原创 HDU6103
多校的一题竟然没做出来。 方法是枚举对称中心,然后向两边尺取法. #include using namespace std; int len, m, ans; char s[5007]; void judge(int x, int y) { int dis, l, r; dis = l = r = 0; while(y + r = 0) { if
2017-08-11 17:51:20 315
原创 UVA116
很大的一个错误。正向推只能保证前者最小,逆向才能保证字典序最小。附上WA的代码 #include using namespace std; const int N = 12, M = 102; int e[N][M], n, m; int dp[N][M], pre[N][M]; void ptr() { for(int i = 1;i <= n;i ++) { f
2017-08-02 18:21:14 164
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人