結果

問題 No.373 かけ算と割った余り
ユーザー papinianuspapinianus
提出日時 2016-06-17 10:55:52
言語 PHP
(8.2.11)
結果
AC  
実行時間 16 ms / 2,000 ms
コード長 142 bytes
コンパイル時間 175 ms
コンパイル使用メモリ 18,792 KB
実行使用メモリ 18,800 KB
最終ジャッジ日時 2023-07-30 21:51:15
合計ジャッジ時間 882 ms
ジャッジサーバーID
(参考情報)
judge12 / judge13
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 16 ms
18,748 KB
testcase_01 AC 16 ms
18,556 KB
testcase_02 AC 15 ms
18,788 KB
testcase_03 AC 15 ms
18,716 KB
testcase_04 AC 16 ms
18,736 KB
testcase_05 AC 15 ms
18,800 KB
testcase_06 AC 15 ms
18,720 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
No syntax errors detected in Main.php

ソースコード

diff #

<?php
list($a, $b, $c, $d) = explode(' ', trim(fgets(STDIN)));
$a %= $d;
$b %= $d;
$c %= $d;
$temp = ($a*$b)%$d;
echo (($temp*$c)%$d).PHP_EOL;
0