結果

問題 No.441 和か積
ユーザー Minami Shota
提出日時 2016-11-11 23:18:34
言語 Java
(openjdk 23)
結果
RE  
実行時間 -
コード長 395 bytes
コンパイル時間 3,475 ms
コンパイル使用メモリ 74,752 KB
実行使用メモリ 55,672 KB
最終ジャッジ日時 2024-11-25 09:29:27
合計ジャッジ時間 8,741 ms
ジャッジサーバーID
(参考情報)
judge3 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2 RE * 1
other AC * 10 RE * 20
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;

public class Hello {

	public static void main(String[] args) {
		Scanner scanner = new Scanner(System.in);
		String x = scanner.next(), y = scanner.next();
		int a=Integer.parseInt(x),b=Integer.parseInt(y);

		if(x.length() < 4 && y.length() < 4) {
			System.out.println(a*b==a+b?"E":a*b>a+b?"P":"S");
		} else {
			System.out.println((a<2)||(b<2)?"S":"P");
		}
	}
}
0