Prog Caml : Simplifier la fonction passe_ou_non

Simplifiez la fonction suivante :

let passe_ou_non x =
  if x < 10
     then false
     else true
  in

TIME AND MEMORY LIMITS (Python)

  • Time: 4s on a 1GHz machine.
  • Memory: 1,000 KB.

COMMENTS

Code à compléter Caml

let passe_ou_non x =
(*à compléter*)
;;

print_string (string_of_bool (passe_ou_non (read_int () )))

Source: https://www.france-ioi.org. Created by : Arthur Charguéraud.