v1 = int(input())
n1 = str(input())
v2 = int(input())
n2 = str(input())
v3 = int(input())
n3 = str(input())
if len(n1)>len(n2) and len(n1)>len(n3):
print(v1)
if len(n2)>len(n1) and len(n2)>len(n3):
print(v2)
if len(n3)>len(n1) and len(n3)>len(n2):
print(v3)
if len(n1)==len(n2) or len(n1)==len(n3)or len(n3)==len(n2):
print(max(v1,v2,v3))
Copyright © 2024 SCHOLAR.TIPS - All rights reserved.
Answers & Comments
v1 = int(input())
n1 = str(input())
v2 = int(input())
n2 = str(input())
v3 = int(input())
n3 = str(input())
if len(n1)>len(n2) and len(n1)>len(n3):
print(v1)
if len(n2)>len(n1) and len(n2)>len(n3):
print(v2)
if len(n3)>len(n1) and len(n3)>len(n2):
print(v3)
if len(n1)==len(n2) or len(n1)==len(n3)or len(n3)==len(n2):
print(max(v1,v2,v3))