結果

問題 No.441 和か積
ユーザー yuma_shobon1108yuma_shobon1108
提出日時 2016-12-02 18:41:03
言語 Java21
(openjdk 21)
結果
AC  
実行時間 127 ms / 1,000 ms
コード長 461 bytes
コンパイル時間 2,670 ms
コンパイル使用メモリ 71,956 KB
実行使用メモリ 56,460 KB
最終ジャッジ日時 2023-09-09 10:31:21
合計ジャッジ時間 8,338 ms
ジャッジサーバーID
(参考情報)
judge13 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 124 ms
55,828 KB
testcase_01 AC 124 ms
55,804 KB
testcase_02 AC 120 ms
55,820 KB
testcase_03 AC 122 ms
55,716 KB
testcase_04 AC 123 ms
55,920 KB
testcase_05 AC 121 ms
55,680 KB
testcase_06 AC 123 ms
55,524 KB
testcase_07 AC 120 ms
55,532 KB
testcase_08 AC 121 ms
55,756 KB
testcase_09 AC 120 ms
55,524 KB
testcase_10 AC 120 ms
55,988 KB
testcase_11 AC 118 ms
55,700 KB
testcase_12 AC 120 ms
55,952 KB
testcase_13 AC 120 ms
55,776 KB
testcase_14 AC 118 ms
55,860 KB
testcase_15 AC 120 ms
56,184 KB
testcase_16 AC 119 ms
55,524 KB
testcase_17 AC 119 ms
56,316 KB
testcase_18 AC 120 ms
55,524 KB
testcase_19 AC 121 ms
55,628 KB
testcase_20 AC 127 ms
55,520 KB
testcase_21 AC 125 ms
56,144 KB
testcase_22 AC 125 ms
55,840 KB
testcase_23 AC 122 ms
55,720 KB
testcase_24 AC 122 ms
55,836 KB
testcase_25 AC 123 ms
55,292 KB
testcase_26 AC 123 ms
55,940 KB
testcase_27 AC 121 ms
55,532 KB
testcase_28 AC 122 ms
55,904 KB
testcase_29 AC 122 ms
55,536 KB
testcase_30 AC 120 ms
56,460 KB
testcase_31 AC 121 ms
55,672 KB
testcase_32 AC 123 ms
55,520 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;
import java.math.*;

class Question441
{
	public static void main(String[] str)
	{
	
		Scanner scan = new Scanner(System.in);
		
		BigInteger A = scan.nextBigInteger();
		BigInteger B = scan.nextBigInteger();
		
		BigInteger P = A.multiply(B);
		BigInteger S = A.add(B);
		
		if(P.compareTo(S)>0){
			System.out.println("P");
		}
		else if(P.compareTo(S)<0){
			System.out.println("S");
		}
		else{
			System.out.println("E");
		}
	}
}
0