結果

問題 No.651 E869120 and Driving
ユーザー mondomondo
提出日時 2019-08-05 16:42:58
言語 PHP
(8.3.4)
結果
WA  
実行時間 -
コード長 301 bytes
コンパイル時間 168 ms
コンパイル使用メモリ 12,048 KB
実行使用メモリ 12,336 KB
最終ジャッジ日時 2023-09-25 17:19:40
合計ジャッジ時間 908 ms
ジャッジサーバーID
(参考情報)
judge14 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 7 ms
12,180 KB
testcase_01 AC 7 ms
12,244 KB
testcase_02 AC 8 ms
12,212 KB
testcase_03 AC 7 ms
12,164 KB
testcase_04 AC 7 ms
12,200 KB
testcase_05 AC 7 ms
12,244 KB
testcase_06 AC 7 ms
12,204 KB
testcase_07 AC 8 ms
12,148 KB
testcase_08 AC 7 ms
12,200 KB
testcase_09 WA -
権限があれば一括ダウンロードができます
コンパイルメッセージ
No syntax errors detected in Main.php

ソースコード

diff #

<?php
$distance = (int)trim(fgets(STDIN));
$speed = 100;
$time = (int)$distance / (int)$speed * 60;
$minutes = $time % 60;
if ($time > 60) {
    if ($time % 60 == 0){
        $minutes = 0;
    } else {
        $minutes = $time % 60;
    }
}
echo (floor($time / 60) + 10).":".sprintf("%02s", $minutes);
0