結果

問題 No.441 和か積
ユーザー shinwisteriashinwisteria
提出日時 2017-03-30 17:27:12
言語 Java21
(openjdk 21)
結果
AC  
実行時間 121 ms / 1,000 ms
コード長 590 bytes
コンパイル時間 5,129 ms
コンパイル使用メモリ 71,944 KB
実行使用メモリ 56,124 KB
最終ジャッジ日時 2023-09-09 10:40:00
合計ジャッジ時間 8,726 ms
ジャッジサーバーID
(参考情報)
judge13 / judge15
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 118 ms
55,736 KB
testcase_01 AC 117 ms
55,508 KB
testcase_02 AC 117 ms
55,156 KB
testcase_03 AC 119 ms
56,124 KB
testcase_04 AC 119 ms
55,684 KB
testcase_05 AC 119 ms
55,816 KB
testcase_06 AC 120 ms
55,828 KB
testcase_07 AC 119 ms
55,904 KB
testcase_08 AC 118 ms
55,448 KB
testcase_09 AC 119 ms
55,328 KB
testcase_10 AC 118 ms
55,776 KB
testcase_11 AC 118 ms
55,560 KB
testcase_12 AC 118 ms
55,896 KB
testcase_13 AC 121 ms
55,684 KB
testcase_14 AC 119 ms
55,556 KB
testcase_15 AC 116 ms
55,464 KB
testcase_16 AC 115 ms
55,468 KB
testcase_17 AC 114 ms
55,576 KB
testcase_18 AC 116 ms
55,536 KB
testcase_19 AC 115 ms
55,540 KB
testcase_20 AC 117 ms
55,572 KB
testcase_21 AC 118 ms
55,588 KB
testcase_22 AC 119 ms
56,104 KB
testcase_23 AC 113 ms
55,496 KB
testcase_24 AC 118 ms
55,812 KB
testcase_25 AC 117 ms
56,084 KB
testcase_26 AC 117 ms
55,716 KB
testcase_27 AC 116 ms
55,336 KB
testcase_28 AC 119 ms
55,856 KB
testcase_29 AC 120 ms
55,336 KB
testcase_30 AC 121 ms
55,496 KB
testcase_31 AC 119 ms
55,612 KB
testcase_32 AC 119 ms
55,852 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;

public class Wakaseki {

	public static void main(String[] args) {
		Scanner s = new Scanner(System.in);
		String left = s.next(),right = s.next();
		//System.out.println(left + "  " + right);
		s.close();
		if(left.equals("0") && right.equals("0")){
			System.out.println("E");
		}else if(left.equals("0") || right.equals("0")){
			System.out.println("S");
		}else if(left.equals("1") || right.equals("1")){
			System.out.println("S");
		}else if(left.equals("2") && right.equals("2")){
			System.out.println("E");
		}else{
			System.out.println("P");
		}
	}

}
0