結果

問題 No.722 100×100=1000
ユーザー thaioki_thaioki_
提出日時 2019-06-03 12:46:22
言語 PHP
(8.3.4)
結果
WA  
(最新)
AC  
(最初)
実行時間 -
コード長 322 bytes
コンパイル時間 359 ms
コンパイル使用メモリ 11,956 KB
実行使用メモリ 12,336 KB
最終ジャッジ日時 2023-08-28 15:57:25
合計ジャッジ時間 1,615 ms
ジャッジサーバーID
(参考情報)
judge14 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 6 ms
12,212 KB
testcase_01 AC 6 ms
12,228 KB
testcase_02 AC 6 ms
12,316 KB
testcase_03 AC 6 ms
12,336 KB
testcase_04 AC 6 ms
12,240 KB
testcase_05 AC 6 ms
12,272 KB
testcase_06 AC 6 ms
12,228 KB
testcase_07 AC 6 ms
12,284 KB
testcase_08 AC 7 ms
12,312 KB
testcase_09 AC 6 ms
12,280 KB
testcase_10 AC 6 ms
12,244 KB
testcase_11 AC 6 ms
12,264 KB
testcase_12 AC 6 ms
12,336 KB
testcase_13 AC 6 ms
12,184 KB
testcase_14 AC 6 ms
12,328 KB
testcase_15 AC 6 ms
12,288 KB
testcase_16 AC 6 ms
12,212 KB
testcase_17 AC 6 ms
12,208 KB
testcase_18 AC 6 ms
12,232 KB
testcase_19 AC 7 ms
12,284 KB
testcase_20 AC 6 ms
12,164 KB
testcase_21 AC 6 ms
12,164 KB
testcase_22 AC 6 ms
12,284 KB
testcase_23 WA -
testcase_24 AC 6 ms
12,204 KB
testcase_25 AC 6 ms
12,284 KB
testcase_26 AC 7 ms
12,288 KB
testcase_27 AC 6 ms
12,284 KB
testcase_28 AC 6 ms
12,232 KB
testcase_29 AC 6 ms
12,332 KB
testcase_30 AC 6 ms
12,284 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
No syntax errors detected in Main.php

ソースコード

diff #

<?php
$array = explode(' ', trim(fgets(STDIN)));
$a = $array[0];
$b = $array[1];

if (abs(preg_replace("/0{2,}$/",'',$a)) < 10 && abs(preg_replace("/0{2,}$/",'',$b)) < 10) {
    $result = ($a*$b)/10;
} else {
    $result = $a*$b;
    if (abs($result) > 99999999) {
        $result = "E";
        
    }
}

echo $result;
?>
0