如果你在输出时使用了这种方式而导致 TLE:
std::cout << std::fixed << std::setprecision(0); // ... std::cout << x.real() << ' ';
请换用一种更快的舍入方法:
std::cout << static_cast<int>(x.real() + 0.5) << ' ';
可以变快接近一秒。