結果

問題 No.333 門松列を数え上げ
ユーザー kuuso1kuuso1
提出日時 2016-08-17 03:15:00
言語 F#
(F# 4.0)
結果
AC  
実行時間 304 ms / 2,000 ms
コード長 282 bytes
コンパイル時間 6,089 ms
コンパイル使用メモリ 188,676 KB
実行使用メモリ 34,600 KB
最終ジャッジ日時 2024-04-25 08:14:25
合計ジャッジ時間 9,825 ms
ジャッジサーバーID
(参考情報)
judge3 / judge5
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 304 ms
34,484 KB
testcase_01 AC 297 ms
34,476 KB
testcase_02 AC 300 ms
33,664 KB
testcase_03 AC 299 ms
33,800 KB
testcase_04 AC 296 ms
34,600 KB
testcase_05 AC 296 ms
34,468 KB
testcase_06 AC 292 ms
34,592 KB
testcase_07 AC 295 ms
34,480 KB
testcase_08 AC 300 ms
34,360 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
  復元対象のプロジェクトを決定しています...
  /home/judge/data/code/main.fsproj を復元しました (211 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
type Sol() =
    member this.Solve() = 
        let (A,B) = stdin.ReadLine().Split(' ') |> Array.map int |> fun ss -> (ss.[0], ss.[1])
        let f a b = if a > b then (2000000000 - b - 1) else (b - 2)
        f A B |> printfn "%d"

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