結果

問題 No.441 和か積
ユーザー nullzine
提出日時 2017-01-18 20:54:46
言語 Java
(openjdk 23)
結果
AC  
実行時間 149 ms / 1,000 ms
コード長 521 bytes
コンパイル時間 2,365 ms
コンパイル使用メモリ 74,744 KB
実行使用メモリ 55,828 KB
最終ジャッジ日時 2024-06-27 03:44:06
合計ジャッジ時間 8,184 ms
ジャッジサーバーID
(参考情報)
judge5 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 30
権限があれば一括ダウンロードができます

ソースコード

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