/ 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 16ms 2.906 MiB
#2 Runtime Error Traceback (most recent call last): File "foo.py", line 3, in <module> TypeError: 'map' object is not subscriptable 16ms 3.109 MiB
#3 Runtime Error Traceback (most recent call last): File "foo.py", line 3, in <module> TypeError: 'map' object is not subscriptable 16ms 2.957 MiB
#4 Runtime Error Traceback (most recent call last): File "foo.py", line 3, in <module> TypeError: 'map' object is not subscriptable 15ms 3.098 MiB
#5 Runtime Error Traceback (most recent call last): File "foo.py", line 3, in <module> TypeError: 'map' object is not subscriptable 15ms 3.102 MiB
#6 Runtime Error Traceback (most recent call last): File "foo.py", line 3, in <module> TypeError: 'map' object is not subscriptable 15ms 3.07 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-10-03 14:06:31
Judged By
Score
0
Total Time
16ms
Peak Memory
3.109 MiB