94分错39和44要注意把结果加上一个mod: 一定要加个mod! 一定要加个mod! 一定要加个mod! cout << (solve(str2)%mod - solve(str1)%mod+mod)%mod;