- 2022-10-19Dytechlab Cup 2022 ABC
https://codeforces.com/contest/1737A.ElaSortingBooks题目大意:给定长度为n的字符串,我们要把它分成k个部分,求每个部分的MEX,以此达到字符串字典序最大。input5
- 2022-10-10Dytechlab Cup 2022
DytechlabCup2022\(A\)过太慢了QAQ。看来得多练(可能是因为刚上完数模,脑子一团浆糊)#include<bits/stdc++.h>usingnamespacestd;charans[105];intcnt[28];int
- 2022-10-08Dytechlab Cup 2022 (A - C)
DytechlabCup2022(A-C)A-ElaSortingBooks分析:贪心,将字符串每一位都存在map里,从前往后尽量让每一个\(n/k\)的段\(mex\)值尽量大,模拟mex即可。voidsolve(){