結果

問題 No.285 消費税2
ユーザー r6eve
提出日時 2017-08-16 16:33:37
言語 OCaml
(5.2.1)
結果
AC  
実行時間 2 ms / 2,000 ms
コード長 272 bytes
コンパイル時間 307 ms
コンパイル使用メモリ 19,564 KB
実行使用メモリ 5,248 KB
最終ジャッジ日時 2024-10-09 00:21:40
合計ジャッジ時間 1,361 ms
ジャッジサーバーID
(参考情報)
judge2 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 4
other AC * 26
権限があれば一括ダウンロードができます

ソースコード

diff #

let () =
  let d = read_int () in
  let d = d * 108 |> string_of_int in
  let n = String.length d in
  let rec doit i =
    if i = n then print_newline ()
    else begin
      if i = n - 2 then print_char '.';
      print_char d.[i];
      doit (i + 1)
    end in
  doit 0
0