Submission #431889

#TimeUsernameProblemLanguageResultExecution timeMemory
431889REALITYNBGame (IOI14_game)C++17
100 / 100
581 ms22852 KiB
#include <bits/stdc++.h> #include "game.h" using namespace std; vector<vector<int>> lft; vector<int> cnt ; void initialize(int n){ lft.resize(n,vector<int>(n,-1)) ; cnt.resize(n) ; for(int i=0;i<n;i++) cnt[i]=n-1-i ; return ; } int hasEdge(int a , int b){ if(a>b) swap(a,b); if(lft[a][b]!=-1){ return lft[a][b]; } cnt[a]--; if(cnt[a]){ lft[a][b]=0 ; return lft[a][b]; } lft[a][b]=1; return 1 ; }
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...