제출 #861711

#제출 시각아이디문제언어결과실행 시간메모리
861711MyCodeA Difficult(y) Choice (BOI21_books)C++17
0 / 100
4 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 + k; j++) sum += x[j]; if(sum >= a && sum <= 2 * a){ vector<int> t; for(int j = i; j < i + k; 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...