結果

問題 No.296 n度寝
ユーザー takeya_okinotakeya_okino
提出日時 2017-07-12 23:22:49
言語 PHP
(8.3.4)
結果
AC  
実行時間 44 ms / 1,000 ms
コード長 235 bytes
コンパイル時間 78 ms
コンパイル使用メモリ 31,172 KB
実行使用メモリ 31,436 KB
最終ジャッジ日時 2024-04-16 17:54:22
合計ジャッジ時間 1,427 ms
ジャッジサーバーID
(参考情報)
judge3 / judge2
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 41 ms
31,144 KB
testcase_01 AC 41 ms
31,116 KB
testcase_02 AC 44 ms
30,948 KB
testcase_03 AC 43 ms
31,248 KB
testcase_04 AC 42 ms
31,292 KB
testcase_05 AC 41 ms
31,252 KB
testcase_06 AC 41 ms
31,436 KB
testcase_07 AC 41 ms
31,176 KB
testcase_08 AC 42 ms
31,316 KB
testcase_09 AC 42 ms
31,312 KB
testcase_10 AC 42 ms
31,268 KB
testcase_11 AC 42 ms
31,044 KB
testcase_12 AC 41 ms
31,236 KB
testcase_13 AC 42 ms
31,312 KB
testcase_14 AC 42 ms
31,264 KB
testcase_15 AC 43 ms
31,108 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
No syntax errors detected in Main.php

ソースコード

diff #

<?php
$args=explode(" ", trim(fgets(STDIN)));

$n=$args[0];
$h=$args[1];
$m=$args[2];
$t=$args[3];

$time=60*$h+$m+($n-1)*$t;
$time=$time%1440;
$ansh=intdiv($time, 60);
$ansm=$time-60*$ansh;

print($ansh);
print("\n");
print($ansm);
?>
0