제출 #444461

#제출 시각아이디문제언어결과실행 시간메모리
444461yungyaoA Difficult(y) Choice (BOI21_books)C++17
5 / 100
194 ms288 KiB
using namespace std; #include <iostream> #include <algorithm> #include <vector> #include <queue> #include <stack> #include <utility> #include <memory.h> #include <map> #include <set> typedef long long LL; typedef pair<int,int> pii; #define pb push_back #define mkp make_pair #define iter(x) x.begin(),x.end() const int maxn = 0; #include "books.h" #define mid (LB + RB)/2 void solve(int n,int k,LL a,int s){ LL v[1010]; for (int i=1;i<=n;++i) v[i] = skim(i); for (int i=1;i<n-1;++i) for (int j=i+1;j<n;++j) for (int k=j+1;k<=n;++k){ if (v[i] + v[j] + v[k] <= a*2 and v[i] + v[j] + v[k] >= a) 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...