結果

問題 No.293 4>7の世界
ユーザー rlangevinrlangevin
提出日時 2023-01-06 00:48:07
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 39 ms / 2,000 ms
コード長 457 bytes
コンパイル時間 339 ms
コンパイル使用メモリ 82,256 KB
実行使用メモリ 53,564 KB
最終ジャッジ日時 2024-05-07 04:23:53
合計ジャッジ時間 2,058 ms
ジャッジサーバーID
(参考情報)
judge1 / judge5
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 36 ms
52,240 KB
testcase_01 AC 36 ms
52,860 KB
testcase_02 AC 36 ms
52,712 KB
testcase_03 AC 37 ms
53,032 KB
testcase_04 AC 36 ms
53,564 KB
testcase_05 AC 36 ms
52,404 KB
testcase_06 AC 36 ms
53,312 KB
testcase_07 AC 36 ms
53,180 KB
testcase_08 AC 36 ms
52,336 KB
testcase_09 AC 39 ms
52,592 KB
testcase_10 AC 37 ms
53,012 KB
testcase_11 AC 36 ms
52,956 KB
testcase_12 AC 36 ms
53,252 KB
testcase_13 AC 35 ms
52,992 KB
testcase_14 AC 35 ms
53,208 KB
testcase_15 AC 36 ms
52,280 KB
testcase_16 AC 35 ms
52,316 KB
testcase_17 AC 35 ms
52,368 KB
testcase_18 AC 36 ms
52,680 KB
testcase_19 AC 37 ms
52,128 KB
testcase_20 AC 36 ms
52,308 KB
testcase_21 AC 36 ms
52,596 KB
testcase_22 AC 36 ms
52,996 KB
testcase_23 AC 36 ms
52,336 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

A, B = input().split()
if len(A) > len(B):
    print(A)
elif len(A) < len(B):
    print(B)
else:
    N = len(A)
    for i in range(N):
        a, b = int(A[i]), int(B[i])
        if a == b:
            continue
        if sorted([a, b]) == [4, 7]:
            if a == 4:
                print(A)
            else:
                print(B)
        else:
            if a > b:
                print(A)
            else:
                print(B)
        exit()
0