/ SeriousOJ /

Record Detail

Runtime Error


  
# Status Time Cost Memory Cost
#1 Runtime Error Traceback (most recent call last): File "foo.py", line 3, in <module> ValueError: invalid literal for int() with base 10: '1 2 3 4' 15ms 2.926 MiB
#2 Runtime Error Traceback (most recent call last): File "foo.py", line 3, in <module> ValueError: invalid literal for int() with base 10: '4 3 2 1' 16ms 3.105 MiB
#3 Runtime Error Traceback (most recent call last): File "foo.py", line 3, in <module> ValueError: invalid literal for int() with base 10: '10 10 10 10' 15ms 3.035 MiB
#4 Runtime Error Traceback (most recent call last): File "foo.py", line 3, in <module> ValueError: invalid literal for int() with base 10: '1 1 0 0' 15ms 3.09 MiB
#5 Runtime Error Traceback (most recent call last): File "foo.py", line 3, in <module> ValueError: invalid literal for int() with base 10: '0 0 1 1' 15ms 3.094 MiB
#6 Runtime Error Traceback (most recent call last): File "foo.py", line 3, in <module> ValueError: invalid literal for int() with base 10: '1 0 1 0' 15ms 2.93 MiB

Code

numbers=[]
for i in range(4):
	k=int(input())
	numbers.append(k)
	
max = numbers[0]
l = len(numbers)
for i in range(1,l):
    if numbers[i] > max:
        max = numbers[i]
print(max)

min = numbers[0]
for i in range(1,l):
    if numbers[i] < min:
        min = numbers[i]
print(min)

Information

Submit By
Type
Submission
Problem
P1022 Minmax
Contest
Brain booster - 1
Language
Python 3 (Python 3.12.3)
Submit At
2023-12-31 14:49:11
Judged At
2024-10-03 14:05:59
Judged By
Score
0
Total Time
16ms
Peak Memory
3.105 MiB