1078 求分数序列和 参考代码 - C++: #include <iostream> #include <iomanip> using namespace std; int main() { int n, q = 2