前言
斐大爷NBNBNB
成绩
JJJ表示初中,HHH表示高中后面加的是几年级
RankRankRank | PersonPersonPerson | ScoreScoreScore | AAA | BBB | CCC |
---|---|---|---|---|---|
555 | (J−2)WYC(J-2)WYC(J−2)WYC | 210210210 | 100100100 | 100100100 | 101010 |
666 | (J−3)ZZY(J-3)ZZY(J−3)ZZY | 200200200 | 100100100 | 100100100 | 000 |
666 | (J−3)WHF(J-3)WHF(J−3)WHF | 200200200 | 100100100 | 100100100 | 000 |
292929 | (J−2)XXY(J-2)XXY(J−2)XXY | 100100100 | 100100100 | 000 | 000 |
464646 | (J−2)HZB(J-2)HZB(J−2)HZB | 606060 | 505050 | 000 | 101010 |
464646 | (J−3)QYH(J-3)QYH(J−3)QYH | 606060 | 101010 | 000 | 505050 |
515151 | (J−2)LW(J-2)LW(J−2)LW | 505050 | 404040 | 101010 | 000 |
515151 | (J−2)ZYC(J-2)ZYC(J−2)ZYC | 505050 | 505050 | 000 | 000 |
515151 | (J−2)LRZ(J-2)LRZ(J−2)LRZ | 505050 | 303030 | 202020 | 000 |
555555 | (J−2)XJQ(J-2)XJQ(J−2)XJQ | 404040 | 303030 | 101010 | 000 |
555555 | (J−2)HJQ(J-2)HJQ(J−2)HJQ | 404040 | 404040 | 000 | 000 |
正题
T1:jzoj2679−T1:jzoj2679-T1:jzoj2679−跨时代【背包,dfs,,dfs,,dfs,状压】
链接:
https://blog.csdn.net/Mr_wuyongcong/article/details/94854654
T2:P2579,jzoj2288−[ZJOI2005]T2:P2579,jzoj2288-[ZJOI2005]T2:P2579,jzoj2288−[ZJOI2005]沼泽鳄鱼【矩阵乘法】
链接:
https://blog.csdn.net/Mr_wuyongcong/article/details/94855471
T3:P4130,jzoj1214−[NOI2007]T3:P4130,jzoj1214-[NOI2007]T3:P4130,jzoj1214−[NOI2007]项链工厂【线段树】
链接:
https://blog.csdn.net/Mr_wuyongcong/article/details/94871657
someofcodesome\ of\ codesome of code
T210T2\ 10T2 10分codecodecode
#include<cstdio>
#include<algorithm>
using namespace std;
const int N=1100;
int n,C,c[N],q,nes[N];
int ask(int x,int y,bool flag)
{int i=x,last=0,ans=0;for(int i=x;i!=y;i=(i%n)+1){if(c[i]!=last) ans++;last=c[i];}if(c[i]!=last)ans++;if(flag&&c[1]==c[n]&&ans!=1) ans--;return ans;
}
int main()
{scanf("%d%d",&n,&C);for(int i=1;i<=n;i++)scanf("%d",&c[i]);scanf("%d",&q);for(int i=1;i<=q;i++){char op[5];int x,y,z;scanf("%s",op);if(op[0]=='C'&&op[1]=='S'){scanf("%d%d",&x,&y);printf("%d\n",ask(x,y,0));}else if(op[0]=='C')printf("%d\n",ask(1,n,1));if(op[0]=='R'){scanf("%d",&x);for(int i=1;i<=n;i++)nes[(x+i-1)%n+1]=c[i];for(int i=1;i<=n;i++)c[i]=nes[i];}if(op[0]=='F')for(int i=2;i<n-i+2;i++)swap(c[i],c[n-i+2]);if(op[0]=='S'){scanf("%d%d",&x,&y);swap(c[x],c[y]);}if(op[0]=='P'){scanf("%d%d%d",&x,&y,&z);for(int i=x;i!=y;i=(i%n)+1)c[i]=z;c[y]=z;}}
}
总结
今天换个形式写吧。
今天还行就是T3T3T3暴力写爆了。T1T1T1其实还挺考思路的,想了很久,一些普通的性质挺重要的。
然后T2T2T2之前见过并且写过类似的就轻松切掉咯
;|\color{blue}\texttt{;|};|
最后的最后
我TM蔡的一匹呀像极了CXK\color{red}\begin{matrix}\huge我_{TM}^{蔡_{的_{一_{匹_{呀}}}}} \end{matrix}\color{white}\\\texttt{像极了CXK}我TM蔡的一匹呀像极了CXK