| # | 제출 시각 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
|---|---|---|---|---|---|---|---|
| 382009 | VEGAnn | Hop (COCI21_hop) | C++14 | 0 ms | 0 KiB |
이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
#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];
dp[1][0] = dp[1][1] = dp[1][2] = 0;
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;
}
