結果

問題 No.428 小数から逃げる夢
ユーザー tak
提出日時 2018-05-30 03:40:47
言語 F#
(F# 4.0)
結果
AC  
実行時間 78 ms / 1,000 ms
コード長 670 bytes
コンパイル時間 16,538 ms
コンパイル使用メモリ 188,252 KB
実行使用メモリ 32,128 KB
最終ジャッジ日時 2024-06-30 08:11:40
合計ジャッジ時間 21,260 ms
ジャッジサーバーID
(参考情報)
judge3 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 100
権限があれば一括ダウンロードができます
コンパイルメッセージ
  復元対象のプロジェクトを決定しています...
  /home/judge/data/code/main.fsproj を復元しました (366 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 D'  = 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991I
let len = D' |> string |> fun x -> x.ToCharArray() |> Array.length
let N   = stdin.ReadLine() |> int |> bigint

D' * N |> string |> fun x -> x.ToCharArray()
|> function 
    | str when (str |> Array.length) = len ->
        "0." + new string(str)
    | str ->
        let overSize = (str |> Array.length) - len
        let f = str.[0        .. (overSize-1)]
        let b = str.[overSize ..             ]
        new string(f) + "." + new string(b)
    |> printfn "%s"
0