結果
| 問題 |
No.441 和か積
|
| ユーザー |
yokoshabel
|
| 提出日時 | 2017-01-01 00:27:01 |
| 言語 | Java (openjdk 23) |
| 結果 |
AC
|
| 実行時間 | 152 ms / 1,000 ms |
| コード長 | 439 bytes |
| コンパイル時間 | 3,852 ms |
| コンパイル使用メモリ | 75,712 KB |
| 実行使用メモリ | 54,412 KB |
| 最終ジャッジ日時 | 2024-06-27 03:42:32 |
| 合計ジャッジ時間 | 9,651 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 30 |
ソースコード
import java.util.Scanner;
import java.math.*;
import static java.lang.System.out;
public class No441{
public static void main(String[] args){
Scanner sc=new Scanner(System.in);
BigInteger a=sc.nextBigInteger();
BigInteger b=sc.nextBigInteger();
BigInteger s=a.add(b),p=a.multiply(b);
if(s.compareTo(p)==0){out.println("E");}
if(s.compareTo(p)>0){out.println("S");}
if(s.compareTo(p)<0){out.println("P");}
sc.close();
}
}
yokoshabel