結果

問題 No.651 E869120 and Driving
ユーザー mondomondo
提出日時 2019-08-05 16:23:04
言語 PHP
(8.3.4)
結果
WA  
実行時間 -
コード長 282 bytes
コンパイル時間 739 ms
コンパイル使用メモリ 11,984 KB
実行使用メモリ 12,268 KB
最終ジャッジ日時 2023-09-25 17:18:32
合計ジャッジ時間 1,099 ms
ジャッジサーバーID
(参考情報)
judge15 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

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

ソースコード

diff #

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