結果

問題 No.722 100×100=1000
ユーザー Khou_Khou_
提出日時 2019-06-03 12:46:34
言語 PHP
(8.3.4)
結果
WA  
実行時間 -
コード長 391 bytes
コンパイル時間 83 ms
コンパイル使用メモリ 32,020 KB
実行使用メモリ 32,528 KB
最終ジャッジ日時 2024-04-20 16:20:19
合計ジャッジ時間 2,153 ms
ジャッジサーバーID
(参考情報)
judge4 / judge3
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 39 ms
32,528 KB
testcase_01 WA -
testcase_02 AC 38 ms
32,216 KB
testcase_03 WA -
testcase_04 AC 39 ms
32,404 KB
testcase_05 AC 40 ms
32,272 KB
testcase_06 AC 39 ms
32,216 KB
testcase_07 AC 39 ms
32,016 KB
testcase_08 AC 40 ms
32,272 KB
testcase_09 AC 39 ms
32,272 KB
testcase_10 AC 39 ms
32,212 KB
testcase_11 AC 40 ms
32,404 KB
testcase_12 AC 39 ms
32,276 KB
testcase_13 AC 37 ms
32,272 KB
testcase_14 AC 36 ms
32,144 KB
testcase_15 AC 36 ms
32,144 KB
testcase_16 AC 36 ms
32,404 KB
testcase_17 AC 37 ms
32,400 KB
testcase_18 AC 37 ms
32,404 KB
testcase_19 WA -
testcase_20 WA -
testcase_21 AC 36 ms
32,272 KB
testcase_22 AC 36 ms
32,528 KB
testcase_23 AC 37 ms
32,404 KB
testcase_24 AC 36 ms
32,404 KB
testcase_25 AC 34 ms
32,272 KB
testcase_26 AC 35 ms
32,144 KB
testcase_27 AC 36 ms
32,400 KB
testcase_28 AC 37 ms
32,404 KB
testcase_29 AC 37 ms
32,212 KB
testcase_30 AC 37 ms
32,272 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