Submission #422366

#TimeUsernameProblemLanguageResultExecution timeMemory
422366flappybirdGame (IOI14_game)C++14
0 / 100
1 ms204 KiB
#include "game.h" #include <bits/stdc++.h> #pragma GCC optimize("O3") #pragma GCC optimize("Ofast") #pragma GCC optimize("unroll-loops") #pragma GCC target("avx,avx2,fma") using namespace std; typedef int ll; #define MAX 1900 ll N; ll deg[MAX]; void initialize(int n) { N = n; ll i, j; for (i = 0; i < n; i++) deg[i] = N - 1; } int hasEdge(int u, int v) { if (deg[u] == 1 || deg[v] == 1) return 1; deg[u]--; deg[v]--; return 0; }

Compilation message (stderr)

game.cpp: In function 'void initialize(int)':
game.cpp:18:8: warning: unused variable 'j' [-Wunused-variable]
   18 |  ll i, j;
      |        ^
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...