上一页 1 ··· 4 5 6 7 8 9 10 11 12 ··· 18 下一页
摘要: https://www.luogu.com.cn/problem/P4779 1 #define IO std::ios::sync_with_stdio(0) 2 #include <bits/stdc++.h> 3 using namespace std; 4 #define mk make_p 阅读全文
posted @ 2020-08-14 22:10 Venux 阅读(171) 评论(0) 推荐(0) 编辑
摘要: https://www.luogu.com.cn/problem/P1175 1 #define bug(x) cout<<#x<<" is "<<x<<endl 2 #include<bits/stdc++.h> 3 using namespace std; 4 #define pa pair<i 阅读全文
posted @ 2020-08-13 00:35 Venux 阅读(212) 评论(0) 推荐(0) 编辑
摘要: 1 #define bug(x) cout<<#x<<" is "<<x<<endl 2 #include<bits/stdc++.h> 3 using namespace std; 4 const int N=1000; 5 stack<char>s; 6 int n; 7 char t[N]; 阅读全文
posted @ 2020-08-13 00:11 Venux 阅读(148) 评论(0) 推荐(0) 编辑
摘要: 1 #define bug(x) cout<<#x<<" is "<<x<<endl 2 #include<bits/stdc++.h> 3 using namespace std; 4 const int N=2e6+10; 5 6 stack<char>s; 7 queue<char>q; 8 阅读全文
posted @ 2020-08-13 00:09 Venux 阅读(117) 评论(0) 推荐(0) 编辑
摘要: 1 #define bug(x) cout<<#x<<" is "<<x<<endl 2 #define IO std::ios::sync_with_stdio(0) 3 #include <bits/stdc++.h> 4 using namespace std; 5 #define ll lo 阅读全文
posted @ 2020-07-21 15:32 Venux 阅读(199) 评论(0) 推荐(0) 编辑
摘要: https://www.luogu.com.cn/problem/P1030 1 #define bug(x) cout<<#x<<" is "<<x<<endl 2 #define IO std::ios::sync_with_stdio(0) 3 #include <bits/stdc++.h> 阅读全文
posted @ 2020-07-21 15:10 Venux 阅读(241) 评论(0) 推荐(0) 编辑
摘要: http://www.pipioj.online/problem.php?id=1025 显然,两个人的距离要么越来越远,要么先越来越近再越来越远,故对时间三分即可求出最短距离。 1 #define bug(x) cout<<#x<<" is "<<x<<endl 2 #define IO std: 阅读全文
posted @ 2020-06-09 01:34 Venux 阅读(210) 评论(0) 推荐(0) 编辑
摘要: http://hihocoder.com/problemset/problem/1338 区间dp。 d[l][r]表示[l,r]区间先手取能得到的最大分数。 1 #define bug(x) cout<<#x<<" is "<<x<<endl 2 #define IO std::ios::sync 阅读全文
posted @ 2019-12-18 19:42 Venux 阅读(258) 评论(0) 推荐(0) 编辑
摘要: https://www.luogu.com.cn/problem/UVA1438 题解建议参考lrj白书。 代码来自牛逼网友。 我只是存个板子。 1 #include <cstdio> 2 #include <cstring> 3 #include <cmath> 4 #include <cstdl 阅读全文
posted @ 2019-12-14 00:20 Venux 阅读(198) 评论(0) 推荐(0) 编辑
摘要: https://www.luogu.com.cn/problem/UVA1469 求空间两条线段距离,三维几何入门,存板子 1 #define IO std::ios::sync_with_stdio(0) 2 #include <bits/stdc++.h> 3 using namespace s 阅读全文
posted @ 2019-12-11 19:08 Venux 阅读(259) 评论(0) 推荐(0) 编辑
上一页 1 ··· 4 5 6 7 8 9 10 11 12 ··· 18 下一页