Submission #911349

#TimeUsernameProblemLanguageResultExecution timeMemory
911349mircea_007Game (IOI14_game)C++17
100 / 100
229 ms17296 KiB
#include "game.h"

const int MAXN = 1500;
int smaller_edges[MAXN];

void initialize( int n ) {}

int hasEdge( int u, int v ) {
  int max = u > v ? u : v;
  smaller_edges[max]++;
  
  return smaller_edges[max] == max;
}
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...