题目链接 洛谷 P3984 高兴的津津 不想戳的看下图: 代码如下: #include <iostream> #include <cstdio> using namespace std; #define maxn 1000001 int fuc[maxn],sum,n,t