結果

問題 No.722 100×100=1000
ユーザー tsunabittsunabit
提出日時 2019-06-29 23:16:21
言語 Java21
(openjdk 21)
結果
WA  
実行時間 -
コード長 953 bytes
コンパイル時間 3,464 ms
コンパイル使用メモリ 75,148 KB
実行使用メモリ 56,312 KB
最終ジャッジ日時 2023-08-02 16:18:11
合計ジャッジ時間 8,876 ms
ジャッジサーバーID
(参考情報)
judge14 / judge15
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 131 ms
55,776 KB
testcase_01 WA -
testcase_02 AC 129 ms
55,964 KB
testcase_03 WA -
testcase_04 AC 128 ms
55,952 KB
testcase_05 AC 124 ms
55,960 KB
testcase_06 AC 128 ms
56,140 KB
testcase_07 AC 126 ms
55,788 KB
testcase_08 AC 124 ms
55,764 KB
testcase_09 AC 123 ms
56,088 KB
testcase_10 AC 125 ms
56,072 KB
testcase_11 WA -
testcase_12 AC 129 ms
55,960 KB
testcase_13 AC 131 ms
55,708 KB
testcase_14 AC 131 ms
54,032 KB
testcase_15 AC 128 ms
55,596 KB
testcase_16 AC 127 ms
56,068 KB
testcase_17 AC 124 ms
55,856 KB
testcase_18 AC 123 ms
55,916 KB
testcase_19 AC 122 ms
55,792 KB
testcase_20 WA -
testcase_21 AC 129 ms
56,312 KB
testcase_22 AC 131 ms
55,748 KB
testcase_23 AC 130 ms
56,028 KB
testcase_24 AC 130 ms
55,584 KB
testcase_25 AC 131 ms
55,740 KB
testcase_26 AC 132 ms
55,884 KB
testcase_27 AC 138 ms
55,900 KB
testcase_28 AC 143 ms
55,552 KB
testcase_29 AC 132 ms
55,780 KB
testcase_30 AC 132 ms
55,920 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.*;
import java.io.*;
import java.math.*;

public class No722 {
    public static void main(String[] args) {
    	Scanner sc = new Scanner(System.in);
    	BigDecimal a = new BigDecimal(sc.nextInt()), b = new BigDecimal(sc.nextInt());
    	BigDecimal j = new BigDecimal(10), z = new BigDecimal(0), m = new BigDecimal(-1), h = new BigDecimal(100);
    	
    	if(a.divide(j).compareTo(j) == -1 && b.divide(j).compareTo(j) == -1 && a.remainder(j).equals(z) && b.remainder(j).equals(z) && a.toString().length() > 2 && b.toString().length() > 2) {
//    	if(a.divide(j) < 10 && b.divide(j) < 10 && ) {
    		System.out.println(a.multiply(b).divide(j));
    	}else {
    		BigDecimal min = new BigDecimal(-99999999), max = new BigDecimal(99999999);
    		if(a.multiply(b).compareTo(min) >= 0 && a.multiply(b).compareTo(max) <= 0) {
    			System.out.println(a.multiply(b));
    		}else {
    			System.out.println("E");
    		}
    	}
    }
}
0