結果

問題 No.293 4>7の世界
ユーザー Konton7Konton7
提出日時 2019-05-15 22:48:14
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
RE  
実行時間 -
コード長 454 bytes
コンパイル時間 167 ms
コンパイル使用メモリ 10,784 KB
実行使用メモリ 8,028 KB
最終ジャッジ日時 2023-10-12 16:27:37
合計ジャッジ時間 1,778 ms
ジャッジサーバーID
(参考情報)
judge11 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 15 ms
7,912 KB
testcase_01 AC 15 ms
7,876 KB
testcase_02 AC 16 ms
7,904 KB
testcase_03 RE -
testcase_04 AC 16 ms
7,720 KB
testcase_05 AC 16 ms
7,844 KB
testcase_06 AC 15 ms
7,800 KB
testcase_07 AC 15 ms
7,724 KB
testcase_08 RE -
testcase_09 RE -
testcase_10 AC 15 ms
7,780 KB
testcase_11 RE -
testcase_12 AC 15 ms
7,764 KB
testcase_13 AC 15 ms
7,788 KB
testcase_14 AC 15 ms
7,840 KB
testcase_15 RE -
testcase_16 AC 15 ms
7,812 KB
testcase_17 RE -
testcase_18 RE -
testcase_19 RE -
testcase_20 AC 16 ms
7,784 KB
testcase_21 AC 15 ms
7,792 KB
testcase_22 AC 15 ms
7,948 KB
testcase_23 AC 15 ms
7,780 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

a, b = [ i for i in input().split() ]

if len(a) > len(b):
    print(a)
elif len(a) < len(b):
    print(b)
else:
    for i in range(len(a)):
        if a[i] != b[i]:
            if (a[i],b[i]) == ("4","7"):
                print(a)
            elif (a[i],b[i])  == ("7","4"):
                print(b)
            else:
                if ord(a) > ord(b):
                    print(a)
                else:
                    print(b)
            break
0