結果

問題 No.441 和か積
ユーザー yun_appyun_app
提出日時 2016-12-01 17:16:30
言語 Java19
(openjdk 21)
結果
AC  
実行時間 43 ms / 1,000 ms
コード長 750 bytes
コンパイル時間 1,852 ms
コンパイル使用メモリ 71,980 KB
実行使用メモリ 49,804 KB
最終ジャッジ日時 2023-09-09 10:31:28
合計ジャッジ時間 4,544 ms
ジャッジサーバーID
(参考情報)
judge11 / judge15
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 42 ms
49,276 KB
testcase_01 AC 42 ms
49,420 KB
testcase_02 AC 42 ms
49,192 KB
testcase_03 AC 42 ms
49,212 KB
testcase_04 AC 42 ms
49,372 KB
testcase_05 AC 43 ms
49,344 KB
testcase_06 AC 43 ms
49,804 KB
testcase_07 AC 43 ms
49,376 KB
testcase_08 AC 43 ms
49,204 KB
testcase_09 AC 42 ms
49,412 KB
testcase_10 AC 42 ms
49,268 KB
testcase_11 AC 42 ms
49,456 KB
testcase_12 AC 41 ms
49,288 KB
testcase_13 AC 43 ms
49,348 KB
testcase_14 AC 43 ms
49,176 KB
testcase_15 AC 42 ms
49,280 KB
testcase_16 AC 42 ms
49,520 KB
testcase_17 AC 42 ms
49,600 KB
testcase_18 AC 42 ms
49,500 KB
testcase_19 AC 42 ms
49,416 KB
testcase_20 AC 43 ms
49,208 KB
testcase_21 AC 43 ms
49,252 KB
testcase_22 AC 43 ms
49,372 KB
testcase_23 AC 42 ms
49,536 KB
testcase_24 AC 43 ms
49,692 KB
testcase_25 AC 43 ms
49,388 KB
testcase_26 AC 42 ms
49,720 KB
testcase_27 AC 42 ms
49,344 KB
testcase_28 AC 42 ms
49,204 KB
testcase_29 AC 43 ms
49,408 KB
testcase_30 AC 42 ms
49,424 KB
testcase_31 AC 42 ms
49,400 KB
testcase_32 AC 42 ms
49,488 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.*;
import java.lang.*;
import java.io.*;
import java.math.*;
class Main{
    public static void main (String[] args) throws java.lang.Exception{
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String[] lines = br.readLine().toString().split(" ");
        BigInteger a = new BigInteger(lines[0]);
        BigInteger b = new BigInteger(lines[1]);
        BigInteger s = a.add(b);
        BigInteger p = a.multiply(b);
        
        switch(s.compareTo(p)){
        case -1:
            System.out.println("P");
            break;
        case 0:
            System.out.println("E");
            break;
        case 1:
            System.out.println("S");
            break;
        }
    }
}
0