Submission #1360935

#TimeUsernameProblemLanguageResultExecution timeMemory
1360935kawhietMonster-Go (EGOI25_monstergo)C++20
12 / 100
0 ms464 KiB
#include <bits/stdc++.h>
using namespace std;

#ifdef LOCAL
#include "debug.h"
#else
#define dbg(...) 47
#endif

int main() {
    ios::sync_with_stdio(false);
    cin.tie(nullptr);
    vector<set<int>> a;
    for (int t = 0; t < 3; t++) {
        set<int> s;
        for (int j = 0; j < 13; j++) {
            s.insert(t * 13 + j);
        }
        for (int j = 0; j < 13; j++) {
            int x = t * 13 + j;
            s.erase(x);
            a.push_back(s);
            s.insert(x);
        }
    }
    int n;
    cin >> n;
    for (int i = 0; i < n; i++) {
        for (auto x : a[i]) {
            cout << x << ' ';
        }
        cout << '\n';
    }
    return 0;
}
#Result Execution timeMemoryGrader output
Fetching results...