Submission #697995

#TimeUsernameProblemLanguageResultExecution timeMemory
697995Elvin_FritlGame (IOI14_game)C++17
0 / 100
1 ms312 KiB
#include "game.h" #include <bits/stdc++.h> using namespace std; const int mx = 1550; int v1[mx][mx], v2[mx]; void initialize(int n) { for(int i=0; i<n; ++i){ for(int j=i+1; j<n; ++j){ v1[i][j] = -1; } v2[i] = 0; } } int hasEdge(int l, int r) { if(v1[l][r] != -1){ return v1[l][r]; } if(++v2[r] == r){ v1[l][r] = 1; } else{ v1[l][r] = 0; } return v1[l][r]; }
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...