結果

問題 No.756 チャンパーノウン定数 (1)
ユーザー chike_plus
提出日時 2019-03-28 16:57:51
言語 F#
(F# 4.0)
結果
AC  
実行時間 56 ms / 2,000 ms
コード長 313 bytes
コンパイル時間 9,761 ms
コンパイル使用メモリ 186,880 KB
実行使用メモリ 29,172 KB
最終ジャッジ日時 2024-10-13 06:33:09
合計ジャッジ時間 11,982 ms
ジャッジサーバーID
(参考情報)
judge3 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 20
権限があれば一括ダウンロードができます
コンパイルメッセージ
  復元対象のプロジェクトを決定しています...
  /home/judge/data/code/main.fsproj を復元しました (254 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 ``No.756 チャンパーノウン定数 (1)``() =

  let rec loop n i =
    let len = (string n).Length

    match (i <= len) with
    | false -> loop (n+1) (i-len)
    | true  -> (string n).[i-1]

  stdin.ReadLine()|>int
  |> loop 1
  |> stdout.WriteLine

  ()
``No.756 チャンパーノウン定数 (1)``()
0