# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
575345 | birthdaycake | A Difficult(y) Choice (BOI21_books) | C++17 | 11 ms | 312 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;
long long b[200001];
void idk(int x, int y){
vector<int>fin;
for(int i = x; i <= y; i++) fin.push_back(i);
answer(fin);
}
void solve(int n, int k, long long a, int s) {
int j = 0, tot = 0;
vector<int>fin;
for(int i = 0; i < n; i++) {
b[i] = skim(i + 1);
if(i < k - 1) {
tot += b[i];
fin.push_back(i + 1);
}
}
for(int i = k - 1; i < n; i++){
if(tot + b[i] >= a && tot + b[i] <= 2 * a){
fin.push_back(i + 1);
answer(fin);
}
}
impossible();
}
Compilation message (stderr)
# | 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... |