| # | 제출 시각 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
|---|---|---|---|---|---|---|---|
| 1357402 | kawhiet | 게임 (APIO22_game) | C++20 | 13 ms | 428 KiB |
#include <bits/stdc++.h>
#include "game.h"
using namespace std;
constexpr int N = 1000;
bitset<N> t[N];
int n, k;
void init(int _n, int _k) {
n = _n;
k = _k;
for (int i = 0; i < k - 1; i++) {
for (int j = i + 1; j < k; j++) {
t[i][j] = 1;
}
}
}
int add_teleporter(int u, int v) {
for (int i = 0; i < n; i++) {
if (t[i][u]) {
t[i][v] = 1;
t[i] |= t[v];
}
}
t[u] |= t[v];
t[u][v] = 1;
for (int i = 0; i < k; i++) {
if (t[i][i]) {
return 1;
}
}
return 0;
}| # | Verdict | Execution time | Memory | Grader output |
|---|---|---|---|---|
| Fetching results... | ||||
| # | Verdict | Execution time | Memory | Grader output |
|---|---|---|---|---|
| Fetching results... | ||||
| # | Verdict | Execution time | Memory | Grader output |
|---|---|---|---|---|
| Fetching results... | ||||
| # | Verdict | Execution time | Memory | Grader output |
|---|---|---|---|---|
| Fetching results... | ||||
| # | Verdict | Execution time | Memory | Grader output |
|---|---|---|---|---|
| Fetching results... | ||||
