c++输入输出

时间:2021-09-02 14:28:34   收藏:0   阅读:16
int main() {
    int t, a, b;
    cin >> t;
    
    vector<vector<int>> m;
    for (int i = 1; i < t; ++i) {
        vector<int> m1;
        cin >> a >> b;
        m1.push_back(a);
        m1.push_back(b);
        m.push_back(m1);
    }
    print_::print1 prn;
    cout << m[1][0] << endl;
    cout << m[1][1] << endl;

    return 0;
}

技术分享图片

 

原文:https://www.cnblogs.com/221lin/p/15218043.html

评论(0
© 2014 bubuko.com 版权所有 - 联系我们:wmxa8@hotmail.com
打开技术之扣,分享程序人生!