版本比较
赛后总结
正文
增加 22 行删除 22 行
43 行未改动4445464748484950515211 行未改动6465666768686970717262 行未改动13513613713813913914014114214114214314414514651 行未改动19819920020120220320220320420520620729 行未改动23723823924024124124224324424524624724824924925025125225343 行未改动297298299300301301302303304305122 行未改动全部展开42842943043143243243343443543643743843944044044144244344422 行未改动46746846947047147147247347447543 行未改动51952052152252352352452552652752852953053153153253353453522 行未改动5585595605615625625635645655665 行未改动5725735745755765765775785795805795805815825825835845845855865875882 行未改动59159259359459559559659759859960043 行未改动// cout<<0;// return 0;// } int s=1e18,xx=-1e18,z=1e18,y=-1e18;
int num=0; for(int i=b+1000;i<d+1000;i++) { for(int j=a+1000;j<c+1000;j++)11 行未改动 }// cout<<xx<<" "<<s<<" "<<y<<" "<<z<<"\n"; if(num==0)cout<<0; else cout<<(xx-s+1)*(y-z+1);
return 0;}```## T262 行未改动 if(x>z) {// cout<<"x: "<<x<<" z: "<<z<<"\n"; z++; cout<<s[n]-x*a[x].first+z*y+g[x-1]-g[z-1]<<"\n"; cout<<s[n]-x*a[x].first+z*y+g[x-1]-g[z-1]<<"\n"; } else cout<<s[n]-x*a[x].first+z*y-(g[z]-g[x])<<"\n"; else cout<<s[n]-x*a[x].first+z*y-(g[z]-g[x])<<"\n";
} return 0;}```51 行未改动const int N=5050;const int M=1e5+10;const int mod=1e9+7;int n,m,k,s[N],c[N];int f[N];//f[i]音节和i的方案数 int g[N];//音节和为k以类型i结尾的方案数 int f[N];//f[i]音节和i的方案数int g[N];//音节和为k以类型i结尾的方案数int mp[30];int vis[N][N];int mypow(int a,int k){29 行未改动 if(s[j]>i)continue; f[i]=(f[i]+f[i-s[j]])%mod; } }
for(int i=1;i<=n;i++) { for(int j=1;j<=n;j++) { if(i==c[j])g[i]=(g[i]+f[k-s[j]])%mod; } }
int ans=1; for(int i=1;i<=26;i++) { int res=0;43 行未改动}struct S{ int yea,mon,day; string itm; int i; int i;};vector<S>ans;int sy=0,ey=0,sm=0,em=0,sd=0,ed=0;bool cmp(S x,S y)122 行未改动全部展开 { work(i,y,m,d); } } else else { for(int d=1;d<=28;d++) { work(i,y,m,d); } } } } } } } else {22 行未改动 { work(i,y,m,d); } } else else { for(int d=1;d<=28;d++) { work(i,y,m,d);43 行未改动 { work(i,y,m,d); } } else else { for(int d=1;d<=28;d++) { work(i,y,m,d); } } } } } } } else {22 行未改动 { work(i,y,m,d); } } else else { for(int d=1;d<=28;d++) { work(i,y,m,d);5 行未改动 { work(i,y,m,day[i]); } }
} }
sort(ans.begin(),ans.end(),cmp);
// cout<<ans.size()<<"\n";
for(auto v:ans) { for(int i=1;i<=8-to_string(v.yea).size();i++)cout<<0; cout<<v.yea;2 行未改动 if(v.day<10)cout<<0; cout<<v.day<<" "; cout<<v.itm<<"\n"; }
return 0;}```## 后记WTF,cdo大佬AK了!