# | 제출 시각UTC-0 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
---|---|---|---|---|---|---|---|
666527 | Farbod | Homework (CEOI22_homework) | C++17 | 430 ms | 190148 KiB |
이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
#include <iostream>
#include <vector>
#include <map>
using namespace std;
#define pi pair <int, int>
#define pii pair <pi, int>
#define F first
#define S second
string s;
vector <int> v;
map <int, int> mp;
pii f(int l, int r)
{
if (l == r)
return {{1, 1}, 1};
int d = mp[l + 3];
pii a = f(l + 4, d - 1),
b = f(d + 1, r - 1);
bool t = (s[l + 2] == 'x');
if (t)
return {{a.F.F + b.F.F, max(a.S + b.F.S, b.S + a.F.S)}, a.S + b.S};
return {{min(a.F.F, b.F.F), a.F.S + b.F.S - 1}, a.S + b.S};
}
int main()
컴파일 시 표준 에러 (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... |