【題解】Codeforces 1391A. Suborrays

【題目敘述】http://codeforces.com/contest/1391/problem/A

#include <iostream>
using namespace std;
 
int t, n;
 
int main() {
    cin >> t;
    while (t--){
        cin >> n;
        for (int i = 1; i <= n; i++){
            cout << i << " ";
        }
        cout << "\n";
    }
}
分享本文 Share with friends