結果
| 問題 | No.441 和か積 | 
| コンテスト | |
| ユーザー |  samplelpmas | 
| 提出日時 | 2017-01-16 18:45:07 | 
| 言語 | Java (openjdk 23) | 
| 結果 | 
                                AC
                                 
                             | 
| 実行時間 | 127 ms / 1,000 ms | 
| コード長 | 671 bytes | 
| コンパイル時間 | 1,952 ms | 
| コンパイル使用メモリ | 74,608 KB | 
| 実行使用メモリ | 53,912 KB | 
| 最終ジャッジ日時 | 2024-06-27 03:43:55 | 
| 合計ジャッジ時間 | 7,098 ms | 
| ジャッジサーバーID (参考情報) | judge2 / judge3 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | AC * 3 | 
| other | AC * 30 | 
ソースコード
import java.math.BigInteger;
import java.util.Scanner;
public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        BigInteger A = new BigInteger(sc.next());
        BigInteger B = new BigInteger(sc.next());
        BigInteger sum = A.add(B);
        BigInteger product = A.multiply(B);
        switch (sum.compareTo(product)) {
            case -1 :
                System.out.println('P');
                return;
            case 0 :
                System.out.println('E');
                return;
            case 1 :
                System.out.println('S');
                return;
        }
    }
}
            
            
            
        