結果

問題 No.441 和か積
ユーザー hermione17hermione17
提出日時 2016-11-11 22:26:33
言語 Java21
(openjdk 21)
結果
WA  
実行時間 -
コード長 560 bytes
コンパイル時間 3,029 ms
コンパイル使用メモリ 75,028 KB
実行使用メモリ 41,520 KB
最終ジャッジ日時 2024-05-04 02:20:48
合計ジャッジ時間 7,466 ms
ジャッジサーバーID
(参考情報)
judge5 / judge2
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 113 ms
41,272 KB
testcase_01 AC 122 ms
41,344 KB
testcase_02 AC 111 ms
41,036 KB
testcase_03 AC 115 ms
41,168 KB
testcase_04 AC 109 ms
41,024 KB
testcase_05 AC 107 ms
40,004 KB
testcase_06 AC 93 ms
39,500 KB
testcase_07 AC 108 ms
41,096 KB
testcase_08 AC 97 ms
40,012 KB
testcase_09 AC 95 ms
40,440 KB
testcase_10 AC 110 ms
41,404 KB
testcase_11 AC 98 ms
40,012 KB
testcase_12 AC 99 ms
40,776 KB
testcase_13 AC 109 ms
41,040 KB
testcase_14 AC 97 ms
40,352 KB
testcase_15 AC 110 ms
41,028 KB
testcase_16 AC 109 ms
41,148 KB
testcase_17 WA -
testcase_18 AC 110 ms
41,024 KB
testcase_19 AC 107 ms
40,696 KB
testcase_20 AC 102 ms
40,272 KB
testcase_21 AC 113 ms
41,344 KB
testcase_22 AC 110 ms
41,020 KB
testcase_23 AC 110 ms
41,376 KB
testcase_24 AC 95 ms
39,756 KB
testcase_25 AC 111 ms
40,224 KB
testcase_26 AC 106 ms
40,268 KB
testcase_27 AC 118 ms
41,392 KB
testcase_28 AC 97 ms
40,264 KB
testcase_29 AC 108 ms
41,520 KB
testcase_30 AC 106 ms
41,216 KB
testcase_31 AC 100 ms
40,780 KB
testcase_32 AC 104 ms
41,208 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("1") || 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