Submission #1331434

#TimeUsernameProblemLanguageResultExecution timeMemory
1331434tuncay_pashaGame (IOI14_game)C++20
100 / 100
194 ms7036 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...