結果

問題 No.441 和か積
ユーザー jimanojimano
提出日時 2018-02-10 20:40:59
言語 Java21
(openjdk 21)
結果
AC  
実行時間 46 ms / 1,000 ms
コード長 625 bytes
コンパイル時間 3,049 ms
コンパイル使用メモリ 71,312 KB
実行使用メモリ 49,596 KB
最終ジャッジ日時 2023-09-09 10:49:21
合計ジャッジ時間 5,755 ms
ジャッジサーバーID
(参考情報)
judge14 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 43 ms
49,236 KB
testcase_01 AC 44 ms
49,060 KB
testcase_02 AC 43 ms
49,244 KB
testcase_03 AC 44 ms
49,172 KB
testcase_04 AC 43 ms
49,156 KB
testcase_05 AC 43 ms
49,132 KB
testcase_06 AC 42 ms
49,072 KB
testcase_07 AC 43 ms
49,212 KB
testcase_08 AC 42 ms
49,128 KB
testcase_09 AC 45 ms
49,560 KB
testcase_10 AC 43 ms
49,180 KB
testcase_11 AC 42 ms
49,552 KB
testcase_12 AC 44 ms
47,320 KB
testcase_13 AC 43 ms
49,260 KB
testcase_14 AC 42 ms
49,596 KB
testcase_15 AC 41 ms
49,212 KB
testcase_16 AC 42 ms
49,236 KB
testcase_17 AC 43 ms
49,056 KB
testcase_18 AC 42 ms
49,200 KB
testcase_19 AC 42 ms
49,356 KB
testcase_20 AC 44 ms
49,260 KB
testcase_21 AC 44 ms
49,128 KB
testcase_22 AC 46 ms
49,304 KB
testcase_23 AC 43 ms
49,208 KB
testcase_24 AC 43 ms
49,220 KB
testcase_25 AC 43 ms
49,292 KB
testcase_26 AC 43 ms
49,512 KB
testcase_27 AC 42 ms
49,272 KB
testcase_28 AC 43 ms
49,060 KB
testcase_29 AC 43 ms
49,212 KB
testcase_30 AC 43 ms
49,280 KB
testcase_31 AC 43 ms
49,212 KB
testcase_32 AC 44 ms
49,152 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

package me.yukicoder;

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.math.BigInteger;

public class No0441 {
	public static void main(String[] args) throws IOException {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String[] str = br.readLine().split(" ");
		BigInteger a = new BigInteger(str[0]);
		BigInteger b = new BigInteger(str[1]);

		int res = a.add(b).compareTo(a.multiply(b));
		if (res == 1) {
			System.out.println("S");
		} else if (res == 0) {
			System.out.println("E");
		} else {
			System.out.println("P");
		}
	}
}
0