結果

問題 No.820 Power of Two
コンテスト
ユーザー maimai8
提出日時 2019-05-06 12:47:09
言語 OCaml
(5.5.1)
コンパイル:
ocamlfind ocamlopt -linkpkg -package zarith,str _filename_ -o a.out
実行:
./a.out
結果
AC  
実行時間 1 ms / 2,000 ms
+ 603µs
コード長 187 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 1,129 ms
コンパイル使用メモリ 22,432 KB
実行使用メモリ 9,864 KB
最終ジャッジ日時 2026-10-13 03:58:07
合計ジャッジ時間 2,396 ms
ジャッジサーバーID
(参考情報)
judge5_0 / judge2_0
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 13
権限があれば一括ダウンロードができます
コンパイルメッセージ
ocamlfind: [WARNING] Cannot read directory ./stublibs which is mentioned in ld.conf

ソースコード

diff #
raw source code

let () =
  let n, k = Scanf.scanf "%d %d\n" (fun a b -> a, b) in
  let n2 = 2. ** (float_of_int n) in
  let k2 = 2. ** (float_of_int k) in
  Printf.printf "%d\n" (int_of_float (n2 /. k2))
0