Submission #123381

#TimeUsernameProblemLanguageResultExecution timeMemory
123381ekrem게임 (IOI14_game)C++98
0 / 100
2 ms376 KiB
#include <bits/stdc++.h> #include "game.h" #define st first #define nd second #define mp make_pair #define pb push_back #define mod 1000000007 #define N 1000005 using namespace std; typedef long long ll; int n, deg[N]; void initialize(int nn){ n = nn; } int hasEdge(int u, int v){u++;v++; int don = (deg[u] >= n - 2 or deg[v] >= n - 2); deg[u]++;deg[v]++; return don; } // int read_int() { // int x; // assert(scanf("%d", &x) == 1); // return x; // } // int main() { // freopen("in.txt", "r", stdin); // freopen("out.txt", "w", stdout); // int n, u, v; // n = read_int(); // initialize(n); // for (int i = 0; i < n * (n - 1) / 2; i++) { // u = read_int(); // v = read_int(); // printf("%d\n", hasEdge(u, v)); // } // return 0; // }
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...