This submission is migrated from previous version of oj.uz, which used different machine for grading. This submission may have different result if resubmitted.
using namespace std;
#include <iostream>
#include <algorithm>
#include <vector>
#include <queue>
#include <stack>
#include <utility>
#include <memory.h>
#include <map>
#include <set>
typedef long long LL;
typedef pair<int,int> pii;
#define pb push_back
#define mkp make_pair
#define iter(x) x.begin(),x.end()
const int maxn = 0;
#include "books.h"
#define mid (LB + RB)/2
void solve(int n,int k,LL a,int s){
LL v[1010];
for (int i=1;i<=n;++i) v[i] = skim(i);
for (int i=1;i<n-1;++i) for (int j=i+1;j<n;++j) for (int k=j+1;k<=n;++k){
if (v[i] + v[j] + v[k] <= a*2 and v[i] + v[j] + v[k] >= a) answer({i,j,k});
}
impossible();
}
# | 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... |