1817 짐 챙기는 숌 문제풀이 #include #include #include using namespace std; void fast_io(void) { ios_base::sync_with_stdio(false); cin.tie(NULL); cout.tie(NULL); } int num,weight,cnt; vector v; int main(void) { fast_io(); cin >> num >> weight; int tmp = weight; while(num--) { int book; cin >> book; if(tmp-book