Data update
This commit is contained in:
parent
81fd053722
commit
52a6ef48dd
10248 changed files with 63654 additions and 6775 deletions
18
Task/Stem-and-leaf-plot/OCaml/stem-and-leaf-plot-3.ml
Normal file
18
Task/Stem-and-leaf-plot/OCaml/stem-and-leaf-plot-3.ml
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
let () =
|
||||
print_endline "\
|
||||
\\documentclass{report}
|
||||
\\usepackage{fullpage}
|
||||
\\begin{document}
|
||||
\\begin{tabular}{ r | *{120}{c} }";
|
||||
|
||||
List.iter (fun key ->
|
||||
Printf.printf " %d" key;
|
||||
let vs = List.filter (fun (a,_) -> a = key) data in
|
||||
let vs = List.sort compare (List.map snd vs) in
|
||||
List.iter (Printf.printf " & %d") vs;
|
||||
print_endline " \\\\"
|
||||
) keys;
|
||||
|
||||
print_endline "\
|
||||
\\end{tabular}
|
||||
\\end{document}"
|
||||
Loading…
Add table
Add a link
Reference in a new issue