結果

問題 No.293 4>7の世界
ユーザー nohakai3nohakai3
提出日時 2022-10-31 14:43:17
言語 PyPy3
(7.3.13)
結果
WA  
実行時間 -
コード長 361 bytes
コンパイル時間 293 ms
コンパイル使用メモリ 86,752 KB
実行使用メモリ 71,552 KB
最終ジャッジ日時 2023-09-22 12:04:38
合計ジャッジ時間 3,363 ms
ジャッジサーバーID
(参考情報)
judge11 / judge15
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 73 ms
71,408 KB
testcase_01 AC 73 ms
71,324 KB
testcase_02 AC 73 ms
71,064 KB
testcase_03 WA -
testcase_04 AC 73 ms
71,432 KB
testcase_05 AC 72 ms
71,424 KB
testcase_06 AC 73 ms
71,436 KB
testcase_07 AC 73 ms
71,332 KB
testcase_08 WA -
testcase_09 WA -
testcase_10 AC 72 ms
71,120 KB
testcase_11 WA -
testcase_12 AC 70 ms
71,276 KB
testcase_13 AC 73 ms
71,340 KB
testcase_14 AC 72 ms
71,552 KB
testcase_15 WA -
testcase_16 AC 73 ms
71,432 KB
testcase_17 AC 72 ms
71,308 KB
testcase_18 AC 74 ms
71,396 KB
testcase_19 AC 73 ms
71,548 KB
testcase_20 AC 71 ms
71,452 KB
testcase_21 AC 74 ms
71,364 KB
testcase_22 AC 75 ms
71,240 KB
testcase_23 AC 73 ms
71,468 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

a,b=input().split()
if len(a)>len(b):
    print(a)
elif len(b)>len(a):
    print(b)
else:
    for i in range(len(a)):
        x=a[i]
        y=b[i]
        if x=="4" and y=="7":
            print(a)
            exit()
        if x=="7" and y=="4":
            print(b)
            exit()
        if x>y:
            print(a)
        if y>x:
            print(b)
0