結果

問題 No.441 和か積
ユーザー hermione17
提出日時 2016-11-11 22:28:03
言語 Java
(openjdk 23)
結果
AC  
実行時間 130 ms / 1,000 ms
コード長 543 bytes
コンパイル時間 3,521 ms
コンパイル使用メモリ 74,432 KB
実行使用メモリ 54,400 KB
最終ジャッジ日時 2024-06-27 03:20:35
合計ジャッジ時間 8,409 ms
ジャッジサーバーID
(参考情報)
judge5 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 30
権限があれば一括ダウンロードができます

ソースコード

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