結果

問題 No.441 和か積
ユーザー YamaKasa
提出日時 2018-05-24 22:17:01
言語 Java
(openjdk 23)
結果
WA  
実行時間 -
コード長 495 bytes
コンパイル時間 1,809 ms
コンパイル使用メモリ 74,436 KB
実行使用メモリ 54,348 KB
最終ジャッジ日時 2024-06-28 17:32:10
合計ジャッジ時間 6,450 ms
ジャッジサーバーID
(参考情報)
judge5 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 23 WA * 7
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		String A = scan.next();
		String B = scan.next();
		scan.close();
		if(A.equals("0") && B.equals("0")) {
			System.out.println("E");
		}else if((A.equals("2") && B.equals("2")) || (A.equals("1") && B.equals("1"))) {
			System.out.println("E");
		}else if(A.equals("0") || B.equals("0")) {
			System.out.println("S");
		}else {
			System.out.println("P");
		}
	}
}
0