Submission #421266

#TimeUsernameProblemLanguageResultExecution timeMemory
421266OzyGame (IOI14_game)C++17
100 / 100
392 ms7540 KiB
#include "game.h" #include <bits/stdc++.h> using namespace std; #define rep(i,a,b) for (int i = (a); i <= (b); i++) #define repa(i,a,b) for (int i = (a); i >= (b); i--) #define lli long long int #define debugsl(a) cout << #a << " = " << a << ", " #define debug(a) cout << #a << " = " << a << endl #define MAX 1500 lli N, cuenta[MAX]; void initialize(int n) { N = n; rep(i,0,n-1) cuenta[i] = i; } int hasEdge(int u, int v) { if (u > v) swap(u, v); cuenta[v]--; if (!cuenta[v]) return 1; else return 0; }
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...