Please read the new rule regarding the restriction on the use of AI tools. ×

I am getting wrong answer error in test #3 of problem-TRAM-116A

Revision en1, by dashrath1526, 2020-08-18 09:01:45

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) ~~~~~

Tags 116a, tram, #competitive-programming

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en5 English dashrath1526 2020-08-18 09:07:15 8 Tiny change: ' + (total — stops[i][' -> ' + (total - stops[i]['
en4 English dashrath1526 2020-08-18 09:05:21 58
en3 English dashrath1526 2020-08-18 09:04:51 42
en2 English dashrath1526 2020-08-18 09:04:07 45
en1 English dashrath1526 2020-08-18 09:01:45 777 Initial revision (published)