# | 제출 시각UTC-0 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
---|---|---|---|---|---|---|---|
666177 | ParsaS | Homework (CEOI22_homework) | C++17 | 352 ms | 167600 KiB |
이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
// In the name of God
#pragma GCC optimize("Ofast")
#include<bits/stdc++.h>
using namespace std;
#define pb push_back
#define fi first
#define se second
#define mp make_pair
typedef long long ll;
const int N = 1e6 + 5;
string s;
bool f[N];
map<ll, int> M;
inline ll F(int l, int r) {
return l + 1LL * r * N;
}
pair<int, int> SOLVE(int L, int R) {
pair<int, int> ans;
//cout << L << ' ' << R << ' ' << v << endl;
if (L >= R)
return mp(1, 1);
int v = M[F(L, R)];
if (L == R - 1) {
return f[v] ? mp(2, 2) : mp(1, 1);
}
int mid = v;
pair<int, int> lt = SOLVE(L, mid - 1);
pair<int, int> rt = SOLVE(mid, R);
컴파일 시 표준 에러 (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... |