fork download
  1. udalosti <-0
  2. #Prichod studentu na Acko, stredni hodnota je 45 minut.
  3. udalosti[1]=c(0,rexp(1,1/45))
  4. #Prijezdy ochotnych aut po rade na A B a C
  5. udalosti[2]=c(1,rexp(1,1/40))
  6. udalosti[3]=c(2,rexp(1,1/10))
  7. udalosti[4]=c(3,rexp(1,1/50))
  8.  
  9. sort(udalosti)
  10.  
  11. udalosti
  12.  
Success #stdin #stdout 0.3s 22840KB
stdin
Standard input is empty
stdout
[1] 0 1 2 3
[1] 0 1 2 3