Monday, March 10, 2025

Draft of task№139

 program Task139;


var A, B, C, Pmax,

res, S_sq, S_tr,

small_triangles,

S_h, hole_side : Int64;


begin

  writeln ('Hello World');

  res := 0;

  Pmax:=999999;

  for A:=1 to Pmax do

  begin

    for B:=A + 1 to Pmax do

    begin

      for C:=B + 1 to Pmax do

      begin

        if (A + B + C <= Pmax) and (A*A + B*B =C*C) then

        begin

          S_sq:= C*C;

          S_tr:= Trunc(A*B/2);

          small_triangles:=Trunc(S_sq/S_tr);

          S_h:= S_sq - small_triangles*S_tr;

          hole_side := Trunc(sqrt(S_h));

          if C mod hole_side = 0 then inc(res);

        end;

      end;

    end;

  end;

 

 writeln(res);

  Readln;

end.

Sunday, March 9, 2025

Pythagorean Tiles (num 139) for next week

Let (a,b,c)(A,B,C) represent the three sides of a right angle triangle with integral length sides. It is possible to place four such triangles together to form a square with length cC.

For example, (3,4,5)(3,4,5) triangles can be placed together to form a 55 by 55 square with 111 by 1 hole in the middle and it can be seen that the 55 by 55 square can be tiled with twenty-five 11 by 11 squares.


However, if (5,12,13)(5,12,13) triangles were used then the hole would measure 77 by 77 and these could not be used to tile the 1313 by 1313 square.

Given that the perimeter of the right triangle is less than one-hundred million, how many Pythagorean triangles would allow such a tiling to take place?

Thursday, March 6, 2025

Report fake TikTok recruitment

 Hello , dear support serviceman,

There is a SMS-message from fake TikTok recruiter came to me! It contains a dangerous WhatsApp link: https://wa.me/380972917761?sfs=h8a2G6MlVW

The number where sms came from: 

+224 629 62 18 10

Please, check this link and block it as soon as possible to avoid fraudulency in WhatsApp!

Fake fan of sales

 big_love_to_halyava@ukr.net

Wednesday, March 5, 2025

Collatz solution's Draft (Project Euler №14)

program Hello;

var n: Int64;

   maxsteps, steps : smallint;

begin

  writeln ('Hello World');

  //steps := 1;

  n := 0;

  maxsteps := 0;

  for n := 2 to 13 do

  begin

    steps := 1;

    while (n <> 1) do

    begin

      if odd(n) then n:= 3*n+1

      else n:= trunc(n/2);

      inc(steps);

    end;

    if steps > maxsteps then maxsteps := steps;

  end;

  writeln(maxsteps);

end.


Sunday, March 2, 2025

100325-1603

 синупрет аналоги

Заряд. Зуб, окуляри.

Пластівці , перекус 

Трамвай пумб, моно магаз

овочі, каша

Курси? 

🌽+ 🦀= Салат 🥗 

Блакитний будильник, червоний будильник.

Брелок?

Фото від 1402

Бойлер, балкон

Борщ?

DELPHI Санніков, Вальвачов. Ейлер №139.

зАмок


Tuesday, February 25, 2025

Київстар. Корисне

 *111# стан рахунку 

*112# залишок хвилин, смс

466 гаряча лінія 

Dbf не чіпаємо, маніпуляції тільки з itab

 1. Dbf tab містить ВСІ 67-68 полів,  Ztab - тільки ті 25-45 полів що використовуються в продовженні ресурсів, їх і копіюємо Dbf не редагува...