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