| # | 제출 시각 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
|---|---|---|---|---|---|---|---|
| 1354366 | sally | Carnival (EGOI23_carnival) | C++20 | 1 ms | 1348 KiB |
#include<iostream>
#include<vector>
#include<cstring>
using namespace std;
const int mx = 1005;
bool ok[mx][mx];
int main() {
int N;
cin>>N;
memset(ok, true, sizeof(ok));
for(int i=1; i<N; i++) {
for(int j=i; j>=1; j--) {
int c;
cin>>c;
if(j<=i/2) {
ok[i][c] = false;
ok[c][i] = false;
}
}
}
vector<int> ans(N);
int now = 0;
for(int i=0; i<N; i+=2) ans[i] = now++;
for(int i=1; i<N; i+=2) ans[i] = now++;
for(int x: ans) cout<<x<<' ';
}| # | 결과 | 실행 시간 | 메모리 | 채점기 출력 |
|---|---|---|---|---|
| 결과를 불러오는 중입니다… | ||||
| # | 결과 | 실행 시간 | 메모리 | 채점기 출력 |
|---|---|---|---|---|
| 결과를 불러오는 중입니다… | ||||
| # | 결과 | 실행 시간 | 메모리 | 채점기 출력 |
|---|---|---|---|---|
| 결과를 불러오는 중입니다… | ||||
| # | 결과 | 실행 시간 | 메모리 | 채점기 출력 |
|---|---|---|---|---|
| 결과를 불러오는 중입니다… | ||||
| # | 결과 | 실행 시간 | 메모리 | 채점기 출력 |
|---|---|---|---|---|
| 결과를 불러오는 중입니다… | ||||
