結果

問題 No.70 睡眠の重要性!
ユーザー regeregeregerege
提出日時 2016-03-26 23:25:22
言語 F#
(F# 4.0)
結果
AC  
実行時間 340 ms / 5,000 ms
コード長 329 bytes
コンパイル時間 6,659 ms
コンパイル使用メモリ 185,720 KB
実行使用メモリ 35,044 KB
最終ジャッジ日時 2024-04-10 00:06:52
合計ジャッジ時間 9,896 ms
ジャッジサーバーID
(参考情報)
judge3 / judge5
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 336 ms
35,044 KB
testcase_01 AC 337 ms
34,784 KB
testcase_02 AC 340 ms
34,908 KB
testcase_03 AC 335 ms
34,652 KB
testcase_04 AC 335 ms
34,784 KB
testcase_05 AC 337 ms
34,780 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
  復元対象のプロジェクトを決定しています...
  /home/judge/data/code/main.fsproj を復元しました (219 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 N = int <| stdin.ReadLine()
let t (s:string) =
    let a = s.Split(':')
    let b = (int a.[0] * 60) + int a.[1]
    b
let f (s:string) =
    let a = s.Split(' ')
    let b,c = t a.[0], t a.[1]
    if b <= c then c - b
    else 1440 - (b - c)
seq { for _ in 1..N -> stdin.ReadLine() }
|> Seq.map f
|> Seq.sum
|> printfn "%d"
0