結果

問題 No.296 n度寝
ユーザー hum_ophum_op
提出日時 2016-02-12 22:17:29
言語 F#
(F# 4.0)
結果
AC  
実行時間 90 ms / 1,000 ms
コード長 332 bytes
コンパイル時間 4,499 ms
コンパイル使用メモリ 160,600 KB
実行使用メモリ 24,928 KB
最終ジャッジ日時 2023-09-21 08:21:14
合計ジャッジ時間 6,864 ms
ジャッジサーバーID
(参考情報)
judge14 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 88 ms
22,788 KB
testcase_01 AC 90 ms
24,928 KB
testcase_02 AC 88 ms
22,844 KB
testcase_03 AC 88 ms
24,824 KB
testcase_04 AC 89 ms
22,772 KB
testcase_05 AC 88 ms
22,904 KB
testcase_06 AC 88 ms
22,872 KB
testcase_07 AC 89 ms
22,872 KB
testcase_08 AC 86 ms
20,916 KB
testcase_09 AC 87 ms
22,924 KB
testcase_10 AC 87 ms
24,912 KB
testcase_11 AC 86 ms
22,852 KB
testcase_12 AC 85 ms
22,800 KB
testcase_13 AC 87 ms
20,880 KB
testcase_14 AC 84 ms
20,820 KB
testcase_15 AC 87 ms
24,752 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Microsoft (R) F# Compiler version 11.0.0.0 for F# 5.0
Copyright (c) Microsoft Corporation. All Rights Reserved.

ソースコード

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