# | 제출 시각UTC-0 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
---|---|---|---|---|---|---|---|
442788 | flashhh | Fancy Fence (CEOI20_fancyfence) | C++14 | 97 ms | 15236 KiB |
이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
#include <bits/stdc++.h>
#define nmax 100010
#define ll long long
const int oo=1e9+7;
using namespace std;
int n,h[nmax],rmq[nmax][25];
ll f[nmax],g[nmax],w[nmax];
ll range(int l,int r)
{
if (l==0) return w[r];
return w[r]-w[l-1];
}
ll get(int x,int y)
{
int z=log2(y-x+1);
return min(rmq[x][z],rmq[y-(1<<z)+1][z]);
}
int rangemod(int l,int r)
{
if (l==0) return w[r]%oo;
return (w[r]-w[l-1])%oo;
}
ll cal(ll x,ll y)
# | 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... |