# | Submission time | Handle | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
433859 | 2021-06-20T11:34:19 Z | medmdg | Game (IOI14_game) | C++14 | 1 ms | 204 KB |
#include "game.h" #include<bits/stdc++.h> #define ll int using namespace std; vector<ll> c; vector<bool> vis; ll h=0; void initialize(int n) { c.clear(); vis.clear(); for(int i=0;i<n;i++){ c.push_back(0); vis.push_back(false); } } int hasEdge(int u, int v) { h++; ll n=c.size(); if(h==c.size()) return 1; c[u]++; c[v]++; if((c[u]==n&&!vis[u])||c[v]==n&&!vis[v]){ vis[u]=true; vis[v]=true; return 1; } return 0; }
Compilation message
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Incorrect | 1 ms | 204 KB | Output isn't correct |
2 | Halted | 0 ms | 0 KB | - |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Incorrect | 1 ms | 204 KB | Output isn't correct |
2 | Halted | 0 ms | 0 KB | - |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Incorrect | 1 ms | 204 KB | Output isn't correct |
2 | Halted | 0 ms | 0 KB | - |