Run time error

Sunilkumar Uralun Kandyil sunilkumaruk at am.amrita.edu
Wed Jan 13 06:48:38 CET 2021


Regd. Domjudge:

Worked on a few codes it worked for a few and for few questions based on the list got a run-time error.

can you pls fix this?
This code didn't work


a= map(int,input().split())
max = 0
for i in a:
    if (i>max):
        max = i
print(max)


example 02:

list1 = [int(i) for i in input().split()]
sum =0
for i in range(0,len(list1)):
  sum +=list1[i]
print(sum)



DomJudge version:  7.3





Sunil Kumar UK

Deputy manager (Systems)

ICTS

Amrita Vishwa Vidyapeetham

Amritapuri Campus

Kerala, India 690525

Phone: 9446671509


[Amrita University]
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.domjudge.org/pipermail/domjudge-devel/attachments/20210113/bfb94563/attachment.htm>


More information about the DOMjudge-devel mailing list