Maximizing the Profit

  • + 0 comments

    Is there a upper limit on the length of the input that can be provided from the console (I'm using Ubuntu terminal)? It reads till 4095 characters from the input and then discards the rest. People who were able to finish this problem using Python3, I wonder how you managed to circumvent this.. Any leads on how may I proceed?

    p = list(map(int, input().rstrip().split()))