結果

問題 No.296 n度寝
ユーザー vain0vain0
提出日時 2015-11-06 23:21:07
言語 F#
(.NET 7)
結果
AC  
実行時間 87 ms / 1,000 ms
コード長 235 bytes
コンパイル時間 5,123 ms
コンパイル使用メモリ 159,888 KB
実行使用メモリ 24,904 KB
最終ジャッジ日時 2023-09-21 03:45:15
合計ジャッジ時間 7,398 ms
ジャッジサーバーID
(参考情報)
judge12 / judge14
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 84 ms
24,904 KB
testcase_01 AC 83 ms
22,944 KB
testcase_02 AC 84 ms
22,756 KB
testcase_03 AC 86 ms
24,812 KB
testcase_04 AC 85 ms
24,796 KB
testcase_05 AC 84 ms
22,800 KB
testcase_06 AC 84 ms
22,816 KB
testcase_07 AC 84 ms
20,764 KB
testcase_08 AC 84 ms
22,736 KB
testcase_09 AC 84 ms
22,880 KB
testcase_10 AC 85 ms
24,732 KB
testcase_11 AC 85 ms
22,756 KB
testcase_12 AC 86 ms
24,832 KB
testcase_13 AC 87 ms
22,828 KB
testcase_14 AC 87 ms
22,820 KB
testcase_15 AC 86 ms
22,748 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(5,7): 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

[<EntryPoint>]
let main argv =
  let [| n; h; m; t |] = Console.ReadLine().Split(' ') |> Array.map int

  let t2 = (h * 60 + m + (n-1) * t) % (24 * 60)

  printfn "%d" (t2 / 60)
  printfn "%d" (t2 % 60)

  //exit code
  0
0