# | 제출 시각UTC-0 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
---|---|---|---|---|---|---|---|
630141 | flashmt | 디지털 회로 (IOI22_circuit) | C++17 | 1158 ms | 34328 KiB |
이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
#include <bits/stdc++.h>
#include "circuit.h"
using namespace std;
const int BASE = 1e9 + 2022;
const int N = 200200;
struct SegmentTree
{
int low, mid, high;
long long value, sum;
int flip;
SegmentTree *l, *r;
SegmentTree(int low, int high, vector<long long> &coef, vector<int> &state): low(low), high(high)
{
mid = (low + high) / 2;
value = sum = flip = 0;
if (low == high)
{
l = r = NULL;
sum = coef[low];
value = state[low] * sum;
}
else
{
l = new SegmentTree(low, mid, coef, state);
r = new SegmentTree(mid + 1, high, coef, state);
sum = l->sum + r->sum;
value = l->value + r->value;
}
컴파일 시 표준 에러 (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... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |