(1) 数学方面:非齐次线性方程的解 = 它对应的齐次线性方程的解 + 一个特解。
(2) stringstream的用法:
#include <bits/stdc++.h>
using namespace std;
typedef pair<int, int > PII;
const int N = 1e5 + 50;
int main()
{
string s; getline(cin, s);
stringstream ss;
ss.str(s);
while (ss >> s) {
cout << s << endl;
}
return 0;
}
///
#include <bits/stdc++.h>
using namespace std;
typedef pair<int, int > PII;
const int N = 1e5 + 50;
int main()
{
string s; getline(cin, s);
stringstream ss;
ss << s;
while (ss >> s) {
cout << s << endl;
}
return 0;
}