結果

問題 No.296 n度寝
ユーザー mondomondo
提出日時 2019-07-25 15:31:28
言語 PHP
(8.3.4)
結果
WA  
実行時間 -
コード長 231 bytes
コンパイル時間 375 ms
コンパイル使用メモリ 10,220 KB
実行使用メモリ 10,556 KB
最終ジャッジ日時 2023-09-14 23:51:19
合計ジャッジ時間 1,357 ms
ジャッジサーバーID
(参考情報)
judge12 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

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

ソースコード

diff #

<?php
$array = explode(" ", trim(fgets(STDIN)));
$n = $array[0];
$hour = $array[1];
$minutes = $array[2];
$time = $array[3];
if ($n == 1) {
    echo $hour."\n".$minutes;
} else {
    echo $hour."\n".($time * ($n - 1) + $minutes);
}
0