結果
問題 | No.441 和か積 |
ユーザー |
|
提出日時 | 2016-11-16 16:29:06 |
言語 | Java (openjdk 23) |
結果 |
AC
|
実行時間 | 136 ms / 1,000 ms |
コード長 | 427 bytes |
コンパイル時間 | 1,956 ms |
コンパイル使用メモリ | 73,624 KB |
実行使用メモリ | 41,792 KB |
最終ジャッジ日時 | 2024-06-27 03:36:09 |
合計ジャッジ時間 | 7,156 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 30 |
ソースコード
import java.util.Scanner;import java.math.BigInteger;class map{public static void main(String[] args){Scanner sc=new Scanner(System.in);BigInteger a=sc.nextBigInteger();;BigInteger b=sc.nextBigInteger();BigInteger c=a.add(b);BigInteger d=a.multiply(b);if(c.compareTo(d)>0){System.out.println('S');}else if(d.compareTo(c)>0){System.out.println('P');}else{System.out.println('E');}}}