結果

問題 No.722 100×100=1000
ユーザー Khou_Khou_
提出日時 2019-06-03 12:47:38
言語 PHP
(8.3.4)
結果
WA  
実行時間 -
コード長 392 bytes
コンパイル時間 169 ms
コンパイル使用メモリ 31,892 KB
実行使用メモリ 32,656 KB
最終ジャッジ日時 2024-04-20 16:21:17
合計ジャッジ時間 2,622 ms
ジャッジサーバーID
(参考情報)
judge5 / judge1
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 41 ms
31,264 KB
testcase_01 WA -
testcase_02 AC 40 ms
31,456 KB
testcase_03 WA -
testcase_04 AC 40 ms
31,264 KB
testcase_05 AC 40 ms
30,916 KB
testcase_06 AC 41 ms
30,904 KB
testcase_07 AC 40 ms
31,504 KB
testcase_08 AC 41 ms
31,344 KB
testcase_09 AC 40 ms
30,880 KB
testcase_10 AC 40 ms
31,116 KB
testcase_11 AC 40 ms
31,144 KB
testcase_12 AC 40 ms
31,352 KB
testcase_13 AC 42 ms
31,504 KB
testcase_14 AC 40 ms
31,080 KB
testcase_15 AC 42 ms
31,304 KB
testcase_16 AC 41 ms
31,324 KB
testcase_17 AC 41 ms
31,344 KB
testcase_18 AC 41 ms
30,884 KB
testcase_19 WA -
testcase_20 WA -
testcase_21 AC 41 ms
31,068 KB
testcase_22 AC 41 ms
31,216 KB
testcase_23 AC 40 ms
31,400 KB
testcase_24 AC 41 ms
31,280 KB
testcase_25 AC 40 ms
30,952 KB
testcase_26 AC 40 ms
31,100 KB
testcase_27 AC 41 ms
30,940 KB
testcase_28 AC 40 ms
31,440 KB
testcase_29 AC 41 ms
31,212 KB
testcase_30 AC 41 ms
31,316 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
No syntax errors detected in Main.php

ソースコード

diff #

<?php
// Your code here!
$a = fgets(STDIN);
list($A,$B) = explode(' ',$a);
$a_strlen = strlen($A);
$b_strlen = strlen($B);
$A = (int)$A;
$B = (int)$B;


if($A%(pow(10,$a_strlen-1))==0 && $B%(pow(10,$b_strlen-1))==0){
    //暗算
    $result = $A*$B/10;
}else{
        $result = $A*$B;
        if($result<-99999999||99999999<$result){
            $result = 'E';
        }

}
echo $result;
?>
0