結果

問題 No.296 n度寝
ユーザー jiro8719jiro8719
提出日時 2018-07-10 12:54:45
言語 Ruby
(3.3.0)
結果
AC  
実行時間 90 ms / 1,000 ms
コード長 249 bytes
コンパイル時間 465 ms
コンパイル使用メモリ 11,336 KB
実行使用メモリ 15,300 KB
最終ジャッジ日時 2023-09-27 11:18:52
合計ジャッジ時間 2,417 ms
ジャッジサーバーID
(参考情報)
judge11 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 82 ms
15,284 KB
testcase_01 AC 81 ms
15,280 KB
testcase_02 AC 83 ms
15,112 KB
testcase_03 AC 83 ms
15,268 KB
testcase_04 AC 83 ms
15,108 KB
testcase_05 AC 88 ms
15,180 KB
testcase_06 AC 82 ms
15,248 KB
testcase_07 AC 82 ms
15,092 KB
testcase_08 AC 83 ms
15,284 KB
testcase_09 AC 82 ms
15,244 KB
testcase_10 AC 82 ms
15,032 KB
testcase_11 AC 90 ms
15,248 KB
testcase_12 AC 84 ms
15,136 KB
testcase_13 AC 84 ms
15,032 KB
testcase_14 AC 82 ms
15,300 KB
testcase_15 AC 81 ms
15,136 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

input = gets.split(" ").map{|i| i.to_i}
case input[0]
when 1
    puts input[1]
    puts input[2]
else
    a = input[3] * (input[0] - 1)
    b = input[2] + a
    c = input[1] + b / 60
    d = b % 60
    puts c % 24
    puts d
end# your code goes here
0