题解,作业*2

T1

模拟

T2

DP

T3

容斥

原文地址:https://www.cnblogs.com/sssy/p/9511657.html