平时六测

  第一题:抽屉原理,维护前缀和,出现一样的中间就可以了; 我看成了不能选一样的数(其实我觉得题意有歧义,也可能是我太久没学语文了),难度翻翻,以后要认真审题;   #include<bits/stdc++.h> using namespace std; const int M = 1000005; bool dp[M]; int a[M], sum[M], ap[M]; int main(){
相关文章
相关标签/搜索