| # | 제출 시각 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
|---|---|---|---|---|---|---|---|
| 1366417 | stanirina | 게임 (IOI14_game) | C++20 | 0 ms | 344 KiB |
#include "game.h"
#include <bits/stdc++.h>
using namespace std;
int n;
vector<int> ost;
vector<int> m;
int cnt;
void initialize(int N) {
n=N;
ost.assign(n,0);
for(int i=0;i<n;i++)ost[i]=i;
m.assign(n,-1);
cnt=0;
}
int hasEdge(int u, int v) {
if(m[u]==-1){m[u]=cnt;cnt++;}
if(m[v]==-1){m[v]=cnt;cnt++;}
v=m[v];
u=m[u];
if(v<u)swap(u,v);
ost[v]--;
if(ost[u]==0 || ost[v]==0)return 1;
return 0;
}| # | 결과 | 실행 시간 | 메모리 | 채점기 출력 |
|---|---|---|---|---|
| 결과를 불러오는 중입니다… | ||||
| # | 결과 | 실행 시간 | 메모리 | 채점기 출력 |
|---|---|---|---|---|
| 결과를 불러오는 중입니다… | ||||
| # | 결과 | 실행 시간 | 메모리 | 채점기 출력 |
|---|---|---|---|---|
| 결과를 불러오는 중입니다… | ||||
