[Python] Don't understand the meaning of this: n, S = map(int, input().split()) (In Dynamic...

Discussão em 'Python' iniciado por Stack, Janeiro 26, 2025.

  1. Stack

    Stack Membro Participativo

    I'm trying to learn Dynamic programming but there is some difficult lines of code that are hard to know. Idk what do we suppose to do with these lines of codes:

    n, S = map(int, input().split())
    w = list(map(int, input().split()))
    dp = [0] * (S + 1)
    dp[0] = 0

    Continue reading...

Compartilhe esta Página