Submission #719641

#TimeUsernameProblemLanguageResultExecution timeMemory
719641ToxtaqGame (IOI14_game)C++17
0 / 100
1 ms212 KiB
#include<bits/stdc++.h> #include "game.h" using namespace std; int n, cnt = 0; vector<int>degrees; void initialize(int N) { n = N; degrees.resize(n); } int hasEdge(int u, int v) { cnt++; if(cnt >= 4)return 1; return 0; } // //int main() //{ // mt19937 rng(chrono::steady_clock::now().time_since_epoch().count()); // int n; // cin >> n; // int cnt = n; // initialize(n); // vector<vector<bool>>grid(n, vector<bool>(n)); // for(int i = 0;i < n;++i)grid[i][i] = 1; // while(cnt < n * n){ // int i = rng() % n; // int j = rng() % n; // if(!grid[i][j]){ // cout << "(" << i << ", " << j << "): " << hasEdge(i, j) << '\n'; // grid[i][j] = 1; // grid[j][i] = 1; // cnt += 2; // } // } //}
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...