結果

問題 No.441 和か積
ユーザー RS-7
提出日時 2016-11-17 19:24:51
言語 Java
(openjdk 23)
結果
WA  
実行時間 -
コード長 395 bytes
コンパイル時間 3,631 ms
コンパイル使用メモリ 74,576 KB
実行使用メモリ 41,764 KB
最終ジャッジ日時 2024-11-26 03:06:38
合計ジャッジ時間 9,253 ms
ジャッジサーバーID
(参考情報)
judge2 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2 RE * 1
other AC * 10 WA * 1 RE * 19
権限があれば一括ダウンロードができます

ソースコード

diff #

package No_441;

import java.util.Scanner;

public class No_441 {

	public static void main(String[] args) {
		Scanner scanner = new Scanner(System.in);
		long a = scanner.nextLong();
		long b = scanner.nextLong();
		long c = a + b;
		long d = a * b;

		if(c > d){
			System.out.println("S");
		}else if(c < d){
			System.out.println("P");
		}else if(c==d){
			System.out.println("E");
		}
	}

}
0