제출 #943212

#제출 시각아이디문제언어결과실행 시간메모리
943212theghostkingA Difficult(y) Choice (BOI21_books)C++17
5 / 100
147 ms1112 KiB
#include <bits/stdc++.h> #include "books.h" using namespace std; // // --- Sample implementation for the task books --- // // To compile this program with the sample grader, place: // books.h books_sample.cpp sample_grader.cpp // in a single folder and run: // g++ books_sample.cpp sample_grader.cpp // in this folder. // void solve(int N, int K, long long A, int S) { vector<long long> dis(N+1, -1); for (int i = 1; i<=N; i++){ dis[i] = skim(i); } for (int i = 1; i<=N; i++){ for (int j = i+1; j<=N; j++){ for (int k = j+1; k<=N; k++){ long long sm = dis[i]+dis[j]+dis[k]; if ((sm >= A) && (2LL*A>=sm)){ answer({i,j,k}); } } } } 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...