Submission #566051

# Submission time Handle Problem Language Result Execution time Memory
566051 2022-05-21T17:34:36 Z piOOE ICC (CEOI16_icc) C++17
0 / 100
1 ms 596 KB
#include "icc.h"
#include <bits/stdc++.h>

using namespace std;

#define all(x) begin(x), end(x)
#define sz(x) ((int)size(x))
#define trace(x) cout << #x << ": " << (x) << endl;

typedef long long ll;

void run(int n) {
    vector<vector<bool>> ws(n, vector<bool>(n));
    for (int cnt = 1; cnt <= n - 1; ++cnt) {
        for (int i = 1; i <= n; ++i) {
            bool ok = false;
            for (int j = i + 1; j <= n; ++j) {
                if (!ws[i - 1][j - 1] && query(1, 1, reinterpret_cast<int *>(i), reinterpret_cast<int *>(j))) {
                    ws[i - 1][j - 1] = true;
                    setRoad(i, j);
                    ok = true;
                    break;
                }
            }
            if (ok) {
                break;
            }
        }
    }
}
# Verdict Execution time Memory Grader output
1 Runtime error 1 ms 596 KB Execution killed with signal 11
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Runtime error 1 ms 596 KB Execution killed with signal 11
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Runtime error 1 ms 596 KB Execution killed with signal 11
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Runtime error 1 ms 596 KB Execution killed with signal 11
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Runtime error 1 ms 596 KB Execution killed with signal 11
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Runtime error 1 ms 596 KB Execution killed with signal 11
2 Halted 0 ms 0 KB -