제출 #683970

#제출 시각아이디문제언어결과실행 시간메모리
683970JuanDetecting Molecules (IOI16_molecules)C++17
0 / 100
1 ms212 KiB
#include<bits/stdc++.h> using namespace std; vector<int> find_subset(int L, int R, vector<int> w){ int n = w.size(); vector<int> ans; int l=0, r=0, sum=0; while(r<n){ if(sum<=R) sum += w[++r]; if(sum>R) sum -= w[l++]; if(sum>=L && sum<=R){ for(int i = l; i < r; i++) ans.push_back(i); break; } } return ans; }
#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...