結果

問題 No.744 循環小数N桁目 Easy
ユーザー taktak
提出日時 2019-02-03 16:18:24
言語 F#
(F# 4.0)
結果
AC  
実行時間 56 ms / 2,000 ms
コード長 159 bytes
コンパイル時間 5,028 ms
コンパイル使用メモリ 148,492 KB
実行使用メモリ 24,072 KB
最終ジャッジ日時 2023-08-22 16:58:38
合計ジャッジ時間 6,183 ms
ジャッジサーバーID
(参考情報)
judge14 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 56 ms
22,016 KB
testcase_01 AC 55 ms
19,956 KB
testcase_02 AC 54 ms
22,040 KB
testcase_03 AC 55 ms
22,052 KB
testcase_04 AC 55 ms
24,040 KB
testcase_05 AC 54 ms
22,068 KB
testcase_06 AC 55 ms
19,964 KB
testcase_07 AC 55 ms
24,072 KB
testcase_08 AC 54 ms
21,996 KB
testcase_09 AC 55 ms
24,048 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Microsoft (R) F# Compiler version 11.0.0.0 for F# 5.0
Copyright (c) Microsoft Corporation. All Rights Reserved.

ソースコード

diff #

let f x =
    let circulation = "285714"
    let size = circulation.Length
    circulation.[x%size-1]

let N = stdin.ReadLine() |> int

f N |> stdout.WriteLine
0