| # | 제출 시각 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
|---|---|---|---|---|---|---|---|
| 1327286 | orgiloogii | 게임 (IOI14_game) | C++20 | 163 ms | 7060 KiB |
#include "game.h"
#include <bits/stdc++.h>
using namespace std;
vector <int> cnt;
void initialize(int n) {
cnt.resize(n);
int res = n - 1;
for (int i = 0;i < n;i++) {
cnt[i] = res;
res--;
}
}
int hasEdge(int u, int v) {
if (u > v) swap(u, v);
cnt[u]--;
if (cnt[u] == 0) 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... | ||||
