| # | 제출 시각 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
|---|---|---|---|---|---|---|---|
| 1354490 | TroySer | Make them Meet (EGOI24_makethemmeet) | C++20 | 1 ms | 344 KiB |
#include <bits/stdc++.h>
using namespace std;
using ll = long long;
int main() {
ll N, M;
cin >> N >> M;
vector<vector<ll> > adjList(N);
for (ll i = 0; i < M; i++) {
ll ui, vi;
cin >> ui >> vi;
adjList[ui].push_back(vi);
adjList[vi].push_back(ui);
}
cout << N + 1 << endl;
for (ll i = 0; i <= N; i++) {
vector<ll> A(N);
for (ll j = 0; j < N; j++) {
A[(j + i) % N] = j/2;
}
for (ll j = 0; j < N; j++) {
if (j != 0) cout << " ";
cout << A[j];
}
cout << endl;
}
}| # | 결과 | 실행 시간 | 메모리 | 채점기 출력 |
|---|---|---|---|---|
| 결과를 불러오는 중입니다… | ||||
| # | 결과 | 실행 시간 | 메모리 | 채점기 출력 |
|---|---|---|---|---|
| 결과를 불러오는 중입니다… | ||||
| # | 결과 | 실행 시간 | 메모리 | 채점기 출력 |
|---|---|---|---|---|
| 결과를 불러오는 중입니다… | ||||
| # | 결과 | 실행 시간 | 메모리 | 채점기 출력 |
|---|---|---|---|---|
| 결과를 불러오는 중입니다… | ||||
| # | 결과 | 실행 시간 | 메모리 | 채점기 출력 |
|---|---|---|---|---|
| 결과를 불러오는 중입니다… | ||||
