返回列表 發帖
本帖最後由 鄭傳諭 於 2024-1-31 15:03 編輯

str1=input()
str2=input()
n=int(input())
if(n>len(str1) or n>len(str2)):
    print("error")
else:
    s=0
    for i in range(n):
        s=s+(ord(str1)-ord(str2))
    if(s==0):
        print(f"{str1}={str2}")
    if(s==0):
        print(f"{str1}>{str2}")   
    if(s==0):
        print(f"{str1}<{str2}")

TOP

返回列表