結果

問題 No.722 100×100=1000
ユーザー htensaihtensai
提出日時 2019-11-12 00:24:29
言語 Java21
(openjdk 21)
結果
WA  
実行時間 -
コード長 579 bytes
コンパイル時間 2,245 ms
コンパイル使用メモリ 74,132 KB
実行使用メモリ 41,788 KB
最終ジャッジ日時 2024-04-20 16:26:14
合計ジャッジ時間 7,282 ms
ジャッジサーバーID
(参考情報)
judge2 / judge4
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 133 ms
41,080 KB
testcase_01 AC 133 ms
41,420 KB
testcase_02 AC 132 ms
41,240 KB
testcase_03 AC 132 ms
41,460 KB
testcase_04 AC 132 ms
41,040 KB
testcase_05 WA -
testcase_06 WA -
testcase_07 AC 130 ms
40,984 KB
testcase_08 AC 131 ms
40,976 KB
testcase_09 AC 131 ms
40,936 KB
testcase_10 AC 130 ms
41,648 KB
testcase_11 AC 123 ms
40,236 KB
testcase_12 AC 132 ms
41,524 KB
testcase_13 AC 133 ms
41,192 KB
testcase_14 AC 130 ms
41,788 KB
testcase_15 AC 133 ms
41,440 KB
testcase_16 AC 132 ms
41,132 KB
testcase_17 AC 134 ms
41,212 KB
testcase_18 AC 133 ms
41,192 KB
testcase_19 AC 138 ms
41,396 KB
testcase_20 AC 135 ms
41,660 KB
testcase_21 WA -
testcase_22 AC 133 ms
41,280 KB
testcase_23 WA -
testcase_24 WA -
testcase_25 AC 132 ms
41,256 KB
testcase_26 AC 131 ms
41,268 KB
testcase_27 AC 131 ms
41,060 KB
testcase_28 AC 131 ms
41,172 KB
testcase_29 AC 132 ms
41,072 KB
testcase_30 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.*;

public class Main {
	public static void main (String[] args) throws Exception {
		Scanner sc = new Scanner(System.in);
		long a = sc.nextInt();
		long b = sc.nextInt();
		if (isBlind(a) && isBlind(b)) {
		    System.out.println(a * b / 10);
		} else if (a * b < -99999999 || a * b > 99999999) {
		    System.out.println("E");
		} else {
		    System.out.println(a * b);
		}
	}
	
	static boolean isBlind(long x) {
	    while (Math.abs(x) > 9) {
	        if (x % 10 != 0) {
	            return false;
	        }
	        x /= 10;
	    }
	    return true;
	}
}
0