結果

問題 No.441 和か積
ユーザー yokoshabelyokoshabel
提出日時 2017-01-01 00:27:01
言語 Java21
(openjdk 21)
結果
AC  
実行時間 127 ms / 1,000 ms
コード長 439 bytes
コンパイル時間 3,076 ms
コンパイル使用メモリ 72,516 KB
実行使用メモリ 58,016 KB
最終ジャッジ日時 2023-09-09 10:33:54
合計ジャッジ時間 8,443 ms
ジャッジサーバーID
(参考情報)
judge11 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 122 ms
55,764 KB
testcase_01 AC 122 ms
56,360 KB
testcase_02 AC 120 ms
56,128 KB
testcase_03 AC 124 ms
58,016 KB
testcase_04 AC 123 ms
56,192 KB
testcase_05 AC 123 ms
55,640 KB
testcase_06 AC 123 ms
55,856 KB
testcase_07 AC 123 ms
56,636 KB
testcase_08 AC 121 ms
55,848 KB
testcase_09 AC 121 ms
56,348 KB
testcase_10 AC 120 ms
53,648 KB
testcase_11 AC 123 ms
55,960 KB
testcase_12 AC 121 ms
56,272 KB
testcase_13 AC 122 ms
55,648 KB
testcase_14 AC 122 ms
56,096 KB
testcase_15 AC 121 ms
55,828 KB
testcase_16 AC 123 ms
56,076 KB
testcase_17 AC 123 ms
55,788 KB
testcase_18 AC 123 ms
56,388 KB
testcase_19 AC 119 ms
56,128 KB
testcase_20 AC 126 ms
56,168 KB
testcase_21 AC 126 ms
55,688 KB
testcase_22 AC 127 ms
55,872 KB
testcase_23 AC 122 ms
56,128 KB
testcase_24 AC 121 ms
56,272 KB
testcase_25 AC 120 ms
56,336 KB
testcase_26 AC 121 ms
56,232 KB
testcase_27 AC 120 ms
56,224 KB
testcase_28 AC 122 ms
56,600 KB
testcase_29 AC 122 ms
56,072 KB
testcase_30 AC 122 ms
55,964 KB
testcase_31 AC 124 ms
55,808 KB
testcase_32 AC 123 ms
55,948 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;
import java.math.*;
import static java.lang.System.out;

public class No441{
	public static void main(String[] args){
		Scanner sc=new Scanner(System.in);
		BigInteger a=sc.nextBigInteger();
		BigInteger b=sc.nextBigInteger();
		BigInteger s=a.add(b),p=a.multiply(b);
		if(s.compareTo(p)==0){out.println("E");}
		if(s.compareTo(p)>0){out.println("S");}
		if(s.compareTo(p)<0){out.println("P");}
		sc.close();
	}
}
0