出题人让我写题解了,他人真好。 Subtask 1 让你输出样例你就输出呗。 Subtask 2 不就是 a+ba+ba+b 吗? Subtask 3 不就是 a+bmod pa+b\mod pa+bmodp 吗? 代码 你还想要代码呢?想得美