結果

問題 No.722 100×100=1000
ユーザー Khou_Khou_
提出日時 2019-06-03 12:45:30
言語 PHP
(8.3.4)
結果
WA  
実行時間 -
コード長 387 bytes
コンパイル時間 3,242 ms
コンパイル使用メモリ 30,724 KB
実行使用メモリ 31,512 KB
最終ジャッジ日時 2024-04-20 16:20:15
合計ジャッジ時間 2,528 ms
ジャッジサーバーID
(参考情報)
judge2 / judge5
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 43 ms
31,196 KB
testcase_01 WA -
testcase_02 AC 45 ms
31,164 KB
testcase_03 WA -
testcase_04 AC 43 ms
31,156 KB
testcase_05 AC 43 ms
30,848 KB
testcase_06 AC 42 ms
30,960 KB
testcase_07 AC 43 ms
31,256 KB
testcase_08 AC 43 ms
30,884 KB
testcase_09 AC 42 ms
31,300 KB
testcase_10 AC 42 ms
31,064 KB
testcase_11 AC 42 ms
31,172 KB
testcase_12 AC 43 ms
31,512 KB
testcase_13 AC 42 ms
31,472 KB
testcase_14 AC 43 ms
30,896 KB
testcase_15 AC 43 ms
31,180 KB
testcase_16 AC 42 ms
31,380 KB
testcase_17 AC 42 ms
31,472 KB
testcase_18 AC 44 ms
31,428 KB
testcase_19 WA -
testcase_20 WA -
testcase_21 AC 42 ms
31,428 KB
testcase_22 AC 43 ms
31,324 KB
testcase_23 AC 43 ms
30,812 KB
testcase_24 AC 43 ms
31,148 KB
testcase_25 AC 42 ms
31,300 KB
testcase_26 AC 45 ms
31,276 KB
testcase_27 AC 45 ms
31,044 KB
testcase_28 AC 45 ms
31,356 KB
testcase_29 AC 44 ms
30,976 KB
testcase_30 AC 45 ms
31,436 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))==0 && $B%(pow(10,$b_strlen))==0){
    //暗算
    $result = $A*$B/10;
}else{
        $result = $A*$B;
        if($result<-99999999||99999999<$result){
            $result = 'E';
        }

}
echo $result;
?>
0