結果

問題 No.293 4>7の世界
ユーザー ayame_pyayame_py
提出日時 2015-10-23 23:43:36
言語 Python2
(2.7.18)
結果
WA  
実行時間 -
コード長 294 bytes
コンパイル時間 934 ms
コンパイル使用メモリ 6,668 KB
実行使用メモリ 6,044 KB
最終ジャッジ日時 2023-10-01 03:08:05
合計ジャッジ時間 1,542 ms
ジャッジサーバーID
(参考情報)
judge14 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 11 ms
5,944 KB
testcase_01 AC 11 ms
5,868 KB
testcase_02 AC 11 ms
5,896 KB
testcase_03 AC 11 ms
5,888 KB
testcase_04 AC 10 ms
5,864 KB
testcase_05 WA -
testcase_06 AC 11 ms
5,884 KB
testcase_07 AC 11 ms
5,932 KB
testcase_08 AC 11 ms
6,016 KB
testcase_09 AC 10 ms
6,016 KB
testcase_10 AC 11 ms
6,000 KB
testcase_11 WA -
testcase_12 AC 10 ms
5,952 KB
testcase_13 WA -
testcase_14 AC 10 ms
5,864 KB
testcase_15 WA -
testcase_16 AC 10 ms
5,824 KB
testcase_17 AC 11 ms
5,952 KB
testcase_18 AC 11 ms
5,872 KB
testcase_19 AC 11 ms
5,872 KB
testcase_20 AC 11 ms
5,864 KB
testcase_21 AC 10 ms
5,868 KB
testcase_22 AC 11 ms
6,044 KB
testcase_23 WA -
権限があれば一括ダウンロードができます

ソースコード

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'
if 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