結果

問題 No.441 和か積
ユーザー fukuseifukusei
提出日時 2017-05-21 01:57:06
言語 Java21
(openjdk 21)
結果
AC  
実行時間 119 ms / 1,000 ms
コード長 455 bytes
コンパイル時間 2,811 ms
コンパイル使用メモリ 71,396 KB
実行使用メモリ 56,432 KB
最終ジャッジ日時 2023-09-09 10:44:50
合計ジャッジ時間 7,322 ms
ジャッジサーバーID
(参考情報)
judge12 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 110 ms
56,324 KB
testcase_01 AC 107 ms
56,056 KB
testcase_02 AC 109 ms
55,848 KB
testcase_03 AC 109 ms
55,952 KB
testcase_04 AC 108 ms
55,732 KB
testcase_05 AC 115 ms
55,776 KB
testcase_06 AC 115 ms
55,952 KB
testcase_07 AC 114 ms
56,236 KB
testcase_08 AC 115 ms
55,412 KB
testcase_09 AC 115 ms
56,092 KB
testcase_10 AC 117 ms
55,836 KB
testcase_11 AC 114 ms
55,572 KB
testcase_12 AC 115 ms
55,764 KB
testcase_13 AC 112 ms
55,948 KB
testcase_14 AC 111 ms
55,856 KB
testcase_15 AC 110 ms
55,908 KB
testcase_16 AC 110 ms
55,556 KB
testcase_17 AC 108 ms
55,768 KB
testcase_18 AC 111 ms
55,700 KB
testcase_19 AC 116 ms
55,888 KB
testcase_20 AC 115 ms
55,804 KB
testcase_21 AC 118 ms
56,164 KB
testcase_22 AC 119 ms
55,724 KB
testcase_23 AC 118 ms
56,432 KB
testcase_24 AC 118 ms
56,272 KB
testcase_25 AC 115 ms
56,160 KB
testcase_26 AC 116 ms
55,828 KB
testcase_27 AC 115 ms
55,784 KB
testcase_28 AC 113 ms
56,024 KB
testcase_29 AC 111 ms
56,308 KB
testcase_30 AC 112 ms
55,840 KB
testcase_31 AC 113 ms
55,988 KB
testcase_32 AC 113 ms
55,752 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.*;
import java.math.BigInteger;
class test{
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		BigInteger A = new BigInteger(sc.next());
		BigInteger B = new BigInteger(sc.next());
		
		if( (A.add(B)).compareTo (A.multiply(B)) == 1 ){
			System.out.println("S");
		}
		else if( (A.add(B)).compareTo (A.multiply(B)) == -1 ){
			System.out.println("P");
		}
		else{
			System.out.println("E");
		}
		
		

	}
}
0