結果

問題 No.441 和か積
ユーザー kohaku_kohakukohaku_kohaku
提出日時 2016-11-11 22:30:03
言語 Java21
(openjdk 21)
結果
WA  
実行時間 -
コード長 529 bytes
コンパイル時間 1,835 ms
コンパイル使用メモリ 74,952 KB
実行使用メモリ 52,568 KB
最終ジャッジ日時 2024-05-04 02:22:27
合計ジャッジ時間 6,227 ms
ジャッジサーバーID
(参考情報)
judge4 / judge5
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 96 ms
41,356 KB
testcase_01 AC 94 ms
40,272 KB
testcase_02 AC 96 ms
41,072 KB
testcase_03 AC 100 ms
39,888 KB
testcase_04 AC 105 ms
40,380 KB
testcase_05 AC 106 ms
41,112 KB
testcase_06 AC 94 ms
41,296 KB
testcase_07 AC 104 ms
40,544 KB
testcase_08 AC 95 ms
40,344 KB
testcase_09 AC 107 ms
41,460 KB
testcase_10 AC 102 ms
40,012 KB
testcase_11 WA -
testcase_12 AC 99 ms
39,892 KB
testcase_13 AC 97 ms
40,016 KB
testcase_14 AC 95 ms
40,016 KB
testcase_15 AC 95 ms
41,120 KB
testcase_16 AC 96 ms
40,172 KB
testcase_17 AC 99 ms
40,660 KB
testcase_18 AC 94 ms
40,784 KB
testcase_19 AC 99 ms
41,124 KB
testcase_20 AC 113 ms
41,416 KB
testcase_21 AC 108 ms
41,272 KB
testcase_22 AC 101 ms
40,820 KB
testcase_23 AC 97 ms
41,156 KB
testcase_24 AC 110 ms
41,396 KB
testcase_25 AC 100 ms
39,976 KB
testcase_26 AC 113 ms
41,276 KB
testcase_27 AC 110 ms
41,176 KB
testcase_28 AC 102 ms
40,016 KB
testcase_29 AC 101 ms
40,372 KB
testcase_30 AC 104 ms
39,972 KB
testcase_31 AC 105 ms
40,356 KB
testcase_32 AC 112 ms
41,132 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