結果

問題 No.441 和か積
ユーザー dksnkzkdksnkzk
提出日時 2017-02-18 02:43:54
言語 Java21
(openjdk 21)
結果
WA  
実行時間 -
コード長 336 bytes
コンパイル時間 3,152 ms
コンパイル使用メモリ 72,480 KB
実行使用メモリ 56,440 KB
最終ジャッジ日時 2023-08-28 18:34:22
合計ジャッジ時間 9,242 ms
ジャッジサーバーID
(参考情報)
judge12 / judge11
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 142 ms
56,364 KB
testcase_01 AC 141 ms
55,864 KB
testcase_02 AC 140 ms
56,252 KB
testcase_03 AC 141 ms
56,176 KB
testcase_04 AC 138 ms
56,244 KB
testcase_05 AC 141 ms
55,992 KB
testcase_06 AC 142 ms
55,648 KB
testcase_07 AC 140 ms
56,176 KB
testcase_08 AC 139 ms
56,300 KB
testcase_09 AC 135 ms
56,280 KB
testcase_10 AC 136 ms
56,268 KB
testcase_11 AC 136 ms
55,712 KB
testcase_12 WA -
testcase_13 AC 139 ms
55,956 KB
testcase_14 AC 139 ms
55,924 KB
testcase_15 AC 142 ms
56,232 KB
testcase_16 AC 138 ms
56,388 KB
testcase_17 AC 138 ms
56,092 KB
testcase_18 AC 137 ms
56,020 KB
testcase_19 AC 138 ms
56,228 KB
testcase_20 AC 143 ms
56,440 KB
testcase_21 AC 152 ms
56,176 KB
testcase_22 AC 142 ms
56,280 KB
testcase_23 WA -
testcase_24 WA -
testcase_25 AC 140 ms
56,352 KB
testcase_26 WA -
testcase_27 AC 137 ms
56,060 KB
testcase_28 AC 140 ms
56,296 KB
testcase_29 AC 142 ms
56,164 KB
testcase_30 AC 142 ms
55,988 KB
testcase_31 AC 139 ms
56,232 KB
testcase_32 AC 141 ms
56,260 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;

public class Ex1
{
	public static void main(String[] args)
	{
		Scanner scan = new Scanner(System.in);
		double a = scan.nextDouble();
		double b = scan.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");
		}
	}
}
0