結果

問題 No.441 和か積
ユーザー yamax3232yamax3232
提出日時 2017-02-10 17:24:46
言語 Java21
(openjdk 21)
結果
WA  
実行時間 -
コード長 332 bytes
コンパイル時間 3,246 ms
コンパイル使用メモリ 71,840 KB
実行使用メモリ 58,232 KB
最終ジャッジ日時 2023-08-27 06:54:07
合計ジャッジ時間 9,336 ms
ジャッジサーバーID
(参考情報)
judge11 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 139 ms
55,760 KB
testcase_01 AC 137 ms
55,584 KB
testcase_02 AC 140 ms
56,188 KB
testcase_03 AC 141 ms
56,220 KB
testcase_04 AC 141 ms
56,160 KB
testcase_05 AC 142 ms
56,020 KB
testcase_06 AC 144 ms
56,332 KB
testcase_07 AC 140 ms
56,108 KB
testcase_08 AC 138 ms
56,076 KB
testcase_09 AC 138 ms
55,900 KB
testcase_10 AC 138 ms
56,164 KB
testcase_11 AC 138 ms
56,152 KB
testcase_12 WA -
testcase_13 AC 141 ms
55,872 KB
testcase_14 AC 140 ms
56,108 KB
testcase_15 AC 139 ms
56,332 KB
testcase_16 AC 140 ms
55,768 KB
testcase_17 AC 140 ms
56,160 KB
testcase_18 AC 138 ms
55,800 KB
testcase_19 AC 138 ms
56,332 KB
testcase_20 AC 146 ms
55,904 KB
testcase_21 AC 143 ms
55,756 KB
testcase_22 AC 147 ms
55,996 KB
testcase_23 WA -
testcase_24 WA -
testcase_25 AC 143 ms
55,632 KB
testcase_26 WA -
testcase_27 AC 137 ms
55,964 KB
testcase_28 AC 143 ms
56,084 KB
testcase_29 AC 144 ms
55,832 KB
testcase_30 AC 143 ms
56,012 KB
testcase_31 AC 143 ms
56,148 KB
testcase_32 AC 143 ms
55,936 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;
public class KashoHyoka{
	public static void main(String[] args){
	Scanner kb=new Scanner(System.in);
double a,b;
	a=kb.nextDouble();
	b=kb.nextDouble();
	if(a+b>a*b){
		System.out.println("S");
	}
	else if(a+b==a*b){
		System.out.println("E");
	}else{
		System.out.println("P");
	}
	
	kb.close();
	
	}

}
0