제출 #1164057

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

const int sz = 3e5 + 9;
int used[sz];

void initialize(int __n)
{
    memset(used, 0, sizeof(used));
    return;
}

int hasEdge(int x, int y)
{
    ++used[max(x, y)];
    return used[max(x, y)] == max(x, y);
}
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...