Submission #382010

#TimeUsernameProblemLanguageResultExecution timeMemory
382010VEGAnnHop (COCI21_hop)C++14
110 / 110
40 ms1388 KiB
#include <bits/stdc++.h>
#define sz(x) ((int)x.size())
#define PB push_back
#define i2 array<int,2>
using namespace std;
typedef long long ll;
const int MX = int(1e7) + 10;
const int oo = 2e9;
const int N = 1010;
ll x[N];
int n;

int main(){
    ios_base::sync_with_stdio(0); cin.tie(0);

#ifdef _LOCAL
    freopen("in.txt","r",stdin);
#endif // _LOCAL

    cin >> n;

    /// хотя бы один должен быть доступен, иначе ban

    for (int i = 1; i <= n; i++)
        cin >> x[i];

    int now = 0;

    for (int i = 1; i <= n; i++){
        for (int j = 1; j < i; j++)
            cout << ((++now) % 3) + 1 << " ";
        cout << '\n';
    }

    return 0;
}
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...