結果

問題 No.441 和か積
ユーザー Cyberdog-しばいぬ-Cyberdog-しばいぬ-
提出日時 2019-10-11 23:55:11
言語 Java21
(openjdk 21)
結果
AC  
実行時間 127 ms / 1,000 ms
コード長 492 bytes
コンパイル時間 4,503 ms
コンパイル使用メモリ 74,308 KB
実行使用メモリ 56,408 KB
最終ジャッジ日時 2023-08-16 21:14:25
合計ジャッジ時間 10,158 ms
ジャッジサーバーID
(参考情報)
judge15 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 120 ms
55,832 KB
testcase_01 AC 122 ms
55,832 KB
testcase_02 AC 122 ms
56,068 KB
testcase_03 AC 122 ms
55,728 KB
testcase_04 AC 120 ms
56,264 KB
testcase_05 AC 124 ms
56,240 KB
testcase_06 AC 123 ms
56,096 KB
testcase_07 AC 124 ms
55,468 KB
testcase_08 AC 120 ms
55,724 KB
testcase_09 AC 121 ms
55,684 KB
testcase_10 AC 120 ms
55,788 KB
testcase_11 AC 122 ms
55,496 KB
testcase_12 AC 125 ms
55,908 KB
testcase_13 AC 118 ms
56,036 KB
testcase_14 AC 121 ms
56,032 KB
testcase_15 AC 118 ms
56,124 KB
testcase_16 AC 121 ms
55,684 KB
testcase_17 AC 123 ms
55,840 KB
testcase_18 AC 120 ms
56,024 KB
testcase_19 AC 117 ms
56,408 KB
testcase_20 AC 125 ms
53,788 KB
testcase_21 AC 125 ms
55,928 KB
testcase_22 AC 127 ms
55,456 KB
testcase_23 AC 125 ms
55,796 KB
testcase_24 AC 119 ms
56,016 KB
testcase_25 AC 123 ms
55,808 KB
testcase_26 AC 121 ms
55,620 KB
testcase_27 AC 121 ms
55,864 KB
testcase_28 AC 123 ms
55,584 KB
testcase_29 AC 121 ms
56,160 KB
testcase_30 AC 121 ms
55,860 KB
testcase_31 AC 120 ms
56,048 KB
testcase_32 AC 121 ms
56,208 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