제출 #68714

#제출 시각아이디문제언어결과실행 시간메모리
68714MANcity게임 (IOI14_game)C++14
100 / 100
467 ms151468 KiB
#include<iostream> #include<cstdio> #include<fstream> #include<algorithm> #include<cmath> #include<map> #include<queue> #include<set> #include<stack> #include<string> #include<cstring> #include<vector> #include "game.h" using namespace std; #define for1(i,n) for(int i=1;i<=(int)n;i++) #define for0(i,n) for(int i=0;i<=(int)n;i++) #define forn(i,n) for(int i=n;i>=1;i--) #define fo(i,x,y) for(int i=x;i<=(int)y;i++) #define fr(i,x,y) for(int i=x;i>=(int)y;i--) #define pb push_back #define mp make_pair #define LL long long const LL Mod=1000*1000*1000+7; int n; int qan[1502]; void initialize(int n_0) { n=n_0; } int hasEdge(int u, int v) { int a=min(u,v); int b=max(u,v); if(qan[b]==(b-1)) return 1; else { qan[b]++; return 0; } }

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

game.cpp: In function 'int hasEdge(int, int)':
game.cpp:32:9: warning: unused variable 'a' [-Wunused-variable]
     int a=min(u,v);
         ^
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...