結果
| 問題 |
No.651 E869120 and Driving
|
| コンテスト | |
| ユーザー |
mondo
|
| 提出日時 | 2019-08-05 16:23:04 |
| 言語 | PHP (843.2) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 282 bytes |
| コンパイル時間 | 169 ms |
| コンパイル使用メモリ | 32,276 KB |
| 実行使用メモリ | 32,660 KB |
| 最終ジャッジ日時 | 2024-07-18 13:34:32 |
| 合計ジャッジ時間 | 1,127 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 WA * 1 |
| other | AC * 4 WA * 3 |
コンパイルメッセージ
No syntax errors detected in Main.php
ソースコード
<?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);
mondo