Submission #46782

# Submission time Handle Problem Language Result Execution time Memory
46782 2018-04-23T09:09:54 Z OneSubmissionMan Game (IOI14_game) C++11
0 / 100
2 ms 496 KB
# include "game.h"
# include <bits/stdc++.h>

# define x first    
# define y second
# define mp make_pair
// everything go according to my plan      
# define pb push_back
# define sz(a) (int)(a.size())
# define vec vector         
// shimkenttin kyzdary, dzyn, dzyn, dzyn...
# define y1    Y_U_NO_y1
# define left  Y_U_NO_left
# define right Y_U_NO_right  

using namespace std;

typedef pair <int, int> pii; 
typedef long long ll;
typedef long double ld;

const int Mod = (int)1e9 + 7;
const int MX = 1073741822;
const ll MXLL = 4e18;
const int Sz = 1110111;
// a pinch of soul
     
int deg[Sz];
int n;
    
void initialize(int _n) {
  n = _n;
  for (int i = 1; i <= n; i++) {
    deg[i] = n - 1;
  }    
}

int hasEdge(int u, int v) {
  deg[u]--, deg[v]--;
  return (!deg[u] || !deg[v]);
}

# Verdict Execution time Memory Grader output
1 Incorrect 2 ms 376 KB Output isn't correct
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 2 ms 496 KB Output isn't correct
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 2 ms 496 KB Output isn't correct
2 Halted 0 ms 0 KB -