結果

問題 No.296 n度寝
ユーザー chike_pluschike_plus
提出日時 2019-03-27 22:50:53
言語 F#
(F# 4.0)
結果
WA  
実行時間 -
コード長 409 bytes
コンパイル時間 7,862 ms
コンパイル使用メモリ 183,952 KB
実行使用メモリ 29,952 KB
最終ジャッジ日時 2024-04-19 13:48:02
合計ジャッジ時間 7,518 ms
ジャッジサーバーID
(参考情報)
judge2 / judge1
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 WA -
testcase_02 WA -
testcase_03 AC 46 ms
29,312 KB
testcase_04 AC 46 ms
29,312 KB
testcase_05 AC 53 ms
29,440 KB
testcase_06 AC 52 ms
29,184 KB
testcase_07 WA -
testcase_08 WA -
testcase_09 WA -
testcase_10 AC 49 ms
29,184 KB
testcase_11 AC 49 ms
29,288 KB
testcase_12 WA -
testcase_13 AC 45 ms
29,312 KB
testcase_14 AC 45 ms
29,312 KB
testcase_15 WA -
権限があれば一括ダウンロードができます
コンパイルメッセージ
  復元対象のプロジェクトを決定しています...
  /home/judge/data/code/main.fsproj を復元しました (271 ms)。
MSBuild のバージョン 17.9.6+a4ecab324 (.NET)
  main -> /home/judge/data/code/bin/Release/net8.0/main.dll
  main -> /home/judge/data/code/bin/Release/net8.0/publish/

ソースコード

diff #

let ``No.296 n度寝``() =
  
  let n, h, m, t =
    stdin.ReadLine().Split(' ')
    |> fun args ->
      args.[0]|>int, args.[1]|>int, args.[2]|>int, args.[3]|>int

  let rec wake (hour,min) n =
    match n with
    | 1 -> (hour, min)
    | _ -> wake (hour + (min + t) / 60 , (min+t)%60 ) (n-1)

  wake (h, m) n
  |> fun  (hr , mn )->
      stdout.WriteLine hr
      stdout.WriteLine mn

``No.296 n度寝``()
0