結果

問題 No.296 n度寝
ユーザー hum_op
提出日時 2016-02-12 22:17:29
言語 F#
(F# 4.0)
結果
AC  
実行時間 309 ms / 1,000 ms
コード長 332 bytes
コンパイル時間 13,665 ms
コンパイル使用メモリ 185,072 KB
実行使用メモリ 35,972 KB
最終ジャッジ日時 2024-07-07 02:43:46
合計ジャッジ時間 19,528 ms
ジャッジサーバーID
(参考情報)
judge3 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 16
権限があれば一括ダウンロードができます
コンパイルメッセージ
  復元対象のプロジェクトを決定しています...
  /home/judge/data/code/main.fsproj を復元しました (261 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 #

open System
    
[<EntryPoint>]
let main args =    
    let IN = Console.ReadLine().Split(' ')
    let N, H, M, T = Int32.Parse(IN.[0]), Int32.Parse(IN.[1]), Int32.Parse(IN.[2]), Int32.Parse(IN.[3])
    let M = ((M + H * 60) + T * (N - 1))
    let H = (M / 60) % 24
    let M = (M % 60) % 60
    
    printfn "%d\n%d" H M
    
    0
0