제출 #422366

#제출 시각아이디문제언어결과실행 시간메모리
422366flappybird게임 (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; }

컴파일 시 표준 에러 (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...