2019年11月14日
摘要: 1 #include<iostream> 2 #include<vector> 3 #include<algorithm> 4 #include<cstring> 5 #include<cstdio> 6 using namespace std; 7 8 const int INF = 0x3f3f 阅读全文
posted @ 2019-11-14 14:45 thjkhdf12 阅读(161) 评论(0) 推荐(0)
摘要: 1 #include<iostream> 2 #include<cstring> 3 #include<vector> 4 using namespace std; 5 6 const int maxn = 200010; 7 vector<int>nextval[maxn]; 8 9 inline 阅读全文
posted @ 2019-11-14 11:04 thjkhdf12 阅读(102) 评论(0) 推荐(0)
摘要: 1 #include<iostream> 2 using namespace std; 3 4 int main() 5 { 6 int T; 7 cin >> T; 8 while (T--) 9 { 10 int a, b; 11 cin >> a >> b; 12 if ((a == 2 || 阅读全文
posted @ 2019-11-14 10:19 thjkhdf12 阅读(172) 评论(0) 推荐(0)
摘要: 1 #include<iostream> 2 using namespace std; 3 4 template<class Type> 5 Type min(Type a, Type b) 6 { 7 return a < b ? a : b; 8 } 9 10 int main() 11 { 1 阅读全文
posted @ 2019-11-14 10:09 thjkhdf12 阅读(121) 评论(0) 推荐(0)