# | 제출 시각UTC-0 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
---|---|---|---|---|---|---|---|
620028 | APROHACK | Crossing (JOI21_crossing) | C++14 | 607 ms | 24452 KiB |
이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
#include <bits/stdc++.h>
#define ll long long
#define ff first
#define ss second
#define pb push_back
using namespace std;
string a, b, c, x;
ll n, q;
struct crossing
{
int dd, ht, mid;
char toProp;
bool faltaprop;
bool allJ, allO, allI, iscorrect;
crossing *L, *R;
crossing(){}
crossing(int l, int r){
dd = l, ht = r;
mid = (dd+ht)/2;
if(l!=r){
L = new crossing(l, mid);
R = new crossing(mid+1, r);
allJ = L->allJ && R->allJ;
allO = L->allO && R->allO;
allI = L->allI && R->allI;
iscorrect = L->iscorrect && R->iscorrect;
}else{
allJ = a[dd] == 'J';
allO = a[dd] == 'O';
allI = a[dd] == 'I';
# | 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... |