結果
| 問題 | No.293 4>7の世界 |
| コンテスト | |
| ユーザー |
takakin
|
| 提出日時 | 2020-04-13 22:37:18 |
| 言語 | Python3 (3.14.3 + numpy 2.4.4 + scipy 1.17.1) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 265 bytes |
| 記録 | |
| コンパイル時間 | 331 ms |
| コンパイル使用メモリ | 20,700 KB |
| 実行使用メモリ | 15,484 KB |
| 最終ジャッジ日時 | 2026-04-12 15:52:05 |
| 合計ジャッジ時間 | 3,771 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge2_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 WA * 1 |
| other | AC * 17 WA * 3 |
ソースコード
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)
takakin