正文
增加 22 行删除 22 行
2 行未改动345678910111213141516171824 行未改动43444546474849505143 行未改动959697989910010110210344 行未改动14814915015115215315415515631 行未改动188189190191192193194195196131 行未改动全部展开328329330331332333334335336230 行未改动全部展开56756856957057157257357457568 行未改动64464564664764864965065165245 行未改动69869970070170270370470570626 行未改动733734735736737738739740741218 行未改动全部展开960961962963964965966967968233 行未改动全部展开120212031204120512061207120812091210305 行未改动全部展开151615171518151915201521152215231524281 行未改动全部展开18061807180818091810181118121813181433 行未改动18481849185018511852185318541855185634 行未改动18911892189318941895189618971898189932 行未改动19321933193419351936193719381939194031 行未改动19721973197419751976197719781979198030 行未改动20112012201320142015201620172018201945 行未改动206520662067206820692070207120722 行未改动暂时不记了,因为我颓。rt.一个简单的做题记录。课程图:[ljtyj](https://www.luogu.com.cn/user/1630985)## 12.15-12.21 week 1.模拟课程图:::::success[[P1047 [NOIP 2005 普及组] 校门外的树](https://www.luogu.com.cn/problem/P1047)]Time: 2025.12.15 Mon.题目难度:${\color{red}入门}$一道简单又经典的 noip 题目。没啥好说的,会数组就会这个。24 行未改动```::::::::success[[P2670 [NOIP 2015 普及组] 扫雷游戏](https://www.luogu.com.cn/problem/P2670)]Time: 2025.12.15 Mon.题目难度:${\color{red}入门}$很简单,直接用数组存坐标遍历即可。43 行未改动```::::::::success[[P1042 [NOIP 2003 普及组] 乒乓球](https://www.luogu.com.cn/problem/P1042)]Time: 2025.12.15 Mon.题目难度:${\color{orange}普及-}$被打了近 2 个月乒乓球然后忘了记分规则的自己菜笑了。44 行未改动```::::::::success[[P1190 [NOIP 2010 普及组] 接水问题](https://www.luogu.com.cn/problem/P1190)]Time: 2025.12.16 Tue.题目难度:${\color{orange}普及-}$这题虽然很简单,但是千万不要想复杂。31 行未改动```::::::::success[[P1563 [NOIP 2016 提高组] 玩具谜题](https://www.luogu.com.cn/problem/P1563)]Time: 2025.12.16 Tue.题目难度:${\color{orange}普及-}$先贴代码,图还没画:131 行未改动全部展开else if(fx_C==4){if(index_Cy>1&&a[index_Cx][index_Cy-1]!='*')index_Cy--;else fx_C=1;}if(fx_F==1){if(index_Fx>1&&a[index_Fx-1][index_Fy]!='*')index_Fx--;else fx_F=2;}230 行未改动全部展开cin>>s>>n;ll len=s.length();for(ll i=0;i<len;i++)a[i+1]=s[i]-'0';for(ll i=1;i<=len;i++){y=y*10+a[i];res[i]=y/n;y%=n;}68 行未改动}s=gj_j(s,t);//记录总和}cout<<s<<"\n";return 0;}```::::45 行未改动if(s[j]-'0'==k)cnt++;}cout<<cnt<<"\n";}return 0;}```::::26 行未改动cnt+=i/k;//累加}}cout<<cnt<<"\n";return 0;}```::::218 行未改动全部展开const int MAXN=1e4+5;struct info{int bh;int fs;};struct info a[MAXN];bool cmp(info a,info b){if(a.fs==b.fs)return a.bh<b.bh;233 行未改动全部展开}}while(next_permutation(slj+1,slj+9+1));if(flag==0)printf("No!!!\n");return 0;}```::::::::success[[P1157 组合的输出](https://www.luogu.com.cn/problem/P1157)]305 行未改动全部展开}}for(int i=len;i>=1;i--)printf("%d",a[n][i]);return 0;}```::::::::success[[P1028 [NOIP 2001 普及组] 数的计算](https://www.luogu.com.cn/problem/P1028)]281 行未改动全部展开a[i]=a[i-1]+cf[i];minn=min(minn,a[i]);}printf("%d\n",minn);return 0;}```::::33 行未改动printf("%d ",qzh[i][j]);}printf("\n");}return 0;}```::::34 行未改动sum+=(i+j)^(qzh[i][j]);}}printf("%lld\n",sum);return 0;}```::::32 行未改动}}}printf("%d %d\n",index_x,index_y);return 0;}```::::31 行未改动}}}printf("%d\n",maxn);return 0;}```::::30 行未改动qzh[i]=qzh[i-1]+cf[i];sum=sum+min(c[i]+b[i]*qzh[i],a[i]*qzh[i]);}printf("%lld\n",sum);return 0;}```::::45 行未改动for(int i=1;i<=n;i++){if(qzh_yellow[i]!=0&&qzh_blue[i]!=0&&qzh_red[i]==0)cnt++;}printf("%d\n",cnt);return 0;}```::::2 行未改动345678910111213141516171824 行未改动43444546474849505143 行未改动959697989910010110210344 行未改动14814915015115215315415515631 行未改动188189190191192193194195196131 行未改动全部展开328329330331332333334335336230 行未改动全部展开56756856957057157257357457568 行未改动64464564664764864965065165245 行未改动69869970070170270370470570626 行未改动733734735736737738739740741218 行未改动全部展开960961962963964965966967968233 行未改动全部展开120212031204120512061207120812091210305 行未改动全部展开151615171518151915201521152215231524281 行未改动全部展开18061807180818091810181118121813181433 行未改动18481849185018511852185318541855185634 行未改动18911892189318941895189618971898189932 行未改动19321933193419351936193719381939194031 行未改动19721973197419751976197719781979198030 行未改动20112012201320142015201620172018201945 行未改动206520662067206820692070207120722 行未改动暂时不记了,因为我颓。rt.一个简单的做题记录。课程图:[ljtyj](https://www.luogu.com.cn/user/1630985)## 12.15-12.21 week 1.模拟课程图:::::success[[P1047 [NOIP 2005 普及组] 校门外的树](https://www.luogu.com.cn/problem/P1047)]Time: 2025.12.15 Mon.题目难度:${\color{red}入门}$一道简单又经典的 noip 题目。没啥好说的,会数组就会这个。24 行未改动```::::::::success[[P2670 [NOIP 2015 普及组] 扫雷游戏](https://www.luogu.com.cn/problem/P2670)]Time: 2025.12.15 Mon.题目难度:${\color{red}入门}$很简单,直接用数组存坐标遍历即可。43 行未改动```::::::::success[[P1042 [NOIP 2003 普及组] 乒乓球](https://www.luogu.com.cn/problem/P1042)]Time: 2025.12.15 Mon.题目难度:${\color{orange}普及-}$被打了近 2 个月乒乓球然后忘了记分规则的自己菜笑了。44 行未改动```::::::::success[[P1190 [NOIP 2010 普及组] 接水问题](https://www.luogu.com.cn/problem/P1190)]Time: 2025.12.16 Tue.题目难度:${\color{orange}普及-}$这题虽然很简单,但是千万不要想复杂。31 行未改动```::::::::success[[P1563 [NOIP 2016 提高组] 玩具谜题](https://www.luogu.com.cn/problem/P1563)]Time: 2025.12.16 Tue.题目难度:${\color{orange}普及-}$先贴代码,图还没画:131 行未改动全部展开else if(fx_C==4){if(index_Cy>1&&a[index_Cx][index_Cy-1]!='*')index_Cy--;else fx_C=1;}if(fx_F==1){if(index_Fx>1&&a[index_Fx-1][index_Fy]!='*')index_Fx--;else fx_F=2;}230 行未改动全部展开cin>>s>>n;ll len=s.length();for(ll i=0;i<len;i++)a[i+1]=s[i]-'0';for(ll i=1;i<=len;i++){y=y*10+a[i];res[i]=y/n;y%=n;}68 行未改动}s=gj_j(s,t);//记录总和}cout<<s<<"\n";return 0;}```::::45 行未改动if(s[j]-'0'==k)cnt++;}cout<<cnt<<"\n";}return 0;}```::::26 行未改动cnt+=i/k;//累加}}cout<<cnt<<"\n";return 0;}```::::218 行未改动全部展开const int MAXN=1e4+5;struct info{int bh;int fs;};struct info a[MAXN];bool cmp(info a,info b){if(a.fs==b.fs)return a.bh<b.bh;233 行未改动全部展开}}while(next_permutation(slj+1,slj+9+1));if(flag==0)printf("No!!!\n");return 0;}```::::::::success[[P1157 组合的输出](https://www.luogu.com.cn/problem/P1157)]305 行未改动全部展开}}for(int i=len;i>=1;i--)printf("%d",a[n][i]);return 0;}```::::::::success[[P1028 [NOIP 2001 普及组] 数的计算](https://www.luogu.com.cn/problem/P1028)]281 行未改动全部展开a[i]=a[i-1]+cf[i];minn=min(minn,a[i]);}printf("%d\n",minn);return 0;}```::::33 行未改动printf("%d ",qzh[i][j]);}printf("\n");}return 0;}```::::34 行未改动sum+=(i+j)^(qzh[i][j]);}}printf("%lld\n",sum);return 0;}```::::32 行未改动}}}printf("%d %d\n",index_x,index_y);return 0;}```::::31 行未改动}}}printf("%d\n",maxn);return 0;}```::::30 行未改动qzh[i]=qzh[i-1]+cf[i];sum=sum+min(c[i]+b[i]*qzh[i],a[i]*qzh[i]);}printf("%lld\n",sum);return 0;}```::::45 行未改动for(int i=1;i<=n;i++){if(qzh_yellow[i]!=0&&qzh_blue[i]!=0&&qzh_red[i]==0)cnt++;}printf("%d\n",cnt);return 0;}```::::