結果

問題 No.441 和か積
ユーザー Tsukasa_TypeTsukasa_Type
提出日時 2018-02-11 23:57:23
言語 Java21
(openjdk 21)
結果
AC  
実行時間 126 ms / 1,000 ms
コード長 657 bytes
コンパイル時間 2,079 ms
コンパイル使用メモリ 71,508 KB
実行使用メモリ 55,932 KB
最終ジャッジ日時 2023-09-09 10:49:29
合計ジャッジ時間 7,448 ms
ジャッジサーバーID
(参考情報)
judge13 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 120 ms
55,600 KB
testcase_01 AC 120 ms
55,648 KB
testcase_02 AC 118 ms
55,492 KB
testcase_03 AC 121 ms
55,740 KB
testcase_04 AC 121 ms
55,780 KB
testcase_05 AC 123 ms
55,800 KB
testcase_06 AC 120 ms
55,788 KB
testcase_07 AC 119 ms
55,356 KB
testcase_08 AC 119 ms
55,548 KB
testcase_09 AC 118 ms
55,632 KB
testcase_10 AC 119 ms
55,716 KB
testcase_11 AC 117 ms
55,440 KB
testcase_12 AC 120 ms
55,792 KB
testcase_13 AC 120 ms
55,708 KB
testcase_14 AC 119 ms
55,656 KB
testcase_15 AC 120 ms
55,720 KB
testcase_16 AC 120 ms
55,740 KB
testcase_17 AC 119 ms
55,744 KB
testcase_18 AC 118 ms
55,760 KB
testcase_19 AC 118 ms
55,932 KB
testcase_20 AC 122 ms
55,880 KB
testcase_21 AC 126 ms
55,780 KB
testcase_22 AC 121 ms
55,836 KB
testcase_23 AC 123 ms
55,520 KB
testcase_24 AC 122 ms
55,524 KB
testcase_25 AC 122 ms
55,616 KB
testcase_26 AC 117 ms
55,844 KB
testcase_27 AC 119 ms
55,368 KB
testcase_28 AC 120 ms
55,692 KB
testcase_29 AC 122 ms
55,824 KB
testcase_30 AC 122 ms
55,732 KB
testcase_31 AC 119 ms
55,604 KB
testcase_32 AC 123 ms
55,720 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 if (a.equals("1")&&b.equals("1")) {
			System.out.println("S");
		}
		else {
			System.out.println("P");
		}
	}
}
0