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


<mxGraphModel dx="1200" dy="1200" grid="1" gridSize="10" guides="1" tooltips="1" connect="1" arrows="1" fold="1" page="1" pageScale="1" pageWidth="1169" pageHeight="827" math="0" shadow="0">
  <root>
    <mxCell id="0" />
    <mxCell id="1" parent="0" />

    <!-- ==================== ОСНОВНАЯ ПРОГРАММА (main) ==================== -->
    <mxCell id="t_main" value="Основная программа (main)" style="text;html=1;align=center;verticalAlign=middle;strokeColor=none;fillColor=none;fontFamily=Times New Roman;fontSize=14;fontStyle=1;" vertex="1" parent="1">
      <mxGeometry x="70" y="30" width="200" height="30" as="geometry" />
    </mxCell>

    <!-- Начало -->
    <mxCell id="m_start" value="начало" style="rounded=1;whiteSpace=wrap;html=1;arcSize=50;strokeWidth=2;strokeColor=#1E293B;fontFamily=Times New Roman;fontSize=14;fontStyle=1;" vertex="1" parent="1">
      <mxGeometry x="100" y="70" width="140" height="40" as="geometry" />
    </mxCell>

    <!-- Ввод n -->
    <mxCell id="m_in" value="вв. n" style="shape=parallelogram;perimeter=parallelogramPerimeter;whiteSpace=wrap;html=1;fixedSize=1;strokeWidth=2;strokeColor=#1E293B;fontFamily=Times New Roman;fontSize=14;" vertex="1" parent="1">
      <mxGeometry x="100" y="140" width="140" height="40" as="geometry" />
    </mxCell>

    <!-- Вызов функции с двойными полосками -->
    <mxCell id="m_call" value="res := is_palindrome(n)" style="shape=process;whiteSpace=wrap;html=1;backgroundOutline=1;strokeWidth=2;strokeColor=#1E293B;fontFamily=Times New Roman;fontSize=13;" vertex="1" parent="1">
      <mxGeometry x="75" y="210" width="190" height="45" as="geometry" />
    </mxCell>

    <!-- Проверка условия в main -->
    <mxCell id="m_cond" value="res == true" style="rhombus;whiteSpace=wrap;html=1;strokeWidth=2;strokeColor=#1E293B;fontFamily=Times New Roman;fontSize=13;" vertex="1" parent="1">
      <mxGeometry x="95" y="285" width="150" height="60" as="geometry" />
    </mxCell>

    <!-- Вывод "Истина" -->
    <mxCell id="m_out_yes" value="выв. &quot;Истина&quot;" style="shape=parallelogram;perimeter=parallelogramPerimeter;whiteSpace=wrap;html=1;fixedSize=1;strokeWidth=2;strokeColor=#1E293B;fontFamily=Times New Roman;fontSize=13;" vertex="1" parent="1">
      <mxGeometry x="10" y="375" width="140" height="40" as="geometry" />
    </mxCell>

    <!-- Вывод "Ложь" -->
    <mxCell id="m_out_no" value="выв. &quot;Ложь&quot;" style="shape=parallelogram;perimeter=parallelogramPerimeter;whiteSpace=wrap;html=1;fixedSize=1;strokeWidth=2;strokeColor=#1E293B;fontFamily=Times New Roman;fontSize=13;" vertex="1" parent="1">
      <mxGeometry x="190" y="375" width="140" height="40" as="geometry" />
    </mxCell>

    <!-- Точка слияния веток -->
    <mxCell id="m_merge" value="" style="ellipse;whiteSpace=wrap;html=1;aspect=fixed;fillColor=#1E293B;strokeColor=#1E293B;" vertex="1" parent="1">
      <mxGeometry x="167" y="445" width="6" height="6" as="geometry" />
    </mxCell>

    <!-- Конец -->
    <mxCell id="m_end" value="конец" style="rounded=1;whiteSpace=wrap;html=1;arcSize=50;strokeWidth=2;strokeColor=#1E293B;fontFamily=Times New Roman;fontSize=14;fontStyle=1;" vertex="1" parent="1">
      <mxGeometry x="100" y="475" width="140" height="40" as="geometry" />
    </mxCell>

    <!-- Связи main -->
    <mxCell id="em1" style="edgeStyle=orthogonalEdgeStyle;rounded=0;strokeWidth=2;strokeColor=#1E293B;endArrow=classic;" edge="1" parent="1" source="m_start" target="m_in"><mxGeometry relative="1" as="geometry" /></mxCell>
    <mxCell id="em2" style="edgeStyle=orthogonalEdgeStyle;rounded=0;strokeWidth=2;strokeColor=#1E293B;endArrow=classic;" edge="1" parent="1" source="m_in" target="m_call"><mxGeometry relative="1" as="geometry" /></mxCell>
    <mxCell id="em3" style="edgeStyle=orthogonalEdgeStyle;rounded=0;strokeWidth=2;strokeColor=#1E293B;endArrow=classic;" edge="1" parent="1" source="m_call" target="m_cond"><mxGeometry relative="1" as="geometry" /></mxCell>

    <mxCell id="em4" value="Да" style="edgeStyle=orthogonalEdgeStyle;rounded=0;strokeWidth=2;strokeColor=#1E293B;endArrow=classic;fontColor=#047857;fontStyle=1;labelBackgroundColor=#FFFFFF;" edge="1" parent="1" source="m_cond" target="m_out_yes">
      <mxGeometry relative="1" as="geometry"><Array as="points"><mxPoint x="80" y="315" /></Array></mxGeometry>
    </mxCell>
    <mxCell id="em5" value="Нет" style="edgeStyle=orthogonalEdgeStyle;rounded=0;strokeWidth=2;strokeColor=#1E293B;endArrow=classic;fontColor=#B91C1C;fontStyle=1;labelBackgroundColor=#FFFFFF;" edge="1" parent="1" source="m_cond" target="m_out_no">
      <mxGeometry relative="1" as="geometry"><Array as="points"><mxPoint x="260" y="315" /></Array></mxGeometry>
    </mxCell>

    <mxCell id="em6" style="edgeStyle=orthogonalEdgeStyle;rounded=0;strokeWidth=2;strokeColor=#1E293B;endArrow=classic;" edge="1" parent="1" source="m_out_yes" target="m_merge">
      <mxGeometry relative="1" as="geometry"><Array as="points"><mxPoint x="80" y="448" /></Array></mxGeometry>
    </mxCell>
    <mxCell id="em7" style="edgeStyle=orthogonalEdgeStyle;rounded=0;strokeWidth=2;strokeColor=#1E293B;endArrow=none;" edge="1" parent="1" source="m_out_no" target="m_merge">
      <mxGeometry relative="1" as="geometry"><Array as="points"><mxPoint x="260" y="448" /></Array></mxGeometry>
    </mxCell>
    <mxCell id="em8" style="edgeStyle=orthogonalEdgeStyle;rounded=0;strokeWidth=2;strokeColor=#1E293B;endArrow=classic;" edge="1" parent="1" source="m_merge" target="m_end"><mxGeometry relative="1" as="geometry" /></mxCell>


    <!-- ==================== ФУНКЦИЯ is_palindrome(n) ==================== -->
    <mxCell id="t_func" value="Функция is_palindrome(n)" style="text;html=1;align=center;verticalAlign=middle;strokeColor=none;fillColor=none;fontFamily=Times New Roman;fontSize=14;fontStyle=1;" vertex="1" parent="1">
      <mxGeometry x="490" y="30" width="220" height="30" as="geometry" />
    </mxCell>

    <!-- Шапка функции -->
    <mxCell id="f_start" value="нач. is_palindrome(n)" style="rounded=1;whiteSpace=wrap;html=1;arcSize=50;strokeWidth=2;strokeColor=#1E293B;fontFamily=Times New Roman;fontSize=14;" vertex="1" parent="1">
      <mxGeometry x="500" y="70" width="200" height="40" as="geometry" />
    </mxCell>

    <!-- Вычисление цифр числа -->
    <mxCell id="f_calc" value="d1 := n / 100&#xa;d3 := n % 10" style="rounded=0;whiteSpace=wrap;html=1;strokeWidth=2;strokeColor=#1E293B;fontFamily=Times New Roman;fontSize=14;" vertex="1" parent="1">
      <mxGeometry x="530" y="140" width="140" height="45" as="geometry" />
    </mxCell>

    <!-- Условие d1 == d3 -->
    <mxCell id="f_cond" value="d1 == d3" style="rhombus;whiteSpace=wrap;html=1;strokeWidth=2;strokeColor=#1E293B;fontFamily=Times New Roman;fontSize=14;" vertex="1" parent="1">
      <mxGeometry x="530" y="215" width="140" height="60" as="geometry" />
    </mxCell>

    <!-- возврат true -->
    <mxCell id="f_ret_yes" value="возвр. true" style="rounded=0;whiteSpace=wrap;html=1;strokeWidth=2;strokeColor=#1E293B;fontFamily=Times New Roman;fontSize=13;" vertex="1" parent="1">
      <mxGeometry x="440" y="305" width="110" height="35" as="geometry" />
    </mxCell>

    <!-- возврат false -->
    <mxCell id="f_ret_no" value="возвр. false" style="rounded=0;whiteSpace=wrap;html=1;strokeWidth=2;strokeColor=#1E293B;fontFamily=Times New Roman;fontSize=13;" vertex="1" parent="1">
      <mxGeometry x="650" y="305" width="110" height="35" as="geometry" />
    </mxCell>

    <!-- Точка слияния в функции -->
    <mxCell id="f_merge" value="" style="ellipse;whiteSpace=wrap;html=1;aspect=fixed;fillColor=#1E293B;strokeColor=#1E293B;" vertex="1" parent="1">
      <mxGeometry x="597" y="375" width="6" height="6" as="geometry" />
    </mxCell>

    <!-- Конец функции -->
    <mxCell id="f_end" value="Конец is_palindrome" style="rounded=1;whiteSpace=wrap;html=1;arcSize=50;strokeWidth=2;strokeColor=#1E293B;fontFamily=Times New Roman;fontSize=14;fontStyle=1;" vertex="1" parent="1">
      <mxGeometry x="515" y="405" width="170" height="40" as="geometry" />
    </mxCell>

    <!-- Связи функции -->
    <mxCell id="ef1" style="edgeStyle=orthogonalEdgeStyle;rounded=0;strokeWidth=2;strokeColor=#1E293B;endArrow=classic;" edge="1" parent="1" source="f_start" target="f_calc"><mxGeometry relative="1" as="geometry" /></mxCell>
    <mxCell id="ef2" style="edgeStyle=orthogonalEdgeStyle;rounded=0;strokeWidth=2;strokeColor=#1E293B;endArrow=classic;" edge="1" parent="1" source="f_calc" target="f_cond"><mxGeometry relative="1" as="geometry" /></mxCell>

    <mxCell id="ef3" value="Да" style="edgeStyle=orthogonalEdgeStyle;rounded=0;strokeWidth=2;strokeColor=#1E293B;endArrow=classic;fontColor=#047857;fontStyle=1;labelBackgroundColor=#FFFFFF;" edge="1" parent="1" source="f_cond" target="f_ret_yes">
      <mxGeometry relative="1" as="geometry"><Array as="points"><mxPoint x="495" y="245" /></Array></mxGeometry>
    </mxCell>
    <mxCell id="ef4" value="Нет" style="edgeStyle=orthogonalEdgeStyle;rounded=0;strokeWidth=2;strokeColor=#1E293B;endArrow=classic;fontColor=#B91C1C;fontStyle=1;labelBackgroundColor=#FFFFFF;" edge="1" parent="1" source="f_cond" target="f_ret_no">
      <mxGeometry relative="1" as="geometry"><Array as="points"><mxPoint x="705" y="245" /></Array></mxGeometry>
    </mxCell>

    <mxCell id="ef5" style="edgeStyle=orthogonalEdgeStyle;rounded=0;strokeWidth=2;strokeColor=#1E293B;endArrow=classic;" edge="1" parent="1" source="f_ret_yes" target="f_merge">
      <mxGeometry relative="1" as="geometry"><Array as="points"><mxPoint x="495" y="378" /></Array></mxGeometry>
    </mxCell>
    <mxCell id="ef6" style="edgeStyle=orthogonalEdgeStyle;rounded=0;strokeWidth=2;strokeColor=#1E293B;endArrow=none;" edge="1" parent="1" source="f_ret_no" target="f_merge">
      <mxGeometry relative="1" as="geometry"><Array as="points"><mxPoint x="705" y="378" /></Array></mxGeometry>
    </mxCell>
    <mxCell id="ef7" style="edgeStyle=orthogonalEdgeStyle;rounded=0;strokeWidth=2;strokeColor=#1E293B;endArrow=classic;" edge="1" parent="1" source="f_merge" target="f_end"><mxGeometry relative="1" as="geometry" /></mxCell>

  </root>
</mxGraphModel>