結果

問題 No.296 n度寝
ユーザー wonda_t_coffeewonda_t_coffee
提出日時 2020-01-28 19:24:00
言語 Ruby
(3.3.0)
結果
WA  
実行時間 -
コード長 114 bytes
コンパイル時間 61 ms
コンパイル使用メモリ 11,436 KB
実行使用メモリ 15,344 KB
最終ジャッジ日時 2023-10-13 20:51:39
合計ジャッジ時間 2,557 ms
ジャッジサーバーID
(参考情報)
judge11 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 WA -
testcase_02 WA -
testcase_03 AC 80 ms
15,280 KB
testcase_04 AC 81 ms
15,068 KB
testcase_05 AC 81 ms
15,016 KB
testcase_06 AC 79 ms
15,072 KB
testcase_07 AC 80 ms
15,144 KB
testcase_08 WA -
testcase_09 WA -
testcase_10 AC 81 ms
15,276 KB
testcase_11 WA -
testcase_12 WA -
testcase_13 AC 81 ms
15,248 KB
testcase_14 AC 82 ms
15,276 KB
testcase_15 AC 81 ms
15,264 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

n, h, m, t = gets.chomp.split.map(&:to_i)
n -= 1
h = (h + t / 60 * n) % 24
m = (m + t % 60 * n) % 60
puts h
puts m
0