結果

問題 No.441 和か積
ユーザー kohaku_kohakukohaku_kohaku
提出日時 2016-11-11 22:44:31
言語 Java21
(openjdk 21)
結果
AC  
実行時間 119 ms / 1,000 ms
コード長 617 bytes
コンパイル時間 2,796 ms
コンパイル使用メモリ 70,992 KB
実行使用メモリ 57,060 KB
最終ジャッジ日時 2023-09-09 10:17:00
合計ジャッジ時間 8,169 ms
ジャッジサーバーID
(参考情報)
judge14 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 107 ms
55,800 KB
testcase_01 AC 111 ms
56,220 KB
testcase_02 AC 112 ms
55,452 KB
testcase_03 AC 112 ms
55,716 KB
testcase_04 AC 116 ms
55,804 KB
testcase_05 AC 116 ms
55,496 KB
testcase_06 AC 116 ms
55,716 KB
testcase_07 AC 114 ms
55,468 KB
testcase_08 AC 111 ms
55,704 KB
testcase_09 AC 110 ms
55,448 KB
testcase_10 AC 109 ms
55,540 KB
testcase_11 AC 109 ms
55,600 KB
testcase_12 AC 115 ms
55,580 KB
testcase_13 AC 111 ms
55,620 KB
testcase_14 AC 109 ms
55,580 KB
testcase_15 AC 112 ms
55,492 KB
testcase_16 AC 111 ms
55,804 KB
testcase_17 AC 113 ms
55,448 KB
testcase_18 AC 117 ms
55,764 KB
testcase_19 AC 114 ms
55,812 KB
testcase_20 AC 115 ms
55,724 KB
testcase_21 AC 116 ms
55,456 KB
testcase_22 AC 116 ms
55,936 KB
testcase_23 AC 114 ms
57,060 KB
testcase_24 AC 111 ms
55,832 KB
testcase_25 AC 110 ms
55,724 KB
testcase_26 AC 119 ms
55,608 KB
testcase_27 AC 112 ms
55,840 KB
testcase_28 AC 114 ms
55,420 KB
testcase_29 AC 115 ms
55,420 KB
testcase_30 AC 114 ms
55,956 KB
testcase_31 AC 113 ms
55,548 KB
testcase_32 AC 115 ms
56,160 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("E");
        }else 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