結果

問題 No.296 n度寝
ユーザー jiro8719jiro8719
提出日時 2018-07-10 12:53:12
言語 Ruby
(3.3.0)
結果
WA  
実行時間 -
コード長 223 bytes
コンパイル時間 48 ms
コンパイル使用メモリ 11,508 KB
実行使用メモリ 15,364 KB
最終ジャッジ日時 2023-09-27 11:16:18
合計ジャッジ時間 2,302 ms
ジャッジサーバーID
(参考情報)
judge15 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 WA -
testcase_02 WA -
testcase_03 AC 71 ms
15,276 KB
testcase_04 AC 73 ms
15,096 KB
testcase_05 AC 72 ms
14,984 KB
testcase_06 AC 70 ms
15,100 KB
testcase_07 WA -
testcase_08 WA -
testcase_09 WA -
testcase_10 AC 74 ms
15,104 KB
testcase_11 AC 76 ms
15,052 KB
testcase_12 WA -
testcase_13 AC 68 ms
15,268 KB
testcase_14 AC 67 ms
15,084 KB
testcase_15 WA -
権限があれば一括ダウンロードができます
コンパイルメッセージ
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
    puts d
end
0