Submission #861709

#TimeUsernameProblemLanguageResultExecution timeMemory
861709MyCodeA Difficult(y) Choice (BOI21_books)C++17
0 / 100
1 ms1368 KiB
#include <bits/stdc++.h> #include "books.h" using namespace std; void solve(int n, int k, long long a, int s) { long long x[n]; for (int i = 0; i < n; i++) x[i] = skim(i + 1); for (int i = 0; i < n; i++) { long long sum = 0; for (int j = i; j < i + 10; j++) sum += x[j]; if(sum >= a && sum <= 2 * a){ vector<int> t; for(int j = i; j < i + 10; j++) t.emplace_back(j + 1); answer(t); return; } } impossible(); }
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...