結果

問題 No.441 和か積
ユーザー リチウム
提出日時 2016-11-15 15:04:10
言語 Java
(openjdk 23)
結果
AC  
実行時間 127 ms / 1,000 ms
コード長 446 bytes
コンパイル時間 3,275 ms
コンパイル使用メモリ 74,820 KB
実行使用メモリ 41,608 KB
最終ジャッジ日時 2024-06-27 03:35:36
合計ジャッジ時間 8,361 ms
ジャッジサーバーID
(参考情報)
judge2 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 30
権限があれば一括ダウンロードができます

ソースコード

diff #

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);
		
		if(i==0)System.out.println("E");
		if(i==1)System.out.println("S");
		if(i==-1)System.out.println("P");
	
	}
	
}
0