結果

問題 No.525 二度寝の季節
ユーザー takeya_okinotakeya_okino
提出日時 2017-07-16 13:17:54
言語 PHP
(8.3.4)
結果
WA  
実行時間 -
コード長 323 bytes
コンパイル時間 87 ms
コンパイル使用メモリ 32,020 KB
実行使用メモリ 32,532 KB
最終ジャッジ日時 2024-04-16 22:31:39
合計ジャッジ時間 2,591 ms
ジャッジサーバーID
(参考情報)
judge2 / judge5
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 WA -
testcase_02 WA -
testcase_03 WA -
testcase_04 WA -
testcase_05 WA -
testcase_06 WA -
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 -
testcase_16 WA -
testcase_17 AC 41 ms
31,100 KB
testcase_18 AC 40 ms
31,144 KB
testcase_19 AC 41 ms
31,100 KB
testcase_20 AC 40 ms
31,240 KB
testcase_21 AC 40 ms
30,996 KB
testcase_22 AC 40 ms
31,204 KB
testcase_23 AC 40 ms
30,864 KB
testcase_24 WA -
testcase_25 AC 41 ms
31,308 KB
testcase_26 AC 41 ms
31,256 KB
testcase_27 WA -
testcase_28 AC 40 ms
31,080 KB
testcase_29 AC 41 ms
31,096 KB
testcase_30 AC 40 ms
31,008 KB
testcase_31 AC 41 ms
30,904 KB
testcase_32 WA -
testcase_33 WA -
testcase_34 WA -
権限があれば一括ダウンロードができます
コンパイルメッセージ
No syntax errors detected in Main.php

ソースコード

diff #

<?php
$T = explode(":", trim(fgets(STDIN)));
$h = $T[0];
$m = $T[1];
$ansh = 0;
$ansm = 0;
$m += 5;
if($m >= 60) {
  $ansh = $h + 1;
  $ansm = ($m) % 60;
  if($ansh > 23) $ansh = 0;
} else {
  $ansh = $h;
  $ansm = $m;
}
if($ansh < 10) $ansh = "0" + $ansh;
if($ansm < 10) $ansm = "0" + $ansm;
print($ansh . ":" . $ansm);
?>
0