Created
August 12, 2020 00:54
-
-
Save simryang/23b07dd53027e272acc1397e7417c6a3 to your computer and use it in GitHub Desktop.
sum input in python
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import sys | |
n=input() | |
a=[sys.stdin.readline() for i in range(n)] | |
print sum(list(map(int,a)))-n+1 | |
# https://www.acmicpc.net/board/view/855 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment