版本比较
题解:P15227 [SWERC 2017] Frosting on the Cake
正文
增加 2 行删除 2 行
49 行未改动505152535454555657585 行未改动646566676868697049 行未改动 for(int i=0,x;i<n;i++) { cin>>x; sa[i%3]+=x; } // 读入B数组,按i%3分组求和 // 读入B数组,按i%3分组求和 for(int i=0,x;i<n;i++) { cin>>x; sb[i%3]+=x; }5 行未改动 cout<<ans[0]<<' '<<ans[1]<<' '<<ans[2]<<endl; return 0;}```[记录](https://www.luogu.com.cn/record/261638846) [记录](https://www.luogu.com.cn/record/261638846)
~~我是第一条题解~~