結果

問題 No.441 和か積
ユーザー yamax3232yamax3232
提出日時 2017-02-15 20:21:45
言語 Java21
(openjdk 21)
結果
WA  
実行時間 -
コード長 367 bytes
コンパイル時間 3,263 ms
コンパイル使用メモリ 72,708 KB
実行使用メモリ 58,480 KB
最終ジャッジ日時 2023-08-28 17:27:34
合計ジャッジ時間 9,127 ms
ジャッジサーバーID
(参考情報)
judge12 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 136 ms
56,092 KB
testcase_01 AC 132 ms
56,224 KB
testcase_02 AC 134 ms
56,024 KB
testcase_03 AC 137 ms
56,448 KB
testcase_04 AC 138 ms
55,984 KB
testcase_05 AC 138 ms
56,144 KB
testcase_06 AC 148 ms
56,292 KB
testcase_07 AC 134 ms
55,960 KB
testcase_08 AC 134 ms
56,172 KB
testcase_09 AC 138 ms
58,480 KB
testcase_10 AC 135 ms
56,056 KB
testcase_11 AC 136 ms
56,244 KB
testcase_12 WA -
testcase_13 AC 132 ms
56,568 KB
testcase_14 AC 134 ms
56,328 KB
testcase_15 AC 134 ms
56,092 KB
testcase_16 AC 137 ms
56,064 KB
testcase_17 AC 134 ms
55,996 KB
testcase_18 AC 135 ms
56,216 KB
testcase_19 AC 134 ms
55,732 KB
testcase_20 AC 144 ms
55,772 KB
testcase_21 AC 145 ms
56,008 KB
testcase_22 AC 142 ms
56,048 KB
testcase_23 WA -
testcase_24 WA -
testcase_25 AC 138 ms
55,728 KB
testcase_26 WA -
testcase_27 AC 134 ms
56,036 KB
testcase_28 AC 142 ms
56,424 KB
testcase_29 AC 138 ms
56,348 KB
testcase_30 AC 136 ms
56,148 KB
testcase_31 AC 139 ms
56,012 KB
testcase_32 AC 147 ms
56,644 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;

public class WakaSeki {

	public static void main(String[] args) {
		// TODO 自動生成されたメソッド・スタブ
Scanner kb=new Scanner(System.in);
double a=kb.nextDouble(),b=kb.nextDouble();
if(a+b>a*b){
	System.out.println("S");
}else if(a+b<a*b){
	System.out.println("P");
}else{
	System.out.println("E");
}
kb.close();

	}

}
0