結果
問題 |
No.722 100×100=1000
|
ユーザー |
![]() |
提出日時 | 2019-11-12 00:24:29 |
言語 | Java (openjdk 23) |
結果 |
WA
|
実行時間 | - |
コード長 | 579 bytes |
コンパイル時間 | 2,765 ms |
コンパイル使用メモリ | 79,336 KB |
実行使用メモリ | 54,360 KB |
最終ジャッジ日時 | 2024-10-12 12:13:48 |
合計ジャッジ時間 | 7,712 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 4 |
other | AC * 21 WA * 6 |
ソースコード
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; } }