| # | Time | Username | Problem | Language | Result | Execution time | Memory |
|---|---|---|---|---|---|---|---|
| 991948 | 12345678 | A Difficult(y) Choice (BOI21_books) | C++17 | 148 ms | 908 KiB |
This submission is migrated from previous version of oj.uz, which used different machine for grading. This submission may have different result if resubmitted.
#include <bits/stdc++.h>
#include "books.h"
using namespace std;
const int nx=1e5+5;
long long n, k, a[nx], t;
void solve(int N, int K, long long A, int S) {
n=N, k=K, t=A;
for (int i=1; i<=n; i++) a[i]=skim(i);
for (int i=k; i<=n; i++)
{
for (int j=2; j<i; j++)
{
if (t<=a[i]+a[j]+a[j-1]&&a[i]+a[j]+a[j-1]<=2*t) answer(vector<int> {j-1, j, i});
}
}
impossible();
}
/*
5 3 10 5
1 2 9 10 100
*/| # | 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... | ||||
