結果

問題 No.441 和か積
ユーザー Tsukasa_TypeTsukasa_Type
提出日時 2018-02-11 23:56:25
言語 Java21
(openjdk 21)
結果
WA  
実行時間 -
コード長 582 bytes
コンパイル時間 1,816 ms
コンパイル使用メモリ 74,240 KB
実行使用メモリ 55,536 KB
最終ジャッジ日時 2024-05-01 10:09:28
合計ジャッジ時間 6,227 ms
ジャッジサーバーID
(参考情報)
judge5 / judge2
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 104 ms
43,184 KB
testcase_01 AC 110 ms
42,812 KB
testcase_02 AC 114 ms
42,804 KB
testcase_03 AC 115 ms
43,180 KB
testcase_04 AC 105 ms
42,652 KB
testcase_05 AC 96 ms
43,048 KB
testcase_06 AC 96 ms
42,836 KB
testcase_07 AC 101 ms
43,004 KB
testcase_08 AC 109 ms
41,720 KB
testcase_09 AC 106 ms
43,236 KB
testcase_10 AC 107 ms
43,164 KB
testcase_11 AC 108 ms
43,328 KB
testcase_12 AC 105 ms
43,264 KB
testcase_13 AC 113 ms
43,080 KB
testcase_14 AC 96 ms
43,040 KB
testcase_15 AC 106 ms
43,036 KB
testcase_16 AC 98 ms
43,600 KB
testcase_17 WA -
testcase_18 AC 106 ms
42,936 KB
testcase_19 AC 108 ms
43,136 KB
testcase_20 AC 96 ms
42,908 KB
testcase_21 AC 102 ms
43,136 KB
testcase_22 AC 107 ms
43,140 KB
testcase_23 AC 106 ms
43,304 KB
testcase_24 AC 99 ms
43,040 KB
testcase_25 AC 114 ms
43,132 KB
testcase_26 AC 95 ms
42,652 KB
testcase_27 AC 103 ms
43,064 KB
testcase_28 AC 109 ms
42,900 KB
testcase_29 AC 107 ms
43,152 KB
testcase_30 AC 104 ms
43,152 KB
testcase_31 AC 108 ms
43,260 KB
testcase_32 AC 107 ms
43,288 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.*;

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