摘要:
这道题不用写手写哈希,可以直接用STL里的map。但是NOI C艹不能用unordered_map(效率比较高) 所以我们需要在能省时间的地方尽量地省时间 #include<bits/stdc++.h> using namespace std; const int N=2e6+5; int T,n, 阅读全文
摘要:
http://noip.ybtoj.com.cn/contest/15/problem/4 这道题其实就是 数组分段的二维拓展,但是它求的是最大的最小值 #include<bits/stdc++.h> using namespace std; const int N=505; int n,m,A,B 阅读全文
摘要:
http://noip.ybtoj.com.cn/contest/15/problem/1 二分要养几只兔兔即可。 #include<bits/stdc++.h> using namespace std; const int N=55; int n,totfood; struct rabbit{ i 阅读全文