結果
| 問題 |
No.441 和か積
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2017-02-18 02:30:43 |
| 言語 | Java (openjdk 23) |
| 結果 |
RE
|
| 実行時間 | - |
| コード長 | 325 bytes |
| コンパイル時間 | 3,609 ms |
| コンパイル使用メモリ | 75,072 KB |
| 実行使用メモリ | 54,608 KB |
| 最終ジャッジ日時 | 2024-12-30 03:15:03 |
| 合計ジャッジ時間 | 9,673 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 RE * 1 |
| other | AC * 10 RE * 20 |
ソースコード
import java.util.Scanner;
public class Ex1
{
public static void main(String[] args)
{
Scanner scan = new Scanner(System.in);
int a = scan.nextInt();
int b = scan.nextInt();
if(a+b > a*b){
System.out.println("S");
}else if(a+b < a*b){
System.out.println("P");
}else{
System.out.println("E");
}
}
}