제출 #678581

#제출 시각아이디문제언어결과실행 시간메모리
678581penguin133게임 (IOI14_game)C++17
15 / 100
1 ms312 KiB
#include <bits/stdc++.h> #include "game.h" using namespace std; //#define int long long #define pi pair<int, int> #define pii pair<int, pi> #define fi first #define se second #ifdef _WIN32 #define getchar_unlocked _getchar_nolock #endif int N; void initialize(int n){ N = n; } int cnt = 0; int hasEdge(int u, int v){ if(max(u, v) == 1)return 1; else if(min(u, v) == 2)return 1; cnt++; if(cnt < N * (N - 1) / 2 - 2)return 0; else return 1; }
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...