# | 제출 시각UTC-0 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
---|---|---|---|---|---|---|---|
579528 | JooDdae | 말 (IOI15_horses) | C++17 | 1491 ms | 69844 KiB |
이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
#include "horses.h"
#include <bits/stdc++.h>
using namespace std;
using ll = long long;
#define mid ((l+r) >> 1)
const ll INF = 1e9+1;
const int mod = 1e9+7;
int n, x[500500], y[500500];
ll t1[2002002], t3[2002002];
array<int, 2> t2[2002002];
set<int> s;
ll build1(int node = 1, int l = 0, int r = n-1){
if(l == r) return t1[node] = x[l];
return t1[node] = min(INF, build1(node*2, l, mid) * build1(node*2+1, mid+1, r));
}
array<int, 2> build2(int node = 1, int l = 0, int r = n-1){
if(l == r) return t2[node] = {y[l], l};
return t2[node] = max(build2(node*2, l, mid), build2(node*2+1, mid+1, r));
}
ll build3(int node = 1, int l = 0, int r = n-1){
if(l == r) return t3[node] = x[l];
return t3[node] = build3(node*2, l, mid) * build3(node*2+1, mid+1, r) % mod;
}
void update1(int pos, int val, int node = 1, int l = 0, int r = n-1){
컴파일 시 표준 에러 (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... |