結果

問題 No.296 n度寝
ユーザー KisaragiEffectiveKisaragiEffective
提出日時 2020-11-10 18:53:42
言語 Ruby
(3.3.0)
結果
AC  
実行時間 76 ms / 1,000 ms
コード長 119 bytes
コンパイル時間 55 ms
コンパイル使用メモリ 11,552 KB
実行使用メモリ 15,600 KB
最終ジャッジ日時 2023-09-30 00:07:14
合計ジャッジ時間 2,468 ms
ジャッジサーバーID
(参考情報)
judge15 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 71 ms
15,516 KB
testcase_01 AC 70 ms
15,344 KB
testcase_02 AC 71 ms
15,348 KB
testcase_03 AC 70 ms
15,368 KB
testcase_04 AC 69 ms
15,536 KB
testcase_05 AC 69 ms
15,344 KB
testcase_06 AC 73 ms
15,376 KB
testcase_07 AC 70 ms
15,372 KB
testcase_08 AC 76 ms
15,384 KB
testcase_09 AC 76 ms
15,348 KB
testcase_10 AC 71 ms
15,564 KB
testcase_11 AC 71 ms
15,600 KB
testcase_12 AC 70 ms
15,460 KB
testcase_13 AC 72 ms
15,460 KB
testcase_14 AC 70 ms
15,544 KB
testcase_15 AC 74 ms
15,404 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

require "time"
A,B,C,D = gets.split.map(&:to_i)
T = (Time.parse("#{B}:#{C}") + 60 * (A - 1) * D)
puts T.hour
puts T.min
0