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