結果

問題 No.296 n度寝
ユーザー clef_delphclef_delph
提出日時 2020-02-20 01:14:28
言語 PHP
(8.3.4)
結果
WA  
(最新)
AC  
(最初)
実行時間 -
コード長 224 bytes
コンパイル時間 1,891 ms
コンパイル使用メモリ 30,180 KB
実行使用メモリ 31,208 KB
最終ジャッジ日時 2024-04-17 06:13:36
合計ジャッジ時間 3,006 ms
ジャッジサーバーID
(参考情報)
judge1 / judge4
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 39 ms
30,788 KB
testcase_01 AC 40 ms
30,684 KB
testcase_02 AC 40 ms
31,044 KB
testcase_03 WA -
testcase_04 AC 39 ms
30,932 KB
testcase_05 WA -
testcase_06 AC 40 ms
30,692 KB
testcase_07 WA -
testcase_08 WA -
testcase_09 WA -
testcase_10 WA -
testcase_11 WA -
testcase_12 WA -
testcase_13 WA -
testcase_14 WA -
testcase_15 WA -
権限があれば一括ダウンロードができます
コンパイルメッセージ
No syntax errors detected in Main.php

ソースコード

diff #

<?php
list($sleep,$hour,$minute,$time)=explode(" ",trim(fgets(STDIN)));

$MinuteToHour=($minute+(($sleep-1)*$time))/60;

$Hour =($hour+$MinuteToHour)%24;
$Minute=($minute+(($sleep-1)*$time))%60;

echo $Hour."\n".$Minute;

?>
0