結果
| 問題 | 
                            No.333 門松列を数え上げ
                             | 
                    
| コンテスト | |
| ユーザー | 
                             kuuso1
                         | 
                    
| 提出日時 | 2016-08-17 03:15:00 | 
| 言語 | F#  (F# 4.0)  | 
                    
| 結果 | 
                             
                                AC
                                 
                             
                            
                         | 
                    
| 実行時間 | 346 ms / 2,000 ms | 
| コード長 | 282 bytes | 
| コンパイル時間 | 9,843 ms | 
| コンパイル使用メモリ | 197,660 KB | 
| 実行使用メモリ | 34,612 KB | 
| 最終ジャッジ日時 | 2024-11-07 18:39:04 | 
| 合計ジャッジ時間 | 11,293 ms | 
| 
                            ジャッジサーバーID (参考情報)  | 
                        judge1 / judge5 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | AC * 2 | 
| other | AC * 7 | 
コンパイルメッセージ
復元対象のプロジェクトを決定しています... /home/judge/data/code/main.fsproj を復元しました (253 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/
ソースコード
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()
            
            
            
        
            
kuuso1