結果

問題 No.293 4>7の世界
ユーザー takakin
提出日時 2020-04-13 22:37:18
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
WA  
実行時間 -
コード長 265 bytes
コンパイル時間 389 ms
コンパイル使用メモリ 12,544 KB
実行使用メモリ 10,752 KB
最終ジャッジ日時 2024-09-25 11:19:25
合計ジャッジ時間 1,889 ms
ジャッジサーバーID
(参考情報)
judge1 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3 WA * 1
other AC * 17 WA * 3
権限があれば一括ダウンロードができます

ソースコード

diff #

import sys
input=lambda: sys.stdin.readline().rstrip()
a,b=map(int,input().split())
aa,bb=str(a),str(b)

def f(x):
  x=x.replace("4","a")
  x=x.replace("7","4")
  x=x.replace("a","7")
  return x

aa=int(f(aa))
bb=int(f(bb))
if aa>bb:
  print(a)
else:
  print(b)

  
0