제출 #1331487

#제출 시각아이디문제언어결과실행 시간메모리
1331487tuncay_pasha게임 (IOI14_game)C++20
0 / 100
1 ms344 KiB
#include "game.h"

int count[1500], N;

void initialize(int n) {
  N = n;
  for (int i = 0; i < n; i++)
    count[i] = 0;
}

int hasEdge(int u, int v) {
  int target = (u < v) ? u : v;
  count[target]++;
  if (count[target] == target)
    return 1;
  return 0;
}
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...