# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
991170 | gmroh06 | 즐거운 사진 수집 (JOI13_collecting) | C++14 | 5061 ms | 604 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 <bits/stdc++.h>
using namespace std;
using ll = long long;
inline void fastio() {
std::ios_base::sync_with_stdio(false);
std::cin.tie(nullptr);
std::cout.tie(nullptr);
}
ll n, q;
bool row[1025], col[1025];
ll f(ll d, ll x, ll y) {
if (d == n) return 1;
bool chk = false;
ll a = x * (1 << (n - d)), b = y * (1 << (n - d));
for (ll i = a + 1; i - a < 1 << (n - d); i++) {
chk |= row[i - 1] != row[i];
}
for (ll i = b + 1; i - b < 1 << (n - d); i++) {
chk |= col[i - 1] != col[i];
}
if (!chk) {
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |