結果

問題 No.293 4>7の世界
ユーザー brthyyjpbrthyyjp
提出日時 2021-12-01 17:01:22
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 37 ms / 2,000 ms
コード長 426 bytes
コンパイル時間 305 ms
コンパイル使用メモリ 81,920 KB
実行使用メモリ 51,968 KB
最終ジャッジ日時 2024-07-04 17:16:26
合計ジャッジ時間 2,054 ms
ジャッジサーバーID
(参考情報)
judge3 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 4
other AC * 20
権限があれば一括ダウンロードができます

ソースコード

diff #

A, B = map(str, input().split())

if len(A) > len(B):
    print(A)
elif len(A) < len(B):
    print(B)
else:
    for a, b in zip(A, B):
        if a == '4' and b == '7':
            print(A)
            exit()
        elif a == '7' and b == '4':
            print(B)
            exit()
        elif  int(a) > int(b):
            print(A)
            exit()
        elif int(a) < int(b):
            print(B)
            exit()
0