Hi,
I am new to this platform and started solving problems by difficulty level starting from basic. This problem 116A — A Tram, which gives task to find the trams min capacity.
It showing error on test #3, however when I runs the same code in my local machine its showing perfect answer which is 11. Screenshot is attached for output verification. ~~~~~ n = int(input()) stops = [] total = 0 for i in range(n): stop = list(map(int,input().split())) stops.append(stop)
max_total = stops[0][0] for i in range(4): total = stops[i][1] + (total — stops[i][0])
if total >= max_total: max_total = total
print(max_total) ~~~~~