結果
| 問題 |
No.293 4>7の世界
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2018-11-03 14:08:32 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 431 bytes |
| コンパイル時間 | 140 ms |
| コンパイル使用メモリ | 12,544 KB |
| 実行使用メモリ | 10,752 KB |
| 最終ジャッジ日時 | 2024-11-20 18:52:21 |
| 合計ジャッジ時間 | 1,739 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 WA * 1 |
| other | AC * 17 WA * 3 |
ソースコード
from sys import stdin
def main():
A, B = input().split()
def func(s):
ret = ''
for x in s:
if x == '4':
ret += '7'
elif x == '7':
ret += '4'
else:
ret += x
return int(ret)
a = func(A)
b = func(B)
if a > b:
print(A)
else:
print(B)
input = lambda: stdin.readline().rstrip()
main()