Submission #30431

#TimeUsernameProblemLanguageResultExecution timeMemory
30431inqrGame (IOI14_game)C++14
100 / 100
543 ms10820 KiB
#include "game.h" #include <bits/stdc++.h> #define pb push_back #define mp make_pair #define rt insert #define st first #define nd second #define ll long long #define pii pair < int , int > #define DB printf("debug\n"); #define umax( x , y ) x = max( x , (y) ) #define umin( x , y ) x = min( x , (y) ) #define all(x) x.begin() , x.end() using namespace std; int conto[1505]; int root[1505]; int N,totno,maxque,maxyes,maxno; void initialize(int n) { N=n; maxque=(n)*(n-1)/(2); maxyes=n-1; maxno=maxque-maxyes; root[n]=n; //printf("n=%d maxque=%d maxyes=%d maxno=%d\n",n,maxque,maxyes,maxno); } int hasEdge(int u, int v) { conto[max(u,v)]++; if(conto[max(u,v)]==max(u,v))return 1; return 0; }
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...