結果

問題 No.1291 小手調べ
ユーザー eseharaesehara
提出日時 2021-06-02 09:58:17
言語 OCaml
(5.1.0)
結果
WA  
実行時間 -
コード長 272 bytes
コンパイル時間 1,268 ms
コンパイル使用メモリ 19,716 KB
実行使用メモリ 5,376 KB
最終ジャッジ日時 2024-04-26 21:23:34
合計ジャッジ時間 1,973 ms
ジャッジサーバーID
(参考情報)
judge4 / judge3
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 WA -
testcase_02 WA -
testcase_03 WA -
testcase_04 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

let rec line n =
  match n with
  | 0 -> ()
  | _ ->
    let keta = read_line () |> int_of_string in
    let tail = String.make (keta - 1) '0' in
    if (keta = 1) then print_string "10" else print_string ("9" ^ tail);;

let () =
  read_line () |> int_of_string |> line;;
0