# | 제출 시각UTC-0 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
---|---|---|---|---|---|---|---|
709307 | WonderfulWhale | Gap (APIO16_gap) | C++17 | 51 ms | 2640 KiB |
이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
#include<bits/stdc++.h>
#include"gap.h"
using namespace std;
#define int long long
#define pb push_back
#define st first
#define nd second
#define pii pair<int, int>
#define sz(x) (int)(x).size()
#define all(x) (x).begin(), (x).end()
long long findGap(int32_t t, int32_t n) {
if(t==1 || n<=10) {
vector<int> a;
vector<int> b;
int l = 0;
int r = 1e18;
for(int i=0;i<(n+1)/2;i++) {
int x, y;
MinMax(l, r, &x, &y);
a.pb(x);
b.pb(y);
l = x+1;
r = y-1;
}
reverse(all(b));
for(int x:b) a.pb(x);
int ans = 0;
for(int i=0;i<sz(a)-1;i++) {
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |