結果

問題 No.441 和か積
ユーザー tsunabittsunabit
提出日時 2019-06-09 16:38:44
言語 Java21
(openjdk 21)
結果
AC  
実行時間 131 ms / 1,000 ms
コード長 405 bytes
コンパイル時間 4,105 ms
コンパイル使用メモリ 75,356 KB
実行使用メモリ 41,656 KB
最終ジャッジ日時 2024-04-15 20:07:39
合計ジャッジ時間 8,281 ms
ジャッジサーバーID
(参考情報)
judge2 / judge5
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 112 ms
41,084 KB
testcase_01 AC 116 ms
41,252 KB
testcase_02 AC 110 ms
40,488 KB
testcase_03 AC 113 ms
40,264 KB
testcase_04 AC 122 ms
41,072 KB
testcase_05 AC 122 ms
41,272 KB
testcase_06 AC 116 ms
40,584 KB
testcase_07 AC 107 ms
40,144 KB
testcase_08 AC 113 ms
41,420 KB
testcase_09 AC 119 ms
41,316 KB
testcase_10 AC 116 ms
41,288 KB
testcase_11 AC 120 ms
41,120 KB
testcase_12 AC 112 ms
39,884 KB
testcase_13 AC 117 ms
41,320 KB
testcase_14 AC 117 ms
41,100 KB
testcase_15 AC 122 ms
41,252 KB
testcase_16 AC 115 ms
41,044 KB
testcase_17 AC 109 ms
40,620 KB
testcase_18 AC 118 ms
41,364 KB
testcase_19 AC 119 ms
41,176 KB
testcase_20 AC 120 ms
41,280 KB
testcase_21 AC 112 ms
40,424 KB
testcase_22 AC 121 ms
41,384 KB
testcase_23 AC 119 ms
41,312 KB
testcase_24 AC 121 ms
41,144 KB
testcase_25 AC 108 ms
40,212 KB
testcase_26 AC 110 ms
40,244 KB
testcase_27 AC 114 ms
40,548 KB
testcase_28 AC 128 ms
41,316 KB
testcase_29 AC 116 ms
40,296 KB
testcase_30 AC 131 ms
41,656 KB
testcase_31 AC 122 ms
41,316 KB
testcase_32 AC 126 ms
41,160 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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

public class No441 {
    public static void main(String[] args) {
        // 標準入力から読み込む際に、Scannerオブジェクトを使う。
        Scanner sc = new Scanner(System.in);
        BigInteger a = sc.nextBigInteger(), b = sc.nextBigInteger();
		int c = a.add(b).compareTo(a.multiply(b));
		System.out.println(c>0?"S":c<0?"P":"E");
    }
}
0