結果
| 問題 |
No.441 和か積
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2016-11-15 15:03:07 |
| 言語 | Java (openjdk 23) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 468 bytes |
| コンパイル時間 | 3,659 ms |
| コンパイル使用メモリ | 74,524 KB |
| 実行使用メモリ | 56,288 KB |
| 最終ジャッジ日時 | 2024-11-26 01:41:30 |
| 合計ジャッジ時間 | 7,264 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | WA * 3 |
| other | WA * 30 |
ソースコード
import java.math.BigInteger;
import java.util.Scanner;
public class atc {
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 pro=a.multiply(b);
int i = sum.compareTo(pro);
System.out.println(i);
if(i==0)System.out.println("E");
if(i==1)System.out.println("S");
if(i==-1)System.out.println("P");
}
}