# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
839832 | happypotato | Soccer Stadium (IOI23_soccer) | C++17 | 4529 ms | 3476 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 "soccer.h"
#include <bits/stdc++.h>
using namespace std;
// #define int long long // remove when necessary
#define pii pair<int, int>
#define ff first
#define ss second
#define pb push_back
#define ll long long
int brute(int n, vector<vector<int>> F) {
int ans = 0;
bool take[n][n];
for (int conf = 0; conf < (1 << (n * n)); conf++) {
bool valid = true;
for (int i = 0; i < n; i++) {
for (int j = 0; j < n; j++) {
take[i][j] = bool(conf & (1 << (i * n + j)));
if (take[i][j] && F[i][j]) {
valid = false;
}
}
}
if (!valid) continue;
for (int x = 0; x < n * n; x++) {
for (int y = 0; y < n * n; y++) {
int x1 = x / n, x2 = x % n;
int y1 = y / n, y2 = y % n;
if (!take[x1][x2] || !take[y1][y2]) continue;
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... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |