結果

問題 No.441 和か積
ユーザー Cyberdog-しばいぬ-Cyberdog-しばいぬ-
提出日時 2019-10-11 23:55:11
言語 Java21
(openjdk 21)
結果
AC  
実行時間 129 ms / 1,000 ms
コード長 492 bytes
コンパイル時間 2,713 ms
コンパイル使用メモリ 75,224 KB
実行使用メモリ 54,428 KB
最終ジャッジ日時 2024-05-04 04:38:04
合計ジャッジ時間 6,870 ms
ジャッジサーバーID
(参考情報)
judge3 / judge5
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 107 ms
52,748 KB
testcase_01 AC 124 ms
54,240 KB
testcase_02 AC 119 ms
53,860 KB
testcase_03 AC 112 ms
53,976 KB
testcase_04 AC 119 ms
54,176 KB
testcase_05 AC 113 ms
54,132 KB
testcase_06 AC 129 ms
54,428 KB
testcase_07 AC 119 ms
54,064 KB
testcase_08 AC 119 ms
54,288 KB
testcase_09 AC 117 ms
53,956 KB
testcase_10 AC 117 ms
53,984 KB
testcase_11 AC 111 ms
53,748 KB
testcase_12 AC 103 ms
52,988 KB
testcase_13 AC 108 ms
52,988 KB
testcase_14 AC 121 ms
54,104 KB
testcase_15 AC 112 ms
52,888 KB
testcase_16 AC 121 ms
53,888 KB
testcase_17 AC 119 ms
54,372 KB
testcase_18 AC 121 ms
54,212 KB
testcase_19 AC 104 ms
52,888 KB
testcase_20 AC 122 ms
53,832 KB
testcase_21 AC 127 ms
54,236 KB
testcase_22 AC 124 ms
53,868 KB
testcase_23 AC 127 ms
54,172 KB
testcase_24 AC 109 ms
53,040 KB
testcase_25 AC 121 ms
53,980 KB
testcase_26 AC 124 ms
53,992 KB
testcase_27 AC 106 ms
53,000 KB
testcase_28 AC 123 ms
54,012 KB
testcase_29 AC 121 ms
54,024 KB
testcase_30 AC 114 ms
53,516 KB
testcase_31 AC 117 ms
54,272 KB
testcase_32 AC 109 ms
53,000 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        Scanner scan = new Scanner(System.in);
        var a = scan.nextBigInteger();
        var b = scan.nextBigInteger();
        if (a.add(b).compareTo(a.multiply(b)) > 0) {
            System.out.println("S");
        } else if (a.add(b).compareTo(a.multiply(b)) < 0) {
            System.out.println("P");
        } else {
            System.out.println("E");
        }
    }
}
0