제출 #1087730

#제출 시각아이디문제언어결과실행 시간메모리
1087730MrPavlito게임 (IOI14_game)C++17
0 / 100
1 ms348 KiB
#include "game.h" #include <bits/stdc++.h> #define pb push_back #define mp make_pair #define all(x) (x).begin(),(x).end() #define fi first #define sc second #define pii pair<int,int> using namespace std; const int MAXN = 1500+5; const int mod7 = 1e9+7; const long long inf = 1e18; int N; int cnt[MAXN]; map<pii, bool>mapa; void initialize(int n) { N = n; } int hasEdge(int u, int v) { //if(u>v)swap(u,v); //if(mapa.count({u,v}))return mapa[{u,v}]; cnt[u] ++; cnt[v]++; int tru = cnt[u]; int trv = cnt[v]; if(cnt[u] == N-1)return 1; if(cnt[v] == N-1)return 1; return 0; }

컴파일 시 표준 에러 (stderr) 메시지

game.cpp: In function 'int hasEdge(int, int)':
game.cpp:29:9: warning: unused variable 'tru' [-Wunused-variable]
   29 |     int tru = cnt[u];
      |         ^~~
game.cpp:30:9: warning: unused variable 'trv' [-Wunused-variable]
   30 |     int trv = cnt[v];
      |         ^~~
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...