結果

問題 No.441 和か積
ユーザー YamaKasaYamaKasa
提出日時 2018-05-24 22:17:01
言語 Java21
(openjdk 21)
結果
WA  
実行時間 -
コード長 495 bytes
コンパイル時間 2,069 ms
コンパイル使用メモリ 71,628 KB
実行使用メモリ 57,960 KB
最終ジャッジ日時 2023-09-11 03:00:31
合計ジャッジ時間 8,667 ms
ジャッジサーバーID
(参考情報)
judge12 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 AC 119 ms
55,724 KB
testcase_02 AC 121 ms
55,500 KB
testcase_03 AC 122 ms
55,984 KB
testcase_04 AC 122 ms
55,836 KB
testcase_05 AC 122 ms
55,972 KB
testcase_06 AC 122 ms
57,960 KB
testcase_07 AC 120 ms
55,916 KB
testcase_08 AC 121 ms
55,816 KB
testcase_09 AC 120 ms
56,016 KB
testcase_10 AC 121 ms
55,596 KB
testcase_11 AC 121 ms
56,040 KB
testcase_12 WA -
testcase_13 AC 122 ms
53,984 KB
testcase_14 AC 121 ms
55,492 KB
testcase_15 WA -
testcase_16 AC 119 ms
55,588 KB
testcase_17 WA -
testcase_18 AC 121 ms
55,600 KB
testcase_19 AC 119 ms
56,144 KB
testcase_20 AC 124 ms
56,160 KB
testcase_21 AC 123 ms
55,996 KB
testcase_22 AC 123 ms
55,604 KB
testcase_23 WA -
testcase_24 WA -
testcase_25 AC 122 ms
56,144 KB
testcase_26 WA -
testcase_27 AC 119 ms
55,696 KB
testcase_28 AC 122 ms
55,504 KB
testcase_29 AC 122 ms
55,824 KB
testcase_30 AC 122 ms
55,776 KB
testcase_31 AC 123 ms
56,168 KB
testcase_32 AC 121 ms
55,944 KB
権限があれば一括ダウンロードができます

ソースコード

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