結果

問題 No.296 n度寝
ユーザー mesh1nek0x0mesh1nek0x0
提出日時 2018-07-11 23:05:51
言語 Ruby
(3.3.0)
結果
WA  
実行時間 -
コード長 216 bytes
コンパイル時間 343 ms
コンパイル使用メモリ 11,900 KB
実行使用メモリ 16,092 KB
最終ジャッジ日時 2023-10-22 01:25:07
合計ジャッジ時間 2,676 ms
ジャッジサーバーID
(参考情報)
judge13 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 WA -
testcase_02 WA -
testcase_03 AC 87 ms
16,092 KB
testcase_04 AC 88 ms
16,092 KB
testcase_05 AC 87 ms
16,092 KB
testcase_06 AC 86 ms
16,092 KB
testcase_07 AC 86 ms
16,092 KB
testcase_08 AC 88 ms
16,092 KB
testcase_09 WA -
testcase_10 AC 87 ms
16,092 KB
testcase_11 WA -
testcase_12 WA -
testcase_13 AC 90 ms
16,092 KB
testcase_14 AC 88 ms
16,092 KB
testcase_15 AC 86 ms
16,092 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

#!/bin/ruby
input = gets.chomp.split(' ')
N = input[0].to_i 
H = input[1].to_i 
M = input[2].to_i 
T = input[3].to_i 

add_minutes = T * (N - 1)
m = M + add_minutes % 60
h = (H + add_minutes / 60) % 24

puts h
puts m
0