Simple Array Sum

  • + 1 comment

    The executer for python actually forces you to use the provided code template. So in the following code you CANNOT remove extra lines (i.e. "import sys" and "n = int(raw_input().strip()"). None of these two lines are required!


    import sys

    n = int(raw_input().strip()) arr = map(int,raw_input().strip().split(' ')) print sum(arr)