绝密文件(黑科技)

(1) 数学方面:非齐次线性方程的解 = 它对应的齐次线性方程的解 + 一个特解。
(2) stringstream的用法:

#include 
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 
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;
}

你可能感兴趣的:(#,题目总结的经验)