結果

問題 No.138 化石のバージョン
ユーザー regerege
提出日時 2016-06-19 00:17:08
言語 F#
(F# 4.0)
結果
AC  
実行時間 76 ms / 5,000 ms
コード長 218 bytes
コンパイル時間 17,443 ms
コンパイル使用メモリ 184,852 KB
実行使用メモリ 30,848 KB
最終ジャッジ日時 2024-12-29 14:00:33
合計ジャッジ時間 21,277 ms
ジャッジサーバーID
(参考情報)
judge5 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 33
権限があれば一括ダウンロードができます
コンパイルメッセージ
  復元対象のプロジェクトを決定しています...
  /home/judge/data/code/main.fsproj を復元しました (485 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 f (s:string) =
    let arr = s.Split('.') |> Array.map int
    arr.[0] * 1000000 + arr.[1] * 1000 + arr.[2]
let N = f <| stdin.ReadLine()
let M = f <| stdin.ReadLine()
printfn "%s" <| if N >= M then "YES" else "NO"
0