fork download
  1. import Data.List
  2. import Control.Monad
  3.  
  4. liczby = do
  5. t1 <- [1..9]
  6. t2 <- [0..9]
  7. t3 <- [0..9]
  8. t4 <- [0..9]
  9. t5 <- [0..9]
  10. guard (length (nub [ t1, t2, t3, t4, t5 ]) == 3)
  11.  
  12.  
  13. main = print (length liczby)
Success #stdin #stdout 0.03s 6224KB
stdin
Standard input is empty
stdout
16200