# | 제출 시각UTC-0 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
---|---|---|---|---|---|---|---|
434765 | soroush | 운세 보기 2 (JOI14_fortune_telling2) | C++17 | 281 ms | 14736 KiB |
이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef pair < int , int > pii;
const int maxn = 2e5 + 10;
const int mod = 1e9 + 7;
#define endl '\n'
#define ms(x , y) memset(x , y , sizeof x)
#define dokme(x) cout << x , exit(0);
#define lc (v << 1)
#define rc (lc | 1)
#define mid ((l + r) >> 1)
#define ff first
#define ss second
int n , k , t[maxn] , cnt[maxn << 2];
pii a[maxn] , mx[maxn << 2];
void build(int v = 1 , int l = 1 , int r = k + 1){
if(r - l == 1){
cnt[v] = 0, mx[v] = {t[l] , l};
return;
}
build(lc , l , mid);
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |