結果

問題 No.441 和か積
ユーザー nullzinenullzine
提出日時 2017-01-18 20:54:46
言語 Java19
(openjdk 21)
結果
AC  
実行時間 124 ms / 1,000 ms
コード長 521 bytes
コンパイル時間 2,427 ms
コンパイル使用メモリ 71,776 KB
実行使用メモリ 57,840 KB
最終ジャッジ日時 2023-09-09 10:36:13
合計ジャッジ時間 8,598 ms
ジャッジサーバーID
(参考情報)
judge13 / judge15
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 119 ms
55,600 KB
testcase_01 AC 120 ms
55,544 KB
testcase_02 AC 120 ms
55,932 KB
testcase_03 AC 121 ms
55,800 KB
testcase_04 AC 120 ms
55,808 KB
testcase_05 AC 118 ms
55,720 KB
testcase_06 AC 118 ms
56,000 KB
testcase_07 AC 119 ms
56,024 KB
testcase_08 AC 118 ms
55,744 KB
testcase_09 AC 119 ms
55,844 KB
testcase_10 AC 118 ms
55,600 KB
testcase_11 AC 120 ms
55,848 KB
testcase_12 AC 119 ms
55,508 KB
testcase_13 AC 121 ms
55,644 KB
testcase_14 AC 118 ms
57,840 KB
testcase_15 AC 121 ms
55,596 KB
testcase_16 AC 117 ms
55,736 KB
testcase_17 AC 117 ms
55,800 KB
testcase_18 AC 121 ms
55,532 KB
testcase_19 AC 121 ms
55,216 KB
testcase_20 AC 122 ms
56,092 KB
testcase_21 AC 122 ms
55,644 KB
testcase_22 AC 120 ms
55,664 KB
testcase_23 AC 119 ms
55,872 KB
testcase_24 AC 118 ms
55,408 KB
testcase_25 AC 121 ms
56,344 KB
testcase_26 AC 123 ms
55,532 KB
testcase_27 AC 119 ms
55,788 KB
testcase_28 AC 121 ms
55,836 KB
testcase_29 AC 121 ms
56,156 KB
testcase_30 AC 120 ms
55,268 KB
testcase_31 AC 122 ms
55,500 KB
testcase_32 AC 124 ms
55,480 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.math.BigInteger;

/**
 * Created by nullzine on 2017/01/18.
 */
public class Main {

    public static void main(String[] args){
        String[] strs = new java.util.Scanner(System.in).nextLine().split(" ");
        System.out.println(new BigInteger(strs[0]).multiply(new BigInteger(strs[1])).compareTo(new BigInteger(strs[0]).add(new BigInteger(strs[1])))==0?"E":(new BigInteger(strs[0]).multiply(new BigInteger(strs[1])).compareTo(new BigInteger(strs[0]).add(new BigInteger(strs[1])))<0?"S":"P"));
    }

}
0