Submission #68714

#TimeUsernameProblemLanguageResultExecution timeMemory
68714MANcityGame (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; } }

Compilation message (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...