Загрузка данных


<mxfile host="app.diagrams.net" version="24.0.0">
  <diagram id="task2_fixed_gost" name="Задание 2 (ГОСТ)">
    <mxGraphModel dx="1200" dy="1400" grid="1" gridSize="10" guides="1" tooltips="1" connect="1" arrows="1" fold="1" page="1" pageScale="1" pageWidth="827" pageHeight="1169" math="0" shadow="0">
      <root>
        <mxCell id="0" />
        <mxCell id="1" parent="0" />

        <!-- 1. НАЧАЛО -->
        <mxCell id="b_start" value="начало" style="rounded=1;whiteSpace=wrap;html=1;arcSize=50;strokeWidth=1.5;strokeColor=#000000;fillColor=#FFFFFF;fontColor=#000000;fontFamily=Times New Roman;fontSize=14;" vertex="1" parent="1">
          <mxGeometry x="340" y="30" width="140" height="35" as="geometry" />
        </mxCell>

        <!-- 2. ВВОД -->
        <mxCell id="b_in" value="вв. x, n" style="shape=parallelogram;perimeter=parallelogramPerimeter;whiteSpace=wrap;html=1;fixedSize=1;strokeWidth=1.5;strokeColor=#000000;fillColor=#FFFFFF;fontColor=#000000;fontFamily=Times New Roman;fontSize=14;" vertex="1" parent="1">
          <mxGeometry x="340" y="90" width="140" height="35" as="geometry" />
        </mxCell>

        <!-- 3. ПРОВЕРКА ВВОДА -->
        <mxCell id="b_check_in" value="x = 0 или n &lt; 1" style="rhombus;whiteSpace=wrap;html=1;strokeWidth=1.5;strokeColor=#000000;fillColor=#FFFFFF;fontColor=#000000;fontFamily=Times New Roman;fontSize=13;" vertex="1" parent="1">
          <mxGeometry x="330" y="150" width="160" height="50" as="geometry" />
        </mxCell>

        <!-- ОШИБКА -->
        <mxCell id="b_err" value="выв. ошибка" style="shape=parallelogram;perimeter=parallelogramPerimeter;whiteSpace=wrap;html=1;fixedSize=1;strokeWidth=1.5;strokeColor=#000000;fillColor=#FFFFFF;fontColor=#000000;fontFamily=Times New Roman;fontSize=14;" vertex="1" parent="1">
          <mxGeometry x="580" y="157.5" width="130" height="35" as="geometry" />
        </mxCell>

        <!-- 4. S = 0 -->
        <mxCell id="b_s0" value="S = 0" style="rounded=0;whiteSpace=wrap;html=1;strokeWidth=1.5;strokeColor=#000000;fillColor=#FFFFFF;fontColor=#000000;fontFamily=Times New Roman;fontSize=14;" vertex="1" parent="1">
          <mxGeometry x="345" y="235" width="130" height="35" as="geometry" />
        </mxCell>

        <!-- 5. ЦИКЛ k (ДВА ВЫХОДА: вниз - тело, влево - выход) -->
        <mxCell id="b_loop_k" value="k = 1 .. n" style="shape=hexagon;perimeter=hexagonPerimeter2;whiteSpace=wrap;html=1;fixedSize=1;strokeWidth=1.5;strokeColor=#000000;fillColor=#FFFFFF;fontColor=#000000;fontFamily=Times New Roman;fontSize=14;" vertex="1" parent="1">
          <mxGeometry x="335" y="300" width="150" height="45" as="geometry" />
        </mxCell>

        <!-- 6. ПРОВЕРКА k = 2 -->
        <mxCell id="b_check_k" value="k = 2" style="rhombus;whiteSpace=wrap;html=1;strokeWidth=1.5;strokeColor=#000000;fillColor=#FFFFFF;fontColor=#000000;fontFamily=Times New Roman;fontSize=14;" vertex="1" parent="1">
          <mxGeometry x="355" y="375" width="110" height="45" as="geometry" />
        </mxCell>

        <!-- 7. ВЫЧИСЛЕНИЕ a И P = 1 -->
        <mxCell id="b_calc_a" value="a = (-3)³ᵏ⁺¹ / (2·(k-2)·x³ᵏ⁺¹)&#xa;P = 1" style="rounded=0;whiteSpace=wrap;html=1;strokeWidth=1.5;strokeColor=#000000;fillColor=#FFFFFF;fontColor=#000000;fontFamily=Times New Roman;fontSize=13;" vertex="1" parent="1">
          <mxGeometry x="300" y="450" width="220" height="45" as="geometry" />
        </mxCell>

        <!-- 8. ЦИКЛ m (ДВА ВЫХОДА: вниз - тело, влево - выход) -->
        <mxCell id="b_loop_m" value="m = 1 .. k + 2" style="shape=hexagon;perimeter=hexagonPerimeter2;whiteSpace=wrap;html=1;fixedSize=1;strokeWidth=1.5;strokeColor=#000000;fillColor=#FFFFFF;fontColor=#000000;fontFamily=Times New Roman;fontSize=14;" vertex="1" parent="1">
          <mxGeometry x="330" y="525" width="160" height="45" as="geometry" />
        </mxCell>

        <!-- 9. ПРОВЕРКА m = 4 -->
        <mxCell id="b_check_m" value="m = 4" style="rhombus;whiteSpace=wrap;html=1;strokeWidth=1.5;strokeColor=#000000;fillColor=#FFFFFF;fontColor=#000000;fontFamily=Times New Roman;fontSize=14;" vertex="1" parent="1">
          <mxGeometry x="355" y="600" width="110" height="45" as="geometry" />
        </mxCell>

        <!-- 10. ВЫЧИСЛЕНИЕ P -->
        <mxCell id="b_calc_p" value="P = P · (m³ - 8) / (m - 4)" style="rounded=0;whiteSpace=wrap;html=1;strokeWidth=1.5;strokeColor=#000000;fillColor=#FFFFFF;fontColor=#000000;fontFamily=Times New Roman;fontSize=13;" vertex="1" parent="1">
          <mxGeometry x="310" y="675" width="200" height="40" as="geometry" />
        </mxCell>

        <!-- 11. НАКОПЛЕНИЕ СУММЫ S -->
        <mxCell id="b_calc_s" value="S = S + a · P" style="rounded=0;whiteSpace=wrap;html=1;strokeWidth=1.5;strokeColor=#000000;fillColor=#FFFFFF;fontColor=#000000;fontFamily=Times New Roman;fontSize=14;" vertex="1" parent="1">
          <mxGeometry x="340" y="785" width="140" height="40" as="geometry" />
        </mxCell>

        <!-- 12. ВЫВОД S -->
        <mxCell id="b_out" value="выв. S" style="shape=parallelogram;perimeter=parallelogramPerimeter;whiteSpace=wrap;html=1;fixedSize=1;strokeWidth=1.5;strokeColor=#000000;fillColor=#FFFFFF;fontColor=#000000;fontFamily=Times New Roman;fontSize=14;" vertex="1" parent="1">
          <mxGeometry x="340" y="885" width="140" height="35" as="geometry" />
        </mxCell>

        <!-- 13. КОНЕЦ -->
        <mxCell id="b_end" value="конец" style="rounded=1;whiteSpace=wrap;html=1;arcSize=50;strokeWidth=1.5;strokeColor=#000000;fillColor=#FFFFFF;fontColor=#000000;fontFamily=Times New Roman;fontSize=14;" vertex="1" parent="1">
          <mxGeometry x="340" y="950" width="140" height="35" as="geometry" />
        </mxCell>

        <!-- СВЯЗИ ВЕРТИКАЛЬНЫЕ -->
        <mxCell id="e1" style="edgeStyle=orthogonalEdgeStyle;rounded=0;strokeWidth=1.5;strokeColor=#000000;endArrow=classic;" edge="1" parent="1" source="b_start" target="b_in"><mxGeometry relative="1" as="geometry" /></mxCell>
        <mxCell id="e2" style="edgeStyle=orthogonalEdgeStyle;rounded=0;strokeWidth=1.5;strokeColor=#000000;endArrow=classic;" edge="1" parent="1" source="b_in" target="b_check_in"><mxGeometry relative="1" as="geometry" /></mxCell>

        <!-- ВЕТВЛЕНИЕ ПРОВЕРКИ ВВОДА -->
        <mxCell id="e_in_yes" value="Да" style="edgeStyle=orthogonalEdgeStyle;rounded=0;strokeWidth=1.5;strokeColor=#000000;endArrow=classic;fontColor=#000000;fontFamily=Times New Roman;fontSize=12;labelBackgroundColor=#FFFFFF;" edge="1" parent="1" source="b_check_in" target="b_err"><mxGeometry relative="1" as="geometry" /></mxCell>
        <mxCell id="e_in_no" value="Нет" style="edgeStyle=orthogonalEdgeStyle;rounded=0;strokeWidth=1.5;strokeColor=#000000;endArrow=classic;fontColor=#000000;fontFamily=Times New Roman;fontSize=12;labelBackgroundColor=#FFFFFF;" edge="1" parent="1" source="b_check_in" target="b_s0"><mxGeometry relative="1" as="geometry" /></mxCell>

        <!-- Ошибка в конец (X = 760) -->
        <mxCell id="e_err_end" style="edgeStyle=orthogonalEdgeStyle;rounded=0;strokeWidth=1.5;strokeColor=#000000;endArrow=classic;" edge="1" parent="1" source="b_err" target="b_end">
          <mxGeometry relative="1" as="geometry">
            <Array as="points">
              <mxPoint x="645" y="215" />
              <mxPoint x="760" y="215" />
              <mxPoint x="760" y="967" />
            </Array>
          </mxGeometry>
        </mxCell>

        <mxCell id="e3" style="edgeStyle=orthogonalEdgeStyle;rounded=0;strokeWidth=1.5;strokeColor=#000000;endArrow=classic;" edge="1" parent="1" source="b_s0" target="b_loop_k"><mxGeometry relative="1" as="geometry" /></mxCell>

        <!-- ВЫХОД 1 ЦИКЛА k: ВНИЗ (в тело цикла) -->
        <mxCell id="e_k_body" style="edgeStyle=orthogonalEdgeStyle;rounded=0;strokeWidth=1.5;strokeColor=#000000;endArrow=classic;" edge="1" parent="1" source="b_loop_k" target="b_check_k"><mxGeometry relative="1" as="geometry" /></mxCell>

        <!-- ПРОВЕРКА k = 2 -->
        <mxCell id="e_k_no" value="Нет" style="edgeStyle=orthogonalEdgeStyle;rounded=0;strokeWidth=1.5;strokeColor=#000000;endArrow=classic;fontColor=#000000;fontFamily=Times New Roman;fontSize=12;labelBackgroundColor=#FFFFFF;" edge="1" parent="1" source="b_check_k" target="b_calc_a"><mxGeometry relative="1" as="geometry" /></mxCell>

        <!-- k = 2 (Да) -> ОБХОД СПРАВА (X = 570) В ТОЧКУ ЗАМЫКАНИЯ ПОСЛЕ S = S + a*P -->
        <mxCell id="e_k_yes" value="Да" style="edgeStyle=orthogonalEdgeStyle;rounded=0;strokeWidth=1.5;strokeColor=#000000;endArrow=none;fontColor=#000000;fontFamily=Times New Roman;fontSize=12;labelBackgroundColor=#FFFFFF;" edge="1" parent="1" source="b_check_k">
          <mxGeometry relative="1" as="geometry">
            <mxPoint x="410" y="845" as="targetPoint" />
            <Array as="points">
              <mxPoint x="570" y="398" />
              <mxPoint x="570" y="845" />
            </Array>
          </mxGeometry>
        </mxCell>

        <mxCell id="e5" style="edgeStyle=orthogonalEdgeStyle;rounded=0;strokeWidth=1.5;strokeColor=#000000;endArrow=classic;" edge="1" parent="1" source="b_calc_a" target="b_loop_m"><mxGeometry relative="1" as="geometry" /></mxCell>

        <!-- ВЫХОД 1 ЦИКЛА m: ВНИЗ (в тело цикла m) -->
        <mxCell id="e_m_body" style="edgeStyle=orthogonalEdgeStyle;rounded=0;strokeWidth=1.5;strokeColor=#000000;endArrow=classic;" edge="1" parent="1" source="b_loop_m" target="b_check_m"><mxGeometry relative="1" as="geometry" /></mxCell>

        <!-- ПРОВЕРКА m = 4 -->
        <mxCell id="e_m_no" value="Нет" style="edgeStyle=orthogonalEdgeStyle;rounded=0;strokeWidth=1.5;strokeColor=#000000;endArrow=classic;fontColor=#000000;fontFamily=Times New Roman;fontSize=12;labelBackgroundColor=#FFFFFF;" edge="1" parent="1" source="b_check_m" target="b_calc_p"><mxGeometry relative="1" as="geometry" /></mxCell>

        <!-- m = 4 (Да) -> ОБХОД ВНУТРЕННЕГО ЦИКЛА СПРАВА (X = 530) В ТОЧКУ ВОЗВРАТА ЦИКЛА m -->
        <mxCell id="e_m_yes" value="Да" style="edgeStyle=orthogonalEdgeStyle;rounded=0;strokeWidth=1.5;strokeColor=#000000;endArrow=none;fontColor=#000000;fontFamily=Times New Roman;fontSize=12;labelBackgroundColor=#FFFFFF;" edge="1" parent="1" source="b_check_m">
          <mxGeometry relative="1" as="geometry">
            <mxPoint x="410" y="740" as="targetPoint" />
            <Array as="points">
              <mxPoint x="530" y="623" />
              <mxPoint x="530" y="740" />
            </Array>
          </mxGeometry>
        </mxCell>

        <!-- ВОЗВРАТ В ЦИКЛ m (СЛЕВА X = 250): ПРИХОДИТ СВЕРХУ В ШЕСТИУГОЛЬНИК m -->
        <mxCell id="e_loop_m_ret" style="edgeStyle=orthogonalEdgeStyle;rounded=0;strokeWidth=1.5;strokeColor=#000000;endArrow=classic;" edge="1" parent="1" source="b_calc_p">
          <mxGeometry relative="1" as="geometry">
            <mxPoint x="410" y="510" as="targetPoint" />
            <Array as="points">
              <mxPoint x="410" y="740" />
              <mxPoint x="250" y="740" />
              <mxPoint x="250" y="510" />
            </Array>
          </mxGeometry>
        </mxCell>

        <!-- ВЫХОД 2 ЦИКЛА m: ВЛЕВО (завершение цикла m) -> переход к S = S + a·P (X = 180) -->
        <mxCell id="e_loop_m_out" style="edgeStyle=orthogonalEdgeStyle;rounded=0;strokeWidth=1.5;strokeColor=#000000;endArrow=classic;" edge="1" parent="1" source="b_loop_m" target="b_calc_s">
          <mxGeometry relative="1" as="geometry">
            <Array as="points">
              <mxPoint x="180" y="548" />
              <mxPoint x="180" y="805" />
            </Array>
          </mxGeometry>
        </mxCell>

        <!-- ВОЗВРАТ В ЦИКЛ k (СЛЕВА X = 110): ПРИХОДИТ СВЕРХУ В ШЕСТИУГОЛЬНИК k -->
        <mxCell id="e_loop_k_ret" style="edgeStyle=orthogonalEdgeStyle;rounded=0;strokeWidth=1.5;strokeColor=#000000;endArrow=classic;" edge="1" parent="1" source="b_calc_s">
          <mxGeometry relative="1" as="geometry">
            <mxPoint x="410" y="285" as="targetPoint" />
            <Array as="points">
              <mxPoint x="410" y="845" />
              <mxPoint x="110" y="845" />
              <mxPoint x="110" y="285" />
            </Array>
          </mxGeometry>
        </mxCell>

        <!-- ВЫХОД 2 ЦИКЛА k: ВЛЕВО (завершение внешнего цикла) -> В ВЫВОД S (X = 50) -->
        <mxCell id="e_loop_k_out" style="edgeStyle=orthogonalEdgeStyle;rounded=0;strokeWidth=1.5;strokeColor=#000000;endArrow=classic;" edge="1" parent="1" source="b_loop_k" target="b_out">
          <mxGeometry relative="1" as="geometry">
            <Array as="points">
              <mxPoint x="50" y="323" />
              <mxPoint x="50" y="902" />
            </Array>
          </mxGeometry>
        </mxCell>

        <mxCell id="e7" style="edgeStyle=orthogonalEdgeStyle;rounded=0;strokeWidth=1.5;strokeColor=#000000;endArrow=classic;" edge="1" parent="1" source="b_out" target="b_end"><mxGeometry relative="1" as="geometry" /></mxCell>

      </root>
    </mxGraphModel>
  </diagram>
</mxfile>