結果

問題 No.293 4>7の世界
ユーザー Yuhel Tanaka
提出日時 2018-12-20 11:41:15
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
AC  
実行時間 35 ms / 2,000 ms
コード長 392 bytes
コンパイル時間 163 ms
コンパイル使用メモリ 12,544 KB
実行使用メモリ 10,752 KB
最終ジャッジ日時 2024-12-30 12:45:14
合計ジャッジ時間 1,793 ms
ジャッジサーバーID
(参考情報)
judge2 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 4
other AC * 20
権限があれば一括ダウンロードができます

ソースコード

diff #

a,b=map(int,input().split())

if len(str(a))!=len(str(b)):
    print(max(a,b))
else:
    for i,j in zip(str(a),str(b)):
        c,d=int(i),int(j)
        if c==4 and d==7:
            print(a)
            break
        elif c==7 and d==4:
            print(b)
            break
        elif c>d:
            print(a)
            break
        elif d>c:
            print(b)
            break
0