# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
733188 | yeyso | Game (APIO22_game) | C++17 | 4027 ms | 12112 KiB |
This submission is migrated from previous version of oj.uz, which used different machine for grading. This submission may have different result if resubmitted.
#include "game.h"
#include <bits/stdc++.h>
using namespace std;
vector<vector<int>> adj;
int n;
int x;
int y;
int k;
void init(int n, int k) {
//n += 1;
vector<vector<int>> matrix(n, vector<int>(n, INT_MAX / 3));
vector<vector<int>> dma(n, vector<int>(n, INT_MAX / 3));
adj = matrix;
for(int i = 0; i < k - 1; i ++){
adj[i][i+1] = -1;
/*for(int j = 0; j < n; j ++){
adj[i][j] = -1;
adj[j][i] = -1;
}*/
//dma[i][i+1] = -1;
}
/*for(int i = 0; i < n; i ++){
for(int j = 0; j < k - 1;)
}*/
x = n;
y = k;
}
int add_teleporter(int u, int v) {
n = x;
# | 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... |