結果

問題 No.441 和か積
ユーザー htensaihtensai
提出日時 2019-11-19 12:28:07
言語 Java
(openjdk 23)
結果
AC  
実行時間 128 ms / 1,000 ms
コード長 500 bytes
コンパイル時間 2,211 ms
コンパイル使用メモリ 75,036 KB
実行使用メモリ 54,268 KB
最終ジャッジ日時 2024-10-03 06:25:05
合計ジャッジ時間 7,345 ms
ジャッジサーバーID
(参考情報)
judge1 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 30
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.*;

public class Main {
	public static void main (String[] args) {
		Scanner sc = new Scanner(System.in);
		String a = sc.next();
		String b = sc.next();
		int aa = 100;
		int bb = 100;
		if (a.length() == 1) {
		    aa = Integer.parseInt(a);
		}
		if (b.length() == 1) {
		    bb = Integer.parseInt(b);
		}
		if (aa * bb > aa + bb) {
		    System.out.println("P");
		} else if (aa * bb == aa + bb) {
		    System.out.println("E");
		} else {
		    System.out.println("S");
		}
	}
}
0