This submission is migrated from previous version of oj.uz, which used different machine for grading. This submission may have different result if resubmitted.
#include "game.h"
#include <cmath>
#include <cstdio>
#include <vector>
#include <iostream>
#include <algorithm>
#include <utility>
#include <queue>
#include <map>
#include <iomanip>
#include <stack>
#include <fstream>
using namespace std;
vector<int>preguntas;
void initialize(int n) {
preguntas.assign(n,0);
}
int hasEdge(int u, int v) {
if(u>v){
preguntas[u]++;
if(preguntas[u]==u)return 1;
else return 0;
}
else{
preguntas[v]++;
if(preguntas[v]==v)return 1;
else return 0;
}
}
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |