結果

問題 No.293 4>7の世界
ユーザー ayame_pyayame_py
提出日時 2015-10-23 23:57:00
言語 Python2
(2.7.18)
結果
WA  
実行時間 -
コード長 295 bytes
コンパイル時間 874 ms
コンパイル使用メモリ 6,704 KB
実行使用メモリ 6,076 KB
最終ジャッジ日時 2023-10-11 04:50:21
合計ジャッジ時間 2,342 ms
ジャッジサーバーID
(参考情報)
judge11 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 11 ms
6,048 KB
testcase_01 AC 11 ms
5,928 KB
testcase_02 AC 10 ms
5,836 KB
testcase_03 WA -
testcase_04 AC 11 ms
6,048 KB
testcase_05 WA -
testcase_06 AC 11 ms
5,888 KB
testcase_07 AC 11 ms
5,848 KB
testcase_08 AC 11 ms
5,956 KB
testcase_09 WA -
testcase_10 AC 11 ms
6,044 KB
testcase_11 AC 11 ms
5,992 KB
testcase_12 AC 11 ms
5,968 KB
testcase_13 AC 12 ms
5,936 KB
testcase_14 AC 11 ms
5,844 KB
testcase_15 WA -
testcase_16 AC 11 ms
6,040 KB
testcase_17 AC 11 ms
5,964 KB
testcase_18 AC 11 ms
5,988 KB
testcase_19 AC 11 ms
5,956 KB
testcase_20 AC 11 ms
5,924 KB
testcase_21 AC 11 ms
5,848 KB
testcase_22 AC 11 ms
6,040 KB
testcase_23 AC 11 ms
6,036 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

A,B=raw_input().split()
Ac=list(A)
Bc=list(B)
for i in range(len(Ac)):
	if Ac[i]=='4':
		Ac[i]='7'
	elif Ac[i]=='7':
		Ac[i]='4'
for i in range(len(Bc)):
	if Bc[i]=='4':
		Bc[i]='7'
	elif Bc[i]=='7':
		Bc[i]='4'

if int(''.join(map(str,Ac))) > int(''.join(map(str,Bc))):
	print A
else:
	print B
0