This submission is migrated from previous version of oj.uz, which used different machine for grading. This submission may have different result if resubmitted.
#pragma GCC optimize("O3")
#include "prison.h"
#include<bits/stdc++.h>
using namespace std;
vector<vector<int>> devise_strategy(int N) {
vector<vector<int>> ans(N + 1, vector<int>(N + 1, 0));
for(int i = 0; i <= N; i++){
for(int j = 0; j <= N; j++){
if(i == j) continue;
else if(i == 0) ans[i][j] = j;
else if(j == 0) ans[i][j] = 1;
else{
if (i < j) ans[i][j] = -1;
else ans[i][j] = -2;
}
}
}
return ans;
}
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |