結果

問題 No.441 和か積
ユーザー RS-7RS-7
提出日時 2016-11-17 19:31:37
言語 Java21
(openjdk 21)
結果
WA  
実行時間 -
コード長 476 bytes
コンパイル時間 3,527 ms
コンパイル使用メモリ 75,592 KB
実行使用メモリ 54,216 KB
最終ジャッジ日時 2024-05-04 14:56:14
合計ジャッジ時間 7,327 ms
ジャッジサーバーID
(参考情報)
judge1 / judge4
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 105 ms
41,084 KB
testcase_01 AC 104 ms
41,064 KB
testcase_02 AC 115 ms
41,264 KB
testcase_03 AC 98 ms
40,284 KB
testcase_04 AC 107 ms
41,056 KB
testcase_05 AC 108 ms
41,576 KB
testcase_06 AC 106 ms
40,996 KB
testcase_07 AC 103 ms
39,816 KB
testcase_08 AC 97 ms
40,496 KB
testcase_09 WA -
testcase_10 AC 107 ms
40,184 KB
testcase_11 WA -
testcase_12 AC 104 ms
41,024 KB
testcase_13 AC 107 ms
41,372 KB
testcase_14 AC 106 ms
41,504 KB
testcase_15 AC 98 ms
40,312 KB
testcase_16 AC 100 ms
40,312 KB
testcase_17 AC 104 ms
41,492 KB
testcase_18 AC 106 ms
41,528 KB
testcase_19 AC 93 ms
39,656 KB
testcase_20 AC 109 ms
41,072 KB
testcase_21 AC 114 ms
40,980 KB
testcase_22 AC 115 ms
41,480 KB
testcase_23 AC 105 ms
41,496 KB
testcase_24 AC 101 ms
40,204 KB
testcase_25 AC 109 ms
41,224 KB
testcase_26 AC 109 ms
41,344 KB
testcase_27 AC 110 ms
41,036 KB
testcase_28 AC 106 ms
41,088 KB
testcase_29 AC 98 ms
40,064 KB
testcase_30 AC 108 ms
41,364 KB
testcase_31 AC 104 ms
41,144 KB
testcase_32 AC 108 ms
41,136 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.math.BigInteger;
import java.util.Scanner;

public class No_441 {

	public static void main(String[] args) {
		Scanner scanner = new Scanner(System.in);
		BigInteger a = scanner.nextBigInteger();
		BigInteger b = scanner.nextBigInteger();
		BigInteger c = a.add(b);
		BigInteger d = a.multiply(b);

		if(c.compareTo(d)>0){
			System.out.println("S");
		}else if(c.compareTo(d)<0){
			System.out.println("P");
		}else if(c==d){
			System.out.println("E");
		}
	}

}
0