• 2024-08-19暑假集训CSP提高模拟24
    暑假集训CSP提高模拟24\(T1\)P268.与和\(100pts\)原题:[ABC238D]ANDandSUM\(x,y\)下界显然为\(a\),不妨让\(y=a,x=s-a\)然后进行\(check\)。正确性由下一种做法可以进一步推导。点击查看代码intmain(){ freopen("and.in","r",stdin); freopen("and.out"
  • 2024-08-06暑假集训CSP提高模拟14
    暑假集训CSP提高模拟14组题人:@H_Kaguya|@LYinMX\(T1\)P209.BA\(30pts\)部分分\(30pts\):输出\(\left\lceil\dfrac{\sum\limits_{i=1}^{m}a_{i}}{n}\right\rceil\)。数形结合,将\(\{a\}\)抽象成矩形,烙饼抽象成海报覆盖,最终有\(\max(\max\limits_{i=1}^{m}
  • 2024-07-21暑假集训CSP提高模拟4
    暑假集训CSP提高模拟4\(T1\)P134.WhiteandBlack\(0pts\)原题:[ARC148C]LightsOutonTree翻转方式:从根节点进行\(DFS\),若遇到黑点就进行翻转。最后一定能使全树均为白点,即不存在无解的情况。进而有每个点仅会被主动翻转一次,且翻转顺序与最终结果无关。观察到