摘要:
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 阅读全文
摘要:
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 阅读全文
摘要:
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]; 阅读全文
摘要:
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 阅读全文
摘要:
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 阅读全文
摘要:
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> 阅读全文
摘要:
http://www.pipioj.online/problem.php?id=1025 显然,两个人的距离要么越来越远,要么先越来越近再越来越远,故对时间三分即可求出最短距离。 1 #define bug(x) cout<<#x<<" is "<<x<<endl 2 #define IO std: 阅读全文
摘要:
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 阅读全文
摘要:
https://www.luogu.com.cn/problem/UVA1438 题解建议参考lrj白书。 代码来自牛逼网友。 我只是存个板子。 1 #include <cstdio> 2 #include <cstring> 3 #include <cmath> 4 #include <cstdl 阅读全文
摘要:
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 阅读全文