結果

問題 No.441 和か積
ユーザー kohaku_kohakukohaku_kohaku
提出日時 2016-11-11 22:30:03
言語 Java21
(openjdk 21)
結果
WA  
実行時間 -
コード長 529 bytes
コンパイル時間 1,852 ms
コンパイル使用メモリ 71,836 KB
実行使用メモリ 57,852 KB
最終ジャッジ日時 2023-08-16 18:50:25
合計ジャッジ時間 7,079 ms
ジャッジサーバーID
(参考情報)
judge12 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 113 ms
55,804 KB
testcase_01 AC 115 ms
55,816 KB
testcase_02 AC 119 ms
55,780 KB
testcase_03 AC 113 ms
55,636 KB
testcase_04 AC 114 ms
55,912 KB
testcase_05 AC 114 ms
56,204 KB
testcase_06 AC 113 ms
56,440 KB
testcase_07 AC 113 ms
53,796 KB
testcase_08 AC 112 ms
55,904 KB
testcase_09 AC 114 ms
55,548 KB
testcase_10 AC 115 ms
55,908 KB
testcase_11 WA -
testcase_12 AC 113 ms
56,096 KB
testcase_13 AC 116 ms
55,960 KB
testcase_14 AC 115 ms
55,764 KB
testcase_15 AC 116 ms
55,576 KB
testcase_16 AC 117 ms
55,812 KB
testcase_17 AC 115 ms
55,440 KB
testcase_18 AC 116 ms
55,800 KB
testcase_19 AC 112 ms
55,424 KB
testcase_20 AC 118 ms
56,136 KB
testcase_21 AC 118 ms
56,016 KB
testcase_22 AC 120 ms
56,404 KB
testcase_23 AC 120 ms
55,924 KB
testcase_24 AC 119 ms
55,840 KB
testcase_25 AC 118 ms
56,056 KB
testcase_26 AC 120 ms
57,852 KB
testcase_27 AC 115 ms
55,808 KB
testcase_28 AC 117 ms
55,948 KB
testcase_29 AC 119 ms
55,968 KB
testcase_30 AC 119 ms
56,092 KB
testcase_31 AC 119 ms
56,012 KB
testcase_32 AC 118 ms
55,476 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.*;

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