結果

問題 No.293 4>7の世界
ユーザー tsunabittsunabit
提出日時 2020-03-25 14:45:10
言語 Java21
(openjdk 21)
結果
WA  
実行時間 -
コード長 386 bytes
コンパイル時間 7,704 ms
コンパイル使用メモリ 72,696 KB
実行使用メモリ 56,060 KB
最終ジャッジ日時 2023-08-30 11:39:06
合計ジャッジ時間 8,492 ms
ジャッジサーバーID
(参考情報)
judge15 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 125 ms
55,720 KB
testcase_01 AC 122 ms
55,532 KB
testcase_02 AC 123 ms
55,468 KB
testcase_03 WA -
testcase_04 AC 122 ms
55,792 KB
testcase_05 AC 122 ms
55,672 KB
testcase_06 AC 124 ms
55,856 KB
testcase_07 AC 122 ms
55,696 KB
testcase_08 AC 123 ms
55,408 KB
testcase_09 WA -
testcase_10 AC 122 ms
55,704 KB
testcase_11 AC 120 ms
55,672 KB
testcase_12 AC 124 ms
55,816 KB
testcase_13 AC 125 ms
55,336 KB
testcase_14 AC 121 ms
56,060 KB
testcase_15 WA -
testcase_16 AC 119 ms
55,816 KB
testcase_17 AC 120 ms
55,692 KB
testcase_18 AC 118 ms
55,888 KB
testcase_19 AC 117 ms
55,592 KB
testcase_20 AC 119 ms
55,428 KB
testcase_21 AC 124 ms
55,360 KB
testcase_22 AC 122 ms
55,712 KB
testcase_23 AC 121 ms
55,592 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.*;
import java.io.*;
import java.math.*;

public class No293 {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		String a = sc.next();
		String b = sc.next();
		String aa = a.replace('4', '8');
		String bb = b.replace('4', '8');
		if(Integer.parseInt(aa) > Integer.parseInt(bb)) System.out.println(a);
		else System.out.println(b);
	}
}
0