| # | 제출 시각 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
|---|---|---|---|---|---|---|---|
| 846784 | Ahmed57 | A Difficult(y) Choice (BOI21_books) | C++17 | 0 ms | 0 KiB |
이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
#include <bits/stdc++.h>
using namespace std;
#include "books.h"
void solve(int N,int K,long long A,int S){
long long arr[N];
for(int i = 0;i<N;i++){
arr[i] = skim(i+1);
}
for(int i = 0;i<N;i++){
for(int j = i+1;j<N;j++){
int it = lower_bound(arr+j+1,arr+N,A-arr[i]-arr[j])-arr;
if(it==N)continue;
if(arr[i]+arr[j]+arr[it]<=2*A){
answer({v[i].second,v[j].second,v[it].second});
}
}
}
impossible();
}
