結果

問題 No.722 100×100=1000
ユーザー Khou_
提出日時 2019-06-03 12:40:29
言語 PHP
(843.2)
結果
RE  
実行時間 -
コード長 375 bytes
コンパイル時間 1,595 ms
コンパイル使用メモリ 32,148 KB
実行使用メモリ 32,916 KB
最終ジャッジ日時 2024-10-12 12:07:13
合計ジャッジ時間 2,328 ms
ジャッジサーバーID
(参考情報)
judge1 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample RE * 4
other RE * 27
権限があれば一括ダウンロードができます
コンパイルメッセージ
No syntax errors detected in Main.php

ソースコード

diff #

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


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

}
echo $result;
?>
0