結果

問題 No.756 チャンパーノウン定数 (1)
ユーザー chike_pluschike_plus
提出日時 2019-03-28 16:27:00
言語 F#
(F# 4.0)
結果
WA  
実行時間 -
コード長 410 bytes
コンパイル時間 15,707 ms
コンパイル使用メモリ 187,236 KB
実行使用メモリ 31,328 KB
最終ジャッジ日時 2024-04-21 06:54:01
合計ジャッジ時間 14,064 ms
ジャッジサーバーID
(参考情報)
judge4 / judge2
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 53 ms
28,928 KB
testcase_01 AC 54 ms
29,300 KB
testcase_02 AC 53 ms
29,056 KB
testcase_03 AC 53 ms
29,056 KB
testcase_04 WA -
testcase_05 WA -
testcase_06 WA -
testcase_07 WA -
testcase_08 AC 56 ms
29,048 KB
testcase_09 AC 53 ms
29,056 KB
testcase_10 WA -
testcase_11 AC 53 ms
29,312 KB
testcase_12 WA -
testcase_13 WA -
testcase_14 WA -
testcase_15 WA -
testcase_16 WA -
testcase_17 WA -
testcase_18 WA -
testcase_19 WA -
testcase_20 WA -
testcase_21 AC 53 ms
29,184 KB
testcase_22 WA -
権限があれば一括ダウンロードができます
コンパイルメッセージ
  復元対象のプロジェクトを決定しています...
  /home/judge/data/code/main.fsproj を復元しました (464 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 =
   
    match i with
    | 1 -> n % 10
    | 2 -> if n < 10
            then loop (n+1) (i-1)
            else n % 10
    | 3 -> if n = 100 
            then 1
            else loop (n+1) (i-1)
    | _ -> loop (n+1) (i-1)

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

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