제출 #1312681

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

int cnt[1502];
int N;

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

int hasEdge(int u, int v) {
    if(u>v)swap(u,v);
    cnt[u]++;
    
    if(cnt[u]==N-u-1){
        return 1;
    }
    return 0;
}
#결과 실행 시간메모리채점기 출력
결과를 불러오는 중입니다…
#결과 실행 시간메모리채점기 출력
결과를 불러오는 중입니다…
#결과 실행 시간메모리채점기 출력
결과를 불러오는 중입니다…