結果

問題 No.441 和か積
ユーザー htensaihtensai
提出日時 2019-11-19 12:28:07
言語 Java21
(openjdk 21)
結果
AC  
実行時間 134 ms / 1,000 ms
コード長 500 bytes
コンパイル時間 2,202 ms
コンパイル使用メモリ 74,460 KB
実行使用メモリ 54,600 KB
最終ジャッジ日時 2024-04-14 09:23:55
合計ジャッジ時間 7,532 ms
ジャッジサーバーID
(参考情報)
judge5 / judge1
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 124 ms
53,980 KB
testcase_01 AC 125 ms
53,772 KB
testcase_02 AC 124 ms
54,264 KB
testcase_03 AC 126 ms
54,136 KB
testcase_04 AC 125 ms
53,764 KB
testcase_05 AC 127 ms
54,224 KB
testcase_06 AC 128 ms
54,256 KB
testcase_07 AC 127 ms
53,952 KB
testcase_08 AC 125 ms
54,116 KB
testcase_09 AC 125 ms
53,772 KB
testcase_10 AC 128 ms
54,332 KB
testcase_11 AC 125 ms
54,176 KB
testcase_12 AC 126 ms
54,192 KB
testcase_13 AC 127 ms
54,140 KB
testcase_14 AC 124 ms
54,172 KB
testcase_15 AC 131 ms
53,860 KB
testcase_16 AC 133 ms
53,908 KB
testcase_17 AC 126 ms
54,308 KB
testcase_18 AC 123 ms
54,344 KB
testcase_19 AC 125 ms
54,328 KB
testcase_20 AC 132 ms
54,028 KB
testcase_21 AC 130 ms
53,988 KB
testcase_22 AC 128 ms
54,188 KB
testcase_23 AC 133 ms
54,348 KB
testcase_24 AC 131 ms
54,252 KB
testcase_25 AC 113 ms
53,104 KB
testcase_26 AC 127 ms
54,600 KB
testcase_27 AC 124 ms
53,880 KB
testcase_28 AC 126 ms
53,772 KB
testcase_29 AC 127 ms
54,248 KB
testcase_30 AC 128 ms
54,288 KB
testcase_31 AC 128 ms
54,156 KB
testcase_32 AC 134 ms
53,860 KB
権限があれば一括ダウンロードができます

ソースコード

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