結果

問題 No.810 割った余りの個数
ユーザー osakana666666
提出日時 2019-05-19 15:29:40
言語 PHP
(843.2)
結果
MLE  
実行時間 -
コード長 241 bytes
コンパイル時間 111 ms
コンパイル使用メモリ 30,636 KB
実行使用メモリ 561,020 KB
最終ジャッジ日時 2024-09-17 06:28:42
合計ジャッジ時間 4,945 ms
ジャッジサーバーID
(参考情報)
judge2 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 20 MLE * 1 -- * 9
権限があれば一括ダウンロードができます
コンパイルメッセージ
No syntax errors detected in Main.php

ソースコード

diff #

<?php
$input = trim(fgets(STDIN));
$array = explode(' ',$input);
$min = $array[0];
$max = $array[1];
$division = $array[2];
for($i=$min; $i<=$max; $i++) {
    $reminder[]=$i%$division;
}
$count=count(array_unique($reminder));
echo $count;
?>
0