結果

問題 No.293 4>7の世界
ユーザー rlangevinrlangevin
提出日時 2023-01-06 00:48:07
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 68 ms / 2,000 ms
コード長 457 bytes
コンパイル時間 2,201 ms
コンパイル使用メモリ 86,436 KB
実行使用メモリ 71,296 KB
最終ジャッジ日時 2023-08-19 21:24:46
合計ジャッジ時間 4,152 ms
ジャッジサーバーID
(参考情報)
judge13 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 67 ms
70,880 KB
testcase_01 AC 68 ms
71,296 KB
testcase_02 AC 67 ms
70,976 KB
testcase_03 AC 67 ms
70,952 KB
testcase_04 AC 66 ms
71,160 KB
testcase_05 AC 68 ms
70,948 KB
testcase_06 AC 65 ms
71,156 KB
testcase_07 AC 66 ms
71,092 KB
testcase_08 AC 66 ms
71,128 KB
testcase_09 AC 67 ms
70,780 KB
testcase_10 AC 66 ms
71,220 KB
testcase_11 AC 67 ms
70,780 KB
testcase_12 AC 66 ms
71,124 KB
testcase_13 AC 65 ms
70,944 KB
testcase_14 AC 68 ms
71,004 KB
testcase_15 AC 66 ms
70,988 KB
testcase_16 AC 68 ms
70,784 KB
testcase_17 AC 68 ms
71,028 KB
testcase_18 AC 68 ms
70,976 KB
testcase_19 AC 67 ms
71,004 KB
testcase_20 AC 68 ms
70,876 KB
testcase_21 AC 67 ms
71,164 KB
testcase_22 AC 66 ms
71,296 KB
testcase_23 AC 66 ms
70,984 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