結果

問題 No.35 タイパー高橋
ユーザー hum_ophum_op
提出日時 2016-04-11 22:28:43
言語 F#
(F# 4.0)
結果
AC  
実行時間 330 ms / 5,000 ms
コード長 404 bytes
コンパイル時間 6,647 ms
コンパイル使用メモリ 185,320 KB
実行使用メモリ 35,644 KB
最終ジャッジ日時 2024-04-15 00:21:10
合計ジャッジ時間 8,966 ms
ジャッジサーバーID
(参考情報)
judge4 / judge3
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 310 ms
35,092 KB
testcase_01 AC 316 ms
35,644 KB
testcase_02 AC 328 ms
35,248 KB
testcase_03 AC 330 ms
35,128 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
  復元対象のプロジェクトを決定しています...
  /home/judge/data/code/main.fsproj を復元しました (225 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

let rec No35 (N:int) (s:int) (m:int) =
    if N > 0 then
        let IN = Console.ReadLine().Split(' ')
        let T, S = Int32.Parse IN.[0], IN.[1]
        let ct = 12 * T / 1000
        if ct > S.Length then
            No35 (N-1) (s+S.Length) m
        else
            No35 (N-1) (s+ct) (m+(S.Length-ct))
    else
        printfn "%d %d" s m

No35 (Int32.Parse (Console.ReadLine())) 0 0
0