結果

問題 No.441 和か積
ユーザー リチウムリチウム
提出日時 2016-11-15 15:04:10
言語 Java21
(openjdk 21)
結果
AC  
実行時間 120 ms / 1,000 ms
コード長 446 bytes
コンパイル時間 3,219 ms
コンパイル使用メモリ 72,188 KB
実行使用メモリ 56,256 KB
最終ジャッジ日時 2023-09-09 10:27:01
合計ジャッジ時間 8,137 ms
ジャッジサーバーID
(参考情報)
judge15 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 117 ms
55,640 KB
testcase_01 AC 113 ms
56,012 KB
testcase_02 AC 115 ms
55,368 KB
testcase_03 AC 119 ms
56,256 KB
testcase_04 AC 115 ms
56,124 KB
testcase_05 AC 118 ms
56,060 KB
testcase_06 AC 114 ms
55,692 KB
testcase_07 AC 113 ms
55,684 KB
testcase_08 AC 112 ms
55,812 KB
testcase_09 AC 113 ms
55,880 KB
testcase_10 AC 106 ms
56,084 KB
testcase_11 AC 110 ms
55,948 KB
testcase_12 AC 115 ms
56,032 KB
testcase_13 AC 113 ms
55,884 KB
testcase_14 AC 113 ms
55,612 KB
testcase_15 AC 113 ms
56,156 KB
testcase_16 AC 118 ms
55,984 KB
testcase_17 AC 115 ms
55,752 KB
testcase_18 AC 115 ms
56,016 KB
testcase_19 AC 119 ms
55,668 KB
testcase_20 AC 117 ms
55,988 KB
testcase_21 AC 112 ms
55,936 KB
testcase_22 AC 113 ms
55,692 KB
testcase_23 AC 111 ms
56,132 KB
testcase_24 AC 118 ms
54,444 KB
testcase_25 AC 116 ms
55,680 KB
testcase_26 AC 115 ms
56,064 KB
testcase_27 AC 114 ms
55,648 KB
testcase_28 AC 116 ms
55,732 KB
testcase_29 AC 117 ms
56,032 KB
testcase_30 AC 118 ms
55,572 KB
testcase_31 AC 120 ms
55,840 KB
testcase_32 AC 116 ms
55,740 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.math.BigInteger;
import java.util.Scanner;


public class atc {

	public static void main(String[] args) {
		Scanner sc=new Scanner(System.in);
		BigInteger a=new BigInteger(sc.next());
		BigInteger b=new BigInteger(sc.next());
		BigInteger sum=a.add(b);
		BigInteger pro=a.multiply(b);
		int i = sum.compareTo(pro);
		
		if(i==0)System.out.println("E");
		if(i==1)System.out.println("S");
		if(i==-1)System.out.println("P");
	
	}
	
}
0