結果

問題 No.175 simpleDNA
ユーザー chike_pluschike_plus
提出日時 2019-04-02 13:47:54
言語 F#
(F# 4.0)
結果
AC  
実行時間 66 ms / 1,000 ms
コード長 274 bytes
コンパイル時間 4,365 ms
コンパイル使用メモリ 159,632 KB
実行使用メモリ 26,540 KB
最終ジャッジ日時 2023-08-19 21:40:29
合計ジャッジ時間 5,809 ms
ジャッジサーバーID
(参考情報)
judge14 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 65 ms
24,580 KB
testcase_01 AC 64 ms
22,200 KB
testcase_02 AC 65 ms
24,468 KB
testcase_03 AC 64 ms
22,472 KB
testcase_04 AC 64 ms
22,316 KB
testcase_05 AC 65 ms
26,540 KB
testcase_06 AC 64 ms
24,492 KB
testcase_07 AC 65 ms
24,488 KB
testcase_08 AC 66 ms
24,520 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Microsoft (R) F# Compiler version 11.0.0.0 for F# 5.0
Copyright (c) Microsoft Corporation. All Rights Reserved.

ソースコード

diff #

let ``No.175 simpleDNA``() =

  let l = stdin.ReadLine() |> int
  let n = stdin.ReadLine() |> int
  let ss= stdin.ReadLine().Split(' ')

  (l - ss.[0].Length)
  |> float
  |> fun num -> System.Math.Pow( 2. ,  num) * float n
  |> stdout.WriteLine

  ()
``No.175 simpleDNA``()
0