Submission #608745

# Submission time Handle Problem Language Result Execution time Memory
608745 2022-07-27T09:50:37 Z Duy_e Monster Game (JOI21_monster) C++17
0 / 100
205 ms 280 KB
#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

monster.cpp:7:6: warning: '{anonymous}::example_variable' defined but not used [-Wunused-variable]
    7 | bool example_variable;
      |      ^~~~~~~~~~~~~~~~
# Verdict Execution time Memory Grader output
1 Incorrect 0 ms 208 KB Wrong Answer [3]
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 0 ms 208 KB Wrong Answer [3]
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 205 ms 280 KB Wrong Answer [6]
2 Halted 0 ms 0 KB -