結果

問題 No.293 4>7の世界
ユーザー JunOnuma
提出日時 2017-06-22 18:07:14
言語 Python2
(2.7.18)
結果
AC  
実行時間 14 ms / 2,000 ms
コード長 379 bytes
コンパイル時間 238 ms
コンパイル使用メモリ 6,912 KB
実行使用メモリ 6,272 KB
最終ジャッジ日時 2024-12-30 12:26:38
合計ジャッジ時間 1,490 ms
ジャッジサーバーID
(参考情報)
judge2 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 4
other AC * 20
権限があれば一括ダウンロードができます

ソースコード

diff #

a,b = raw_input().split()
if len(a) > len(b):
    print a
elif len(a) < len(b):
    print b
else:
    for c,d in zip(a,b):
        if c == d:
            continue
        elif c == '4' and d == '7':
            print a
            break
        elif c == '7' and d == '4':
            print b
            break
        else:
            print a if c > d else b
            break
0