제출 #574761

#제출 시각아이디문제언어결과실행 시간메모리
574761birthdaycakeA Difficult(y) Choice (BOI21_books)C++17
0 / 100
5 ms208 KiB
#include <bits/stdc++.h> #include "books.h" using namespace std; long long b[200001]; void solve(int n, int k, long long a, int s) { int j = 0; for(int i = 0; i < n; i++) { b[i] = skim(i + 1); } for(int i = 0; i < n; i++){ for(int j = i + 1; j < n; j++){ for(int t = j + 1; t < n; t++){ int tot = b[i] + b[j] + b[t]; if(tot >= a && tot <= 2 * a){ vector<int>fin = {i+1,j+1,t+1}; answer(fin); return; } } } } impossible(); }

컴파일 시 표준 에러 (stderr) 메시지

books.cpp: In function 'void solve(int, int, long long int, int)':
books.cpp:10:9: warning: unused variable 'j' [-Wunused-variable]
   10 |     int j = 0;
      |         ^
#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...