# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
1037139 | DeathIsAwe | 기억 압축 (JOI15_memory) | C++14 | 1294 ms | 283984 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 "Memory_lib.h"
#include <bits/stdc++.h>
using namespace std;
int Memory(int n, int m) {
if (m == 1000000) {
return -2;
} else if (m == 1000001) {
return -1;
}
if (n % 2 == 1) {
return -2;
}
int bruh = 0, val;
char now = Get(m % 100 + 1);
if (now == '<') {
bruh++;
}
bruh += (m / 100);
if (2 * bruh < (m % 100 + 1)) {
return 1000000;
}
if (m % 100 == n - 1) {
if (2 * bruh == n) {
return 1000001;
}
}
val = (m % 100) + (bruh * 100) + 1;
if (val > 4194304) {
val = 1/0;
}
return val;
}
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... |