結果
問題 | No.441 和か積 |
ユーザー | darknight |
提出日時 | 2016-11-11 23:00:56 |
言語 | Java21 (openjdk 21) |
結果 |
AC
|
実行時間 | 132 ms / 1,000 ms |
コード長 | 838 bytes |
コンパイル時間 | 3,740 ms |
コンパイル使用メモリ | 74,588 KB |
実行使用メモリ | 55,968 KB |
最終ジャッジ日時 | 2023-09-09 10:20:10 |
合計ジャッジ時間 | 8,885 ms |
ジャッジサーバーID (参考情報) |
judge13 / judge14 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 127 ms
55,344 KB |
testcase_01 | AC | 127 ms
55,780 KB |
testcase_02 | AC | 123 ms
55,832 KB |
testcase_03 | AC | 128 ms
55,716 KB |
testcase_04 | AC | 126 ms
55,620 KB |
testcase_05 | AC | 125 ms
55,388 KB |
testcase_06 | AC | 127 ms
55,548 KB |
testcase_07 | AC | 125 ms
55,784 KB |
testcase_08 | AC | 124 ms
55,204 KB |
testcase_09 | AC | 125 ms
55,768 KB |
testcase_10 | AC | 123 ms
55,664 KB |
testcase_11 | AC | 129 ms
55,264 KB |
testcase_12 | AC | 123 ms
55,236 KB |
testcase_13 | AC | 124 ms
55,708 KB |
testcase_14 | AC | 128 ms
55,604 KB |
testcase_15 | AC | 122 ms
55,432 KB |
testcase_16 | AC | 126 ms
55,968 KB |
testcase_17 | AC | 126 ms
55,840 KB |
testcase_18 | AC | 126 ms
55,640 KB |
testcase_19 | AC | 128 ms
55,564 KB |
testcase_20 | AC | 128 ms
55,544 KB |
testcase_21 | AC | 129 ms
55,464 KB |
testcase_22 | AC | 132 ms
55,716 KB |
testcase_23 | AC | 125 ms
55,836 KB |
testcase_24 | AC | 129 ms
55,800 KB |
testcase_25 | AC | 128 ms
55,756 KB |
testcase_26 | AC | 128 ms
55,756 KB |
testcase_27 | AC | 124 ms
55,296 KB |
testcase_28 | AC | 125 ms
55,796 KB |
testcase_29 | AC | 129 ms
55,432 KB |
testcase_30 | AC | 126 ms
55,616 KB |
testcase_31 | AC | 127 ms
55,436 KB |
testcase_32 | AC | 131 ms
55,520 KB |
ソースコード
import java.util.*; import java.math.BigInteger; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); String str = ""; String str3 = sc.next(); String str2 = sc.next(); BigInteger big1 = new BigInteger( str3 ); BigInteger big2 = new BigInteger( str2 ); BigInteger big3 = new BigInteger( str3 ); BigInteger big4 = new BigInteger( str2 ); BigInteger big5 = big1.add(big2); BigInteger big6 = big3.multiply(big4); if( big5.compareTo(big6) == 0 ) { str += "E"; } else if( big5.compareTo(big6) > 0 ) { str += "S"; } else if( big5.compareTo(big6) < 0 ) { str += "P"; } System.out.print( str ); System.out.println( ); } }