結果

問題 No.441 和か積
ユーザー YamaKasaYamaKasa
提出日時 2018-05-24 22:19:33
言語 Java21
(openjdk 21)
結果
AC  
実行時間 123 ms / 1,000 ms
コード長 492 bytes
コンパイル時間 2,178 ms
コンパイル使用メモリ 71,848 KB
実行使用メモリ 56,596 KB
最終ジャッジ日時 2023-09-11 03:00:49
合計ジャッジ時間 7,707 ms
ジャッジサーバーID
(参考情報)
judge14 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 116 ms
55,824 KB
testcase_01 AC 118 ms
55,712 KB
testcase_02 AC 117 ms
55,792 KB
testcase_03 AC 119 ms
55,816 KB
testcase_04 AC 119 ms
55,740 KB
testcase_05 AC 119 ms
56,364 KB
testcase_06 AC 119 ms
55,840 KB
testcase_07 AC 121 ms
55,532 KB
testcase_08 AC 120 ms
55,852 KB
testcase_09 AC 120 ms
55,616 KB
testcase_10 AC 121 ms
55,932 KB
testcase_11 AC 120 ms
55,676 KB
testcase_12 AC 122 ms
55,868 KB
testcase_13 AC 118 ms
55,508 KB
testcase_14 AC 120 ms
55,620 KB
testcase_15 AC 118 ms
56,008 KB
testcase_16 AC 119 ms
55,756 KB
testcase_17 AC 118 ms
55,900 KB
testcase_18 AC 119 ms
55,464 KB
testcase_19 AC 117 ms
55,836 KB
testcase_20 AC 121 ms
55,736 KB
testcase_21 AC 121 ms
55,732 KB
testcase_22 AC 122 ms
55,940 KB
testcase_23 AC 120 ms
55,772 KB
testcase_24 AC 119 ms
55,700 KB
testcase_25 AC 121 ms
55,924 KB
testcase_26 AC 122 ms
55,792 KB
testcase_27 AC 115 ms
56,596 KB
testcase_28 AC 118 ms
55,536 KB
testcase_29 AC 119 ms
55,928 KB
testcase_30 AC 122 ms
55,964 KB
testcase_31 AC 123 ms
55,844 KB
testcase_32 AC 123 ms
56,344 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"))) {
			System.out.println("E");
		}else if(A.equals("0") || B.equals("0") ||A.equals("1") || B.equals("1")) {
			System.out.println("S");
		}else {
			System.out.println("P");
		}
	}
}
0