# | 제출 시각 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
---|---|---|---|---|---|---|---|
1037144 | DeathIsAwe | 기억 압축 (JOI15_memory) | C++14 | 1307 ms | 283984 KiB |
이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
#include "Memory_lib.h"
#include <bits/stdc++.h>
using namespace std;
int Memory(int n, int m) {
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 -2;
}
if (m % 100 == n - 1) {
if (2 * bruh == n) {
return -1;
} else {
return -2;
}
}
val = (m % 100) + (bruh * 100) + 1;
if (val > 4194304) {
val = 1/0;
}
return val;
}
컴파일 시 표준 에러 (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... |