結果

問題 No.441 和か積
ユーザー hermione17
提出日時 2016-11-11 22:26:33
言語 Java
(openjdk 23)
結果
WA  
実行時間 -
コード長 560 bytes
コンパイル時間 3,342 ms
コンパイル使用メモリ 74,552 KB
実行使用メモリ 41,636 KB
最終ジャッジ日時 2024-11-25 08:27:18
合計ジャッジ時間 8,719 ms
ジャッジサーバーID
(参考情報)
judge4 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 29 WA * 1
権限があれば一括ダウンロードができます

ソースコード

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