제출 #788078

#제출 시각아이디문제언어결과실행 시간메모리
788078Minindu206Game (IOI14_game)C++14
100 / 100
230 ms16444 KiB
#include "game.h"
#include <bits/stdc++.h>
using namespace std;
vector<int> cnt;
void initialize(int n)
{
    cnt.resize(n, 0);
}

int hasEdge(int u, int v)
{
    int w = max(u, v);
    cnt[w]++;
    if(cnt[w] == w)
        return 1;
    return 0;
}
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...