/ 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> TypeError: 'map' object is not subscriptable 20ms 3.004 MiB
#2 Runtime Error Traceback (most recent call last): File "foo.py", line 3, in <module> TypeError: 'map' object is not subscriptable 19ms 3.051 MiB

Code

n = map(int, input().split())

if n[0] > n[1]:
	max1 = n[0]
	min1 = n[1]
else:
	max1 = n[1]
	min1 = n[0]

if n[2] > n[3]:
	max2 = n[2]
	min2 = n[3]
else:
	max2 = n[3]
	min2 = n[2]
	
if max1 > max2:
	lar = max1
else:
	lar = max2
	
if min1 < min2:
	low = min1
else:
	low = min2
	
print(lar)
print(low)

Information

Submit By
Type
Submission
Problem
P1022 Minmax
Contest
Brain booster - 1
Language
Python 3 (Python 3.12.3)
Submit At
2023-12-31 13:42:40
Judged At
2024-11-11 03:46:36
Judged By
Score
0
Total Time
20ms
Peak Memory
3.051 MiB