제출 #1357198

#제출 시각아이디문제언어결과실행 시간메모리
1357198vjudge1Knapsack (NOI18_knapsack)C++20
0 / 100
0 ms344 KiB
#include <bits/stdc++.h>
using namespace std;

int main() {
    ios_base::sync_with_stdio(0);
    cin.tie(0);
    
    int s, n;
    cin >> s >> n;
    if (n != 1) {
        cout << "\n";
        return 0;
    }
    int v, w, k;
    cin >> v >> w >> k;
    int res = 0;
    int weight = 0;
    int max = 0;
    while (weight <= n) {
        weight += w;
        max += v;
    }
    return v;
}
#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...