Submission #1100380

# Submission time Handle Problem Language Result Execution time Memory
1100380 2024-10-13T16:25:20 Z codexistent Kas (COCI17_kas) C++14
0 / 100
146 ms 392604 KB
#include <bits/stdc++.h>
using namespace std;
#define ll int
#define MAXN 505
#define MAXS 200005
#define FOR(i, a, b) for(ll i = a; i <= b; i++)

ll n, dp[MAXN][MAXS], s = 0;

int main(){
    cin >> n;
    FOR(i, 0, MAXN - 5) FOR(j, 0, MAXS - 5) dp[i][j] = MAXS;

    /*dp[0][100000] = 0;
    FOR(i, 1, n){
        int x; cin >> x;
        s += x;
        FOR(j, x, 200000 - x){
            dp[i][j - x] = min(dp[i][j - x], dp[i - 1][j]);
            dp[i][j + x] = min(dp[i][j + x], dp[i - 1][j]);
            dp[i][j] = min(dp[i][j], dp[i - 1][j] + x);
        }
    } */

    // cout << ((s - dp[n][100000]) / 2 + dp[n][100000]) << endl;
}

# Verdict Execution time Memory Grader output
1 Incorrect 97 ms 392460 KB Output isn't correct
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 108 ms 392524 KB Output isn't correct
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 112 ms 392516 KB Output isn't correct
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 146 ms 392520 KB Output isn't correct
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 107 ms 392520 KB Output isn't correct
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 109 ms 392412 KB Output isn't correct
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 117 ms 392460 KB Output isn't correct
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 125 ms 392520 KB Output isn't correct
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 116 ms 392556 KB Output isn't correct
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 117 ms 392604 KB Output isn't correct
2 Halted 0 ms 0 KB -