結果

問題 No.296 n度寝
ユーザー chike_pluschike_plus
提出日時 2019-03-27 22:52:26
言語 F#
(F# 4.0)
結果
AC  
実行時間 55 ms / 1,000 ms
コード長 414 bytes
コンパイル時間 6,806 ms
コンパイル使用メモリ 182,736 KB
実行使用メモリ 29,696 KB
最終ジャッジ日時 2024-04-19 13:48:17
合計ジャッジ時間 7,372 ms
ジャッジサーバーID
(参考情報)
judge3 / judge1
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 52 ms
29,696 KB
testcase_01 AC 49 ms
29,440 KB
testcase_02 AC 47 ms
29,568 KB
testcase_03 AC 45 ms
29,312 KB
testcase_04 AC 46 ms
29,184 KB
testcase_05 AC 46 ms
29,440 KB
testcase_06 AC 51 ms
29,312 KB
testcase_07 AC 55 ms
29,568 KB
testcase_08 AC 52 ms
29,568 KB
testcase_09 AC 47 ms
29,312 KB
testcase_10 AC 46 ms
29,312 KB
testcase_11 AC 46 ms
29,140 KB
testcase_12 AC 45 ms
29,056 KB
testcase_13 AC 46 ms
29,440 KB
testcase_14 AC 47 ms
29,056 KB
testcase_15 AC 49 ms
29,056 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
  復元対象のプロジェクトを決定しています...
  /home/judge/data/code/main.fsproj を復元しました (227 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%24)
      stdout.WriteLine mn

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