# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
608745 | Duy_e | Monster Game (JOI21_monster) | C++17 | 205 ms | 280 KiB |
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 "monster.h"
using namespace std;
namespace {
bool example_variable;
} // namespace
const long long N = 2e5;
int cnt[N];
std::vector<int> Solve(int n) {
std::vector<int> T(n);
for (int i = 0; i < n; i ++) {
for (int j = 0; j < n; j ++) if (j != i)
cnt[i] += Query(i, j);
T[i] = cnt[i] - 1;
}
return T;
}
Compilation message (stderr)
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |