結果
問題 | No.441 和か積 |
ユーザー |
![]() |
提出日時 | 2017-05-21 01:57:06 |
言語 | Java (openjdk 23) |
結果 |
AC
|
実行時間 | 135 ms / 1,000 ms |
コード長 | 455 bytes |
コンパイル時間 | 2,447 ms |
コンパイル使用メモリ | 75,020 KB |
実行使用メモリ | 41,608 KB |
最終ジャッジ日時 | 2024-06-27 03:53:29 |
合計ジャッジ時間 | 7,758 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 30 |
ソースコード
import java.util.*;import java.math.BigInteger;class test{public static void main(String[] args){Scanner sc = new Scanner(System.in);BigInteger A = new BigInteger(sc.next());BigInteger B = new BigInteger(sc.next());if( (A.add(B)).compareTo (A.multiply(B)) == 1 ){System.out.println("S");}else if( (A.add(B)).compareTo (A.multiply(B)) == -1 ){System.out.println("P");}else{System.out.println("E");}}}