Submission #632583

#TimeUsernameProblemLanguageResultExecution timeMemory
632583karolb2011Potatoes and fertilizers (LMIO19_bulves)Cpython 3
24 / 100
802 ms9440 KiB
import sys input = sys.stdin.readline n=int(input()) w=0 p=0 b=0 for i in range(n): pi,bi=list(map(int,input().split())) p+=pi b+=bi w+=abs(p-b) print(w)
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...