版本比较
刷计错题
标题
增加 1 行删除 1 行
11复赛刷题计划错题刷计错题正文
增加 152 行删除 49 行
123435678925 行未改动3536373837383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182394085414243444544 行未改动90919293138949596979853 行未改动152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308『AC』『AC』『AC』『AC』『AC』『AC』『AC』『AC』『AC』『AC』『AC』『AC』『AC』『AC』『AC』『AC』『AC』『AC』『AC』『AC』『AC』『AC』『AC』『AC』『AC』『AC』『AC』『AC』『AC』『AC』
题目:https://www.luogu.com.cn/problem/P5638
::::info[92分]::::info[『AC』92分]```c#include <bits/stdc++.h>using namespace std;#define int long long25 行未改动::::
----
题目:https://www.luogu.com.cn/problem/P1114
::::info[暴力60分]```c#include <bits/stdc++.h>using namespace std;#define int long long#define re return#define ew 5005#define sz 10000005#define sscc cout<<6;const int MOD=1e9+7;int a[sz];int sum[sz];int maxx=0;signed main(){ ios::sync_with_stdio(false); cin.tie(0); cout.tie(0); int n; cin>>n; for(int i=1;i<=n;i++){ cin>>a[i]; sum[i]=sum[i-1]+a[i]; } for(int i=1;i<=n;i++){ for(int j=i+1;j<=n;j++){ int num=j-i+1; int cnt=sum[j]-sum[i-1];// cout<<i<<" "<<j<<" "<<num<<" "<<cnt<<endl; if(cnt==0){ continue; } if((num%cnt==0) && (num/cnt==2)){ maxx=max(maxx,j-i+1); } } } cout<<maxx; re 0;}
::::
----
题目:https://www.luogu.com.cn/problem/B2160
::::info[只过了样例0分]::::info[『AC』只过了样例0分]```c#include <bits/stdc++.h>using namespace std;#define int long long44 行未改动----
题目:https://www.luogu.com.cn/problem/B3798
::::info[本地编译能过样例,全部MLE0分]::::info[『AC』本地编译能过样例,全部MLE0分]```c#include <bits/stdc++.h>using namespace std;//#define int long long53 行未改动::::
----
题目:https://www.luogu.com.cn/problem/P1413
::::info[『AC』30分]```c#include <bits/stdc++.h>using namespace std;#define int long long#define re return#define ew 5005#define sz 10000005#define sscc cout<<6;const int MOD=1e9+7;int mp[ew][ew];int maxx[sz];int sum;signed main(){ ios::sync_with_stdio(false); cin.tie(0); cout.tie(0); int n; cin>>n; for(int i=1;i<=n;i++){ int line,timee; cin>>line>>timee; maxx[line]=max(maxx[line],timee); mp[line][timee]++; } for(int i=1;i<=6;i++){ for(int j=1;j<=maxx[i];){ if(mp[i][j]!=0){ sum++; j+=60; } else{ j++; } } } cout<<sum; re 0;}
::::
----
题目:https://www.luogu.com.cn/problem/P1114
::::info[『AC』找区间和为0超时,40分]```c#include <bits/stdc++.h>using namespace std;#define int long long#define re return#define ew 5005#define sz 100005#define sscc cout<<6;const int MOD=1e9+7;int a[sz];int sum[sz];int maxx=0;signed main(){ ios::sync_with_stdio(false); cin.tie(0); cout.tie(0); int n; cin>>n; for(int i=1;i<=n;i++){ cin>>a[i]; if(a[i]==0){ a[i]=-1; } sum[i]=sum[i-1]+a[i]; } /* for(int i=1;i<=n;i++){ cout<<sum[i]<<" "; } cout<<endl; */ for(int i=1;i<=n;i++){ for(int j=1;j<=i;j++){ if((i-j)%2==0){ if(sum[i]-sum[j]==0){ maxx=max(maxx,i-j); } } } } cout<<maxx; re 0;}
::::
----
题目:https://www.luogu.com.cn/problem/P2058
::::info[『AC』40分]```c#include <bits/stdc++.h>using namespace std;#define int long long#define re return#define ew 5005#define sz 1000005#define sscc cout<<6;const int MOD=1e9+7;int ansint num[sz];struct node{ int x, t; }a;queue<node> q;signed main(){ int n; cin>>n; for(int i=1; i<=n; i++){ int t,k; cin>>t>>k; for(int j=1;j<=k;j++){ int x; cin>>x; q.push({x,t}); num[x]++; if(num[x]==1){ ans++; } } while(q.size() && a.t+86400<=t){ a=q.front(); q.pop(); num[a.x]--; if(num[a.x]==0){ ans--; } } cout<<ans<<endl; } re 0;}
::::
----
::::info[]```c::::
----