結果

問題 No.293 4>7の世界
ユーザー AEnAEn
提出日時 2022-05-15 11:40:00
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 70 ms / 2,000 ms
コード長 451 bytes
コンパイル時間 253 ms
コンパイル使用メモリ 86,952 KB
実行使用メモリ 71,664 KB
最終ジャッジ日時 2023-10-09 20:34:25
合計ジャッジ時間 3,309 ms
ジャッジサーバーID
(参考情報)
judge11 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 64 ms
71,304 KB
testcase_01 AC 67 ms
71,412 KB
testcase_02 AC 65 ms
71,384 KB
testcase_03 AC 63 ms
71,372 KB
testcase_04 AC 64 ms
71,592 KB
testcase_05 AC 68 ms
71,372 KB
testcase_06 AC 67 ms
71,336 KB
testcase_07 AC 68 ms
71,500 KB
testcase_08 AC 65 ms
71,648 KB
testcase_09 AC 63 ms
71,664 KB
testcase_10 AC 65 ms
71,460 KB
testcase_11 AC 66 ms
71,284 KB
testcase_12 AC 68 ms
71,140 KB
testcase_13 AC 65 ms
71,320 KB
testcase_14 AC 67 ms
71,284 KB
testcase_15 AC 69 ms
71,432 KB
testcase_16 AC 67 ms
71,476 KB
testcase_17 AC 63 ms
71,340 KB
testcase_18 AC 70 ms
71,596 KB
testcase_19 AC 64 ms
71,296 KB
testcase_20 AC 69 ms
71,388 KB
testcase_21 AC 66 ms
71,308 KB
testcase_22 AC 64 ms
71,352 KB
testcase_23 AC 66 ms
71,608 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

a, b = map(str, 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] == '4' and b[i] == '7':
            print(a)
            break
        elif a[i] == '7' and b[i] == '4':
            print(b)
            break
        elif int(a[i]) > int(b[i]):
            print(a)
            break
        elif int(a[i])<int(b[i]):
            print(b)
            break
        
0