제출 #1140817

#제출 시각아이디문제언어결과실행 시간메모리
1140817BlockOG게임 (IOI14_game)C++20
0 / 100
0 ms328 KiB
#include <bits/stdc++.h> // mrrrow mnyaa ;3c // go play vivid/stasis! it's a really awesome free game on steam using namespace std; int usedc[1500]; bool used[1500]; int n; void initialize(int N) { n = N; } int hasEdge(int u, int v) { usedc[u]++, usedc[v]++; if (usedc[u] == n - 1 || usedc[v] == n - 1 && (!used[u] || !used[v])) { used[u] = true; used[v] = true; return true; } else { return false; } } // int main() { // int n; cin >> n; // initialize(n); // for (int i = 0; i < n * (n - 1) / 2; i++) { // int u, v; cin >> u >> v; // cout << hasEdge(u, v) << endl; // } // }
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...