Submission #608741

#TimeUsernameProblemLanguageResultExecution timeMemory
608741Duy_eMonster Game (JOI21_monster)C++17
0 / 100
327 ms1068 KiB
#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)

monster.cpp:7:6: warning: '{anonymous}::example_variable' defined but not used [-Wunused-variable]
    7 | bool example_variable;
      |      ^~~~~~~~~~~~~~~~
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...