ALSAVOV

trainingLab

Oct 22nd, 2025
543
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. function trainLab(h, w) {
  2.     const widthSm = w * 100;
  3.     const heightSm = h * 100;
  4.     const rabotnoMShirinaSm = 70;
  5.     const rabotnoMDyljinaSm = 120;
  6.     const coridor = 100;
  7.     const zagubeniMesta = 3;
  8.     const realWidtSm = widthSm - coridor;
  9.  
  10.     const masiNaRed = Math.floor(realWidtSm / rabotnoMShirinaSm);
  11.     const redoveSMasi = Math.floor(heightSm / rabotnoMDyljinaSm);
  12.     const ob6toMestaVZalata = masiNaRed * redoveSMasi - zagubeniMesta;
  13.     return ob6toMestaVZalata;
  14. }
Tags: TrainingLab
Advertisement
Add Comment
Please, Sign In to add comment