結果

問題 No.296 n度寝
ユーザー papinianuspapinianus
提出日時 2016-07-28 08:55:25
言語 PHP
(8.3.4)
結果
AC  
実行時間 17 ms / 1,000 ms
コード長 161 bytes
コンパイル時間 1,229 ms
コンパイル使用メモリ 18,572 KB
実行使用メモリ 18,796 KB
最終ジャッジ日時 2023-09-21 08:27:59
合計ジャッジ時間 2,334 ms
ジャッジサーバーID
(参考情報)
judge14 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 16 ms
18,684 KB
testcase_01 AC 16 ms
18,628 KB
testcase_02 AC 16 ms
18,684 KB
testcase_03 AC 16 ms
18,776 KB
testcase_04 AC 17 ms
18,796 KB
testcase_05 AC 16 ms
18,652 KB
testcase_06 AC 16 ms
18,684 KB
testcase_07 AC 16 ms
18,720 KB
testcase_08 AC 15 ms
18,496 KB
testcase_09 AC 17 ms
18,784 KB
testcase_10 AC 16 ms
18,720 KB
testcase_11 AC 16 ms
18,696 KB
testcase_12 AC 17 ms
18,492 KB
testcase_13 AC 16 ms
18,712 KB
testcase_14 AC 16 ms
18,744 KB
testcase_15 AC 16 ms
18,728 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
No syntax errors detected in Main.php

ソースコード

diff #

<?php
list($N, $H, $M, $T) = explode(" ", trim(fgets(STDIN)));
$M += ($N-1)*$T;
$H = $H+floor($M/60);
$M %= 60;
echo $H%24;
echo PHP_EOL;
echo $M;
echo PHP_EOL;
0