Submission #1026406

#TimeUsernameProblemLanguageResultExecution timeMemory
1026406MardonbekhazratovPrisoner Challenge (IOI22_prison)C++17
5 / 100
19 ms37956 KiB
#include "prison.h" #include <vector> #include <bits/stdc++.h> using namespace std; vector<vector<int>>ans; std::vector<std::vector<int>> devise_strategy(int N) { ans.assign(N,vector<int>(N+1)); iota(ans[0].begin(),ans[0].end(),0); ans[0][N]=N-1; for(int i=1;i<N;i++){ ans[i][0]=1; for(int j=1;j<=N;j++){ if(j<=i) ans[i][j]=-2; else ans[i][j]=-1; } } return ans; }
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...