版本比较
DP tricks
正文
增加 3 行删除 3 行
113 行未改动全部展开11411511611711811811912012112217 行未改动1401411421431441441451461471484 行未改动15315415515615715715815916016121 行未改动113 行未改动全部展开 }// for(int i=1;i<=n;i++){// for(int j=1;j<=10;j++){// if(pp[i]){// //// }// }// } for(int i=1;i<=1;i++){17 行未改动 } if(ans==8){ cout<<"-1\n"; continue;
} cout<<ans<<endl; } return;4 行未改动#elseint main()#endif{
// freopen("sor.in","r",stdin);// freopen("sor.out","w",stdout); ios::sync_with_stdio(0); cin.tie(0);21 行未改动