제출 #1136249

#제출 시각아이디문제언어결과실행 시간메모리
1136249alterioDetecting Molecules (IOI16_molecules)C++20
19 / 100
1 ms328 KiB
#include "molecules.h" #include <bits/stdc++.h> using namespace std; vector<int> find_subset(int l, int u, vector<int> w) { int n = w.size(); int R = 0; long long sum = 0; for (int L = 0; L < n;) { while (sum < l && R < n) { sum += w[R]; R++; } if (sum < l) break; if (sum > u) { sum -= w[L]; L++; continue; } vector<int> ans; for (int i = L; i < R; i++) ans.push_back(i); return ans; } return {}; }

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

molecules.h:1:9: warning: #pragma once in main file
    1 | #pragma once
      |         ^~~~
molecules_c.h:1:9: warning: #pragma once in main file
    1 | #pragma once
      |         ^~~~
#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...