Skip to content

Instantly share code, notes, and snippets.

View martinsaposnic's full-sized avatar

Martin Saposnic martinsaposnic

View GitHub Profile
Cantidad de empleados 1
Cantidad de empleados online 1
Promedio tiempo en espera 14.765223957748791
Porcentaje de arrepentidos 80.34198897660966
Porcentaje tiempo ocioso empleado 0 40.02907723147733
Porcentaje tiempo ocioso empleado online 0 34.11004993625039
Gente que entro / T = 0.1422781578109648
------------------------------------------------------
Cantidad de empleados 2
Cantidad de empleados online 1
const HV = Infinity;
const TF = 1000000;
let T = 0;
const N = 3; // cantidad de empleados
const M = 2; // cantidad de empleados online
// make array of N items
const TPSO = new Array(M).fill(HV);
const STOO = new Array(M).fill(0);
const TPS = new Array(N).fill(HV);
const STO = new Array(N).fill(0);
0xa873b8BB0d4326a048D2ed303747279234f1441b
0xCC17BbF62C7cf2fB80C7aC79961804D5169c5abE
class Laberinto(object):
def __init__(self, parent=None):
self.fil=5
self.col=5
self.parent = parent
self.laberinto=[[[1,1,0,0],[0,1,0,1],[0,1,0,1],[0,1,0,1],[0,1,1,0]],[[1,1,0,0],[0,1,0,1],[0,1,1,0],[1,1,0,1],[0,1,0,0]],[[0,1,0,0],[0,1,0,1],[0,1,0,1],[0,1,1,1],[1,1,1,0]],[[1,1,0,0],[0,1,0,0],[0,1,0,0],[0,1,1,1],[1,1,1,0]],[[0,0,0,0],[0,1,0,1],[0,1,0,1],[0,1,1,1],[1,0,1,0]]]
self.posQueso=(1,0)
self.posRata=(0,0)
##### interfaz (metodos publicos)
def cargar(self,fn):