Пожалуйста, прочтите новое правило об ограничении использования AI-инструментов. ×

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

Правка en4, от dashrath1526, 2020-08-18 09:05:21

Hi,

I am new to this platform and started solving problems by difficulty level starting from basic. This problem 116A-Tram, which gives task to find the trams min capacity. Submission Id: 90279549

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)
Теги 116a, tram, #competitive-programming

История

 
 
 
 
Правки
 
 
  Rev. Язык Кто Когда Δ Комментарий
en5 Английский dashrath1526 2020-08-18 09:07:15 8 Tiny change: ' + (total — stops[i][' -> ' + (total - stops[i]['
en4 Английский dashrath1526 2020-08-18 09:05:21 58
en3 Английский dashrath1526 2020-08-18 09:04:51 42
en2 Английский dashrath1526 2020-08-18 09:04:07 45
en1 Английский dashrath1526 2020-08-18 09:01:45 777 Initial revision (published)