# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
110131 | popovicirobert | Snake Escaping (JOI18_snake_escaping) | C++14 | 1953 ms | 36344 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>
#define lsb(x) (x & (-x))
#define ll long long
#define ull unsigned long long
// 217
// 44
using namespace std;
int dp0[1 << 20], dp1[1 << 20];
char str[1 << 20];
int bit[20], sz;
int ans;
void bktQ(int p, int cnf) {
if(p == sz) {
ans += str[cnf] - '0';
}
else {
bktQ(p + 1, cnf);
bktQ(p + 1, cnf + (1 << bit[p]));
}
}
void bkt0(int p, int cnf, int cnt) {
if(p == sz) {
if(cnt & 1) {
ans -= dp0[cnf];
}
else {
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... |