結果

問題 No.296 n度寝
ユーザー kuuso1kuuso1
提出日時 2016-08-17 22:55:34
言語 F#
(F# 4.0)
結果
AC  
実行時間 64 ms / 1,000 ms
コード長 415 bytes
コンパイル時間 5,541 ms
コンパイル使用メモリ 169,616 KB
実行使用メモリ 24,256 KB
最終ジャッジ日時 2023-09-21 08:28:22
合計ジャッジ時間 7,459 ms
ジャッジサーバーID
(参考情報)
judge12 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 64 ms
24,256 KB
testcase_01 AC 63 ms
22,160 KB
testcase_02 AC 62 ms
22,064 KB
testcase_03 AC 63 ms
22,132 KB
testcase_04 AC 64 ms
22,116 KB
testcase_05 AC 63 ms
20,224 KB
testcase_06 AC 62 ms
24,172 KB
testcase_07 AC 62 ms
22,160 KB
testcase_08 AC 63 ms
24,180 KB
testcase_09 AC 62 ms
22,208 KB
testcase_10 AC 62 ms
22,124 KB
testcase_11 AC 62 ms
22,128 KB
testcase_12 AC 61 ms
22,088 KB
testcase_13 AC 62 ms
22,080 KB
testcase_14 AC 62 ms
22,132 KB
testcase_15 AC 62 ms
22,200 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Microsoft (R) F# Compiler version 11.0.0.0 for F# 5.0
Copyright (c) Microsoft Corporation. All Rights Reserved.

/home/judge/data/code/Main.fs(4,13): warning FS0025: Incomplete pattern matches on this expression. For example, the value '[|_; _; _; _; _|]' may indicate a case not covered by the pattern(s).

ソースコード

diff #

open System
type Sol() =
    member this.Solve() = 
        let [| N; H; M; T |] = stdin.ReadLine().Split() |> Array.map int
        let elapsedMinute = (N-1) * T
        let now = H*60 + M
        let hour = (now + elapsedMinute) % 1440 / 60
        let minute = (now + elapsedMinute) % 60
        stdout.WriteLine("{0}",hour);
        stdout.WriteLine("{0}",minute);
        

let mySol = new Sol()
mySol.Solve()
0