結果
| 問題 | 
                            No.138 化石のバージョン
                             | 
                    
| コンテスト | |
| ユーザー | 
                             | 
                    
| 提出日時 | 2019-01-19 18:21:53 | 
| 言語 | F#  (F# 4.0)  | 
                    
| 結果 | 
                             
                                AC
                                 
                             
                            
                         | 
                    
| 実行時間 | 81 ms / 5,000 ms | 
| コード長 | 281 bytes | 
| コンパイル時間 | 14,139 ms | 
| コンパイル使用メモリ | 184,904 KB | 
| 実行使用メモリ | 31,740 KB | 
| 最終ジャッジ日時 | 2024-07-18 05:32:15 | 
| 合計ジャッジ時間 | 18,438 ms | 
| 
                            ジャッジサーバーID (参考情報)  | 
                        judge5 / judge1 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | AC * 3 | 
| other | AC * 33 | 
コンパイルメッセージ
復元対象のプロジェクトを決定しています... /home/judge/data/code/main.fsproj を復元しました (274 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/
ソースコード
let g = stdin.ReadLine >> fun s -> s.Split '.'
let f0 e = (fst e) <> (snd e)
let f1 = function
    | Some e -> (fst e) > (snd e)
    | None -> true
let f2 b = if b then "YES" else "NO"
Seq.zip (Seq.map int (g ())) (Seq.map int (g ()))
|> Seq.tryFind f0
|> f1
|> f2
|> printfn "%s"