제출 #1290086

#제출 시각아이디문제언어결과실행 시간메모리
1290086hssaan_arif게임 (IOI14_game)C++20
15 / 100
1 ms572 KiB
#include <bits/stdc++.h>
#include "game.h"
using namespace std;

#define endl "\n"
#define pb push_back
// #define int long long
#define fi first
#define se second

const int N = 2e3 + 5, M = 1e9 + 7, LG = 20;

int cnt[N] , n , k;

void initialize(int m) {
    n = m;
}

int hasEdge(int u, int v) {
    cnt[u]++;
    cnt[v]++;
    if (cnt[u] == n-1 || cnt[v] == n-1){
        return 1;
    }else {
        if (k == 3){
            return 1;
        }
        k++;
        return 0;
    }
}
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...