結果

問題 No.441 和か積
ユーザー Natsume-MNatsume-M
提出日時 2016-12-09 17:58:33
言語 Java19
(openjdk 21)
結果
AC  
実行時間 124 ms / 1,000 ms
コード長 303 bytes
コンパイル時間 2,213 ms
コンパイル使用メモリ 71,408 KB
実行使用メモリ 56,716 KB
最終ジャッジ日時 2023-09-09 10:32:14
合計ジャッジ時間 7,418 ms
ジャッジサーバーID
(参考情報)
judge12 / judge14
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 116 ms
55,980 KB
testcase_01 AC 110 ms
55,916 KB
testcase_02 AC 117 ms
56,716 KB
testcase_03 AC 117 ms
55,624 KB
testcase_04 AC 120 ms
55,940 KB
testcase_05 AC 123 ms
55,964 KB
testcase_06 AC 121 ms
55,816 KB
testcase_07 AC 120 ms
55,888 KB
testcase_08 AC 119 ms
55,816 KB
testcase_09 AC 119 ms
55,728 KB
testcase_10 AC 116 ms
55,812 KB
testcase_11 AC 119 ms
55,528 KB
testcase_12 AC 119 ms
55,752 KB
testcase_13 AC 115 ms
56,368 KB
testcase_14 AC 117 ms
55,604 KB
testcase_15 AC 111 ms
56,008 KB
testcase_16 AC 111 ms
56,168 KB
testcase_17 AC 117 ms
55,932 KB
testcase_18 AC 118 ms
55,848 KB
testcase_19 AC 117 ms
55,956 KB
testcase_20 AC 123 ms
55,716 KB
testcase_21 AC 124 ms
55,740 KB
testcase_22 AC 124 ms
55,656 KB
testcase_23 AC 120 ms
55,512 KB
testcase_24 AC 120 ms
55,460 KB
testcase_25 AC 118 ms
56,116 KB
testcase_26 AC 115 ms
55,812 KB
testcase_27 AC 110 ms
55,884 KB
testcase_28 AC 117 ms
55,616 KB
testcase_29 AC 115 ms
55,440 KB
testcase_30 AC 113 ms
55,784 KB
testcase_31 AC 119 ms
56,004 KB
testcase_32 AC 122 ms
55,480 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.*;
import java.math.*;
class y441 {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		BigInteger a = sc.nextBigInteger(), b = sc.nextBigInteger();
		int c = a.add(b).compareTo(a.multiply(b));
		System.out.println(c>0?"S":c<0?"P":"E");
		sc.close();
	}
}
0