結果
| 問題 | No.441 和か積 | 
| コンテスト | |
| ユーザー |  Tsukasa_Type | 
| 提出日時 | 2018-02-11 23:56:25 | 
| 言語 | Java (openjdk 23) | 
| 結果 | 
                                WA
                                 
                             | 
| 実行時間 | - | 
| コード長 | 582 bytes | 
| コンパイル時間 | 3,499 ms | 
| コンパイル使用メモリ | 74,520 KB | 
| 実行使用メモリ | 41,512 KB | 
| 最終ジャッジ日時 | 2024-11-21 13:38:09 | 
| 合計ジャッジ時間 | 7,104 ms | 
| ジャッジサーバーID (参考情報) | judge2 / judge3 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | AC * 3 | 
| other | AC * 29 WA * 1 | 
ソースコード
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");
		}
	}
}
            
            
            
        