(UPD: 2024-12-04 14:48 UTC) Judge is not working due to Cloudflare incident. (URL) We can do nothing about it, sorry. After the incident is resolved, we will grade all submissions.

제출 #382010

#제출 시각아이디문제언어결과실행 시간메모리
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...