結果

問題 No.293 4>7の世界
ユーザー convexineqconvexineq
提出日時 2021-01-02 09:49:05
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 35 ms / 2,000 ms
コード長 362 bytes
コンパイル時間 332 ms
コンパイル使用メモリ 82,560 KB
実行使用メモリ 54,028 KB
最終ジャッジ日時 2024-04-20 04:09:14
合計ジャッジ時間 1,631 ms
ジャッジサーバーID
(参考情報)
judge1 / judge3
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 34 ms
52,888 KB
testcase_01 AC 32 ms
53,052 KB
testcase_02 AC 32 ms
52,964 KB
testcase_03 AC 32 ms
52,292 KB
testcase_04 AC 32 ms
51,904 KB
testcase_05 AC 31 ms
52,092 KB
testcase_06 AC 31 ms
52,632 KB
testcase_07 AC 31 ms
54,028 KB
testcase_08 AC 31 ms
52,992 KB
testcase_09 AC 31 ms
52,492 KB
testcase_10 AC 31 ms
53,692 KB
testcase_11 AC 32 ms
52,564 KB
testcase_12 AC 32 ms
53,040 KB
testcase_13 AC 32 ms
53,520 KB
testcase_14 AC 35 ms
52,940 KB
testcase_15 AC 32 ms
52,616 KB
testcase_16 AC 31 ms
52,480 KB
testcase_17 AC 33 ms
52,956 KB
testcase_18 AC 32 ms
52,272 KB
testcase_19 AC 32 ms
52,572 KB
testcase_20 AC 32 ms
53,716 KB
testcase_21 AC 33 ms
52,344 KB
testcase_22 AC 32 ms
52,416 KB
testcase_23 AC 32 ms
53,016 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

a,b = input().split()
if len(a) < len(b):
    print(b)
elif len(a) > len(b):
    print(a)
else:
    for i,j in zip(a,b):
        if i != j: break
    if i not in "47" or j not in "47":
        if int(i) < int(j):
            print(b)
        else:
            print(a)
    else:
        if int(i) < int(j):
            print(a)
        else:
            print(b)
0