Submission #1083828

#TimeUsernameProblemLanguageResultExecution timeMemory
1083828SamueleVidPrisoner Challenge (IOI22_prison)C++17
5 / 100
24 ms19044 KiB
#include <bits/stdc++.h> using namespace std; vector<vector<int>> devise_strategy(int N) { vector<vector<int>> sol(N + 1, vector<int>(N + 1)); sol[0][0] = 0; for (int i = 1; i <= N; i ++) { sol[0][i] = i; } for (int i = 1; i <= N; i ++) { sol[i][0] = 1; } for (int i = 1; i <= N; i ++) { for (int j = 1; j <= N; j ++) { sol[i][j] = (i < j) ? -1 : -2; } } return sol; }
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...