結果

問題 No.441 和か積
ユーザー hermione17hermione17
提出日時 2016-11-11 22:28:03
言語 Java21
(openjdk 21)
結果
AC  
実行時間 120 ms / 1,000 ms
コード長 543 bytes
コンパイル時間 5,187 ms
コンパイル使用メモリ 71,440 KB
実行使用メモリ 56,684 KB
最終ジャッジ日時 2023-09-09 10:11:09
合計ジャッジ時間 9,040 ms
ジャッジサーバーID
(参考情報)
judge13 / judge11
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 116 ms
55,384 KB
testcase_01 AC 115 ms
55,584 KB
testcase_02 AC 116 ms
55,804 KB
testcase_03 AC 116 ms
56,504 KB
testcase_04 AC 116 ms
56,056 KB
testcase_05 AC 118 ms
56,176 KB
testcase_06 AC 117 ms
56,136 KB
testcase_07 AC 116 ms
55,984 KB
testcase_08 AC 115 ms
55,648 KB
testcase_09 AC 115 ms
55,776 KB
testcase_10 AC 115 ms
55,816 KB
testcase_11 AC 115 ms
55,436 KB
testcase_12 AC 118 ms
55,836 KB
testcase_13 AC 115 ms
55,376 KB
testcase_14 AC 115 ms
55,684 KB
testcase_15 AC 116 ms
55,796 KB
testcase_16 AC 116 ms
56,020 KB
testcase_17 AC 116 ms
56,684 KB
testcase_18 AC 117 ms
55,740 KB
testcase_19 AC 120 ms
55,636 KB
testcase_20 AC 120 ms
55,688 KB
testcase_21 AC 119 ms
56,068 KB
testcase_22 AC 119 ms
55,432 KB
testcase_23 AC 117 ms
55,708 KB
testcase_24 AC 116 ms
55,984 KB
testcase_25 AC 116 ms
55,888 KB
testcase_26 AC 116 ms
55,748 KB
testcase_27 AC 116 ms
55,732 KB
testcase_28 AC 117 ms
56,076 KB
testcase_29 AC 120 ms
55,920 KB
testcase_30 AC 118 ms
55,820 KB
testcase_31 AC 117 ms
55,588 KB
testcase_32 AC 117 ms
55,648 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.io.PrintStream;
import java.util.Scanner;


public class Y441 {
	Scanner in = new Scanner(System.in);
	PrintStream out = new PrintStream(System.out);

	Y441() throws Exception {
		String A = in.next();
		String B = in.next();
		
		if (A.equals(B) &&
				(A.equals("0") || A.equals("2"))) {
			out.println("E");
		} else if (A.equals("0") || A.equals("1") || B.equals("0") || B.equals("1")) {
			out.println("S");
		} else {
			out.println("P");
		}
	}

	public static void main(String argv[]) throws Exception {
		new Y441();
	}
}
0