版本比较
一个做题记录
正文
增加 24 行删除 25 行
1234565787891091011121315141516171824 行未改动4344454648474849505143 行未改动959697981009910010110210344 行未改动14814915015115315215315415515631 行未改动188189190191193192193194195196131 行未改动全部展开328329330331333332333334335336230 行未改动全部展开56756856957057257157257357457568 行未改动64464564664764964864965065165245 行未改动69869970070170370270370470570626 行未改动733734735736738737738739740741218 行未改动全部展开960961962963965964965966967968233 行未改动全部展开1202120312041205120712061207120812091210305 行未改动全部展开1516151715181519152115201521152215231524281 行未改动全部展开180618071808180918111810181118121813181433 行未改动184818491850185118531852185318541855185634 行未改动189118921893189418961895189618971898189932 行未改动193219331934193519371936193719381939194031 行未改动197219731974197519771976197719781979198030 行未改动201120122013201420162015201620172018201945 行未改动206520662067206820702069207020712072#### 前盐
暂时不记了,因为我颓。
rt.一个简单的做题记录。
为了进度代码注释我将少写废话。课程图:[ljtyj](https://www.luogu.com.cn/user/1630985)
特别鸣谢:[ljtyj](https://www.luogu.com.cn/user/1630985) 提供课程图。
—— by ws## 12.15-12.21 week 1.模拟 ## 12.15-12.21 week 1.模拟课程图:
::::success[[P1047 [NOIP 2005 普及组] 校门外的树](https://www.luogu.com.cn/problem/P1047)]Time: 2025.12.15 Mon. 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. Time: 2025.12.15 Mon.
题目难度:${\color{red}入门}$
很简单,直接用数组存坐标遍历即可。43 行未改动```::::
::::success[[P1042 [NOIP 2003 普及组] 乒乓球](https://www.luogu.com.cn/problem/P1042)]Time: 2025.12.15 Mon. 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. Time: 2025.12.16 Tue.
题目难度:${\color{orange}普及-}$
这题虽然很简单,但是千万不要想复杂。31 行未改动```::::
::::success[[P1563 [NOIP 2016 提高组] 玩具谜题](https://www.luogu.com.cn/problem/P1563)]Time: 2025.12.16 Tue. 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++){ 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; return 0;}```::::
45 行未改动 if(s[j]-'0'==k)cnt++; } cout<<cnt<<"\n"; } return 0; return 0;}```::::
26 行未改动 cnt+=i/k;//累加 } } cout<<cnt<<"\n"; return 0; return 0;}```::::
218 行未改动全部展开
const int MAXN=1e4+5;struct info{ int bh; int fs; 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; return 0;}```::::
33 行未改动 printf("%d ",qzh[i][j]); } printf("\n"); } return 0; return 0;}```::::
34 行未改动 sum+=(i+j)^(qzh[i][j]); } } printf("%lld\n",sum); return 0; return 0;}```::::
32 行未改动 } } } printf("%d %d\n",index_x,index_y); return 0; return 0;}```::::
31 行未改动 } } } printf("%d\n",maxn); return 0; 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; 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; return 0;}```::::