-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathUntitled Diagram.drawio
115 lines (115 loc) · 10.9 KB
/
Untitled Diagram.drawio
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
<mxfile host="app.diagrams.net" modified="2020-12-09T16:53:09.286Z" agent="5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/86.0.4240.198 Safari/537.36 OPR/72.0.3815.400" etag="KaPAKWzpAzb5A8HRyicc" version="13.11.0" type="github">
<diagram id="C5RBs43oDa-KdzZeNtuy" name="Page-1">
<mxGraphModel dx="1382" dy="764" 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="WIyWlLk6GJQsqaUBKTNV-0" />
<mxCell id="WIyWlLk6GJQsqaUBKTNV-1" parent="WIyWlLk6GJQsqaUBKTNV-0" />
<mxCell id="voJJ7wPjwEzhaU345MMS-1" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;exitX=0.5;exitY=1;exitDx=0;exitDy=0;entryX=0.5;entryY=0;entryDx=0;entryDy=0;fontSize=14;" edge="1" parent="WIyWlLk6GJQsqaUBKTNV-1" source="WIyWlLk6GJQsqaUBKTNV-3" target="voJJ7wPjwEzhaU345MMS-0">
<mxGeometry relative="1" as="geometry" />
</mxCell>
<mxCell id="WIyWlLk6GJQsqaUBKTNV-3" value="consecutiveNumbersSum" style="rounded=1;whiteSpace=wrap;html=1;fontSize=13;glass=0;strokeWidth=3;shadow=0;" parent="WIyWlLk6GJQsqaUBKTNV-1" vertex="1">
<mxGeometry x="160" y="80" width="190" height="40" as="geometry" />
</mxCell>
<mxCell id="voJJ7wPjwEzhaU345MMS-3" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;exitX=0.5;exitY=1;exitDx=0;exitDy=0;entryX=0.5;entryY=0;entryDx=0;entryDy=0;fontSize=14;" edge="1" parent="WIyWlLk6GJQsqaUBKTNV-1" source="voJJ7wPjwEzhaU345MMS-0" target="voJJ7wPjwEzhaU345MMS-2">
<mxGeometry relative="1" as="geometry" />
</mxCell>
<mxCell id="voJJ7wPjwEzhaU345MMS-0" value="輸入正整數 N" style="shape=parallelogram;perimeter=parallelogramPerimeter;whiteSpace=wrap;html=1;fixedSize=1;strokeWidth=1;fontSize=14;" vertex="1" parent="WIyWlLk6GJQsqaUBKTNV-1">
<mxGeometry x="180" y="150" width="150" height="50" as="geometry" />
</mxCell>
<mxCell id="voJJ7wPjwEzhaU345MMS-12" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;exitX=0.5;exitY=1;exitDx=0;exitDy=0;entryX=0.5;entryY=0;entryDx=0;entryDy=0;fontSize=14;" edge="1" parent="WIyWlLk6GJQsqaUBKTNV-1" source="voJJ7wPjwEzhaU345MMS-2" target="voJJ7wPjwEzhaU345MMS-9">
<mxGeometry relative="1" as="geometry" />
</mxCell>
<mxCell id="voJJ7wPjwEzhaU345MMS-2" value="&nbsp;N 是否小於 1 ?" style="rhombus;whiteSpace=wrap;html=1;strokeWidth=1;fontSize=14;" vertex="1" parent="WIyWlLk6GJQsqaUBKTNV-1">
<mxGeometry x="180" y="217.5" width="150" height="70" as="geometry" />
</mxCell>
<mxCell id="voJJ7wPjwEzhaU345MMS-7" value="" style="endArrow=classic;html=1;fontSize=14;entryX=1;entryY=0.5;entryDx=0;entryDy=0;" edge="1" parent="WIyWlLk6GJQsqaUBKTNV-1" target="voJJ7wPjwEzhaU345MMS-10">
<mxGeometry relative="1" as="geometry">
<mxPoint x="180" y="253" as="sourcePoint" />
<mxPoint x="370" y="265" as="targetPoint" />
</mxGeometry>
</mxCell>
<mxCell id="voJJ7wPjwEzhaU345MMS-8" value="No" style="edgeLabel;resizable=0;html=1;align=center;verticalAlign=middle;" connectable="0" vertex="1" parent="voJJ7wPjwEzhaU345MMS-7">
<mxGeometry relative="1" as="geometry">
<mxPoint y="-15" as="offset" />
</mxGeometry>
</mxCell>
<mxCell id="voJJ7wPjwEzhaU345MMS-13" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;exitX=0.5;exitY=1;exitDx=0;exitDy=0;entryX=0.5;entryY=0;entryDx=0;entryDy=0;fontSize=14;" edge="1" parent="WIyWlLk6GJQsqaUBKTNV-1" source="voJJ7wPjwEzhaU345MMS-9" target="voJJ7wPjwEzhaU345MMS-11">
<mxGeometry relative="1" as="geometry" />
</mxCell>
<mxCell id="voJJ7wPjwEzhaU345MMS-9" value="宣告 ret 為 1" style="rounded=0;whiteSpace=wrap;html=1;strokeWidth=1;fontSize=14;" vertex="1" parent="WIyWlLk6GJQsqaUBKTNV-1">
<mxGeometry x="200" y="310" width="110" height="50" as="geometry" />
</mxCell>
<mxCell id="voJJ7wPjwEzhaU345MMS-10" value="<span>回傳 0</span>" style="rounded=1;whiteSpace=wrap;html=1;strokeWidth=1;fontSize=14;" vertex="1" parent="WIyWlLk6GJQsqaUBKTNV-1">
<mxGeometry x="50" y="230" width="90" height="45" as="geometry" />
</mxCell>
<mxCell id="voJJ7wPjwEzhaU345MMS-17" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;exitX=0.5;exitY=1;exitDx=0;exitDy=0;entryX=0.5;entryY=0;entryDx=0;entryDy=0;fontSize=14;" edge="1" parent="WIyWlLk6GJQsqaUBKTNV-1" source="voJJ7wPjwEzhaU345MMS-11" target="voJJ7wPjwEzhaU345MMS-16">
<mxGeometry relative="1" as="geometry" />
</mxCell>
<mxCell id="voJJ7wPjwEzhaU345MMS-11" value="宣告 x 為 N" style="rounded=0;whiteSpace=wrap;html=1;strokeWidth=1;fontSize=14;" vertex="1" parent="WIyWlLk6GJQsqaUBKTNV-1">
<mxGeometry x="200" y="380" width="110" height="50" as="geometry" />
</mxCell>
<mxCell id="voJJ7wPjwEzhaU345MMS-31" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;exitX=0.5;exitY=1;exitDx=0;exitDy=0;entryX=0.5;entryY=0;entryDx=0;entryDy=0;fontSize=14;" edge="1" parent="WIyWlLk6GJQsqaUBKTNV-1" source="voJJ7wPjwEzhaU345MMS-15" target="voJJ7wPjwEzhaU345MMS-19">
<mxGeometry relative="1" as="geometry" />
</mxCell>
<mxCell id="voJJ7wPjwEzhaU345MMS-34" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;exitX=1;exitY=0.5;exitDx=0;exitDy=0;entryX=0;entryY=0.5;entryDx=0;entryDy=0;fontSize=14;" edge="1" parent="WIyWlLk6GJQsqaUBKTNV-1" source="voJJ7wPjwEzhaU345MMS-15" target="voJJ7wPjwEzhaU345MMS-33">
<mxGeometry relative="1" as="geometry" />
</mxCell>
<mxCell id="voJJ7wPjwEzhaU345MMS-15" value="i 是否小於 x ?" style="rhombus;whiteSpace=wrap;html=1;strokeWidth=1;fontSize=14;" vertex="1" parent="WIyWlLk6GJQsqaUBKTNV-1">
<mxGeometry x="450" y="100" width="140" height="70" as="geometry" />
</mxCell>
<mxCell id="voJJ7wPjwEzhaU345MMS-18" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;exitX=1;exitY=0.5;exitDx=0;exitDy=0;entryX=0;entryY=0.5;entryDx=0;entryDy=0;fontSize=14;" edge="1" parent="WIyWlLk6GJQsqaUBKTNV-1" source="voJJ7wPjwEzhaU345MMS-16" target="voJJ7wPjwEzhaU345MMS-15">
<mxGeometry relative="1" as="geometry" />
</mxCell>
<mxCell id="voJJ7wPjwEzhaU345MMS-16" value="<span>宣告 i 為 2</span>" style="rounded=0;whiteSpace=wrap;html=1;strokeWidth=1;fontSize=14;" vertex="1" parent="WIyWlLk6GJQsqaUBKTNV-1">
<mxGeometry x="200" y="450" width="110" height="60" as="geometry" />
</mxCell>
<mxCell id="voJJ7wPjwEzhaU345MMS-30" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;exitX=0.5;exitY=1;exitDx=0;exitDy=0;entryX=0.5;entryY=0;entryDx=0;entryDy=0;fontSize=14;" edge="1" parent="WIyWlLk6GJQsqaUBKTNV-1" source="voJJ7wPjwEzhaU345MMS-19" target="voJJ7wPjwEzhaU345MMS-21">
<mxGeometry relative="1" as="geometry" />
</mxCell>
<mxCell id="voJJ7wPjwEzhaU345MMS-19" value="x += 1" style="rounded=0;whiteSpace=wrap;html=1;strokeWidth=1;fontSize=14;" vertex="1" parent="WIyWlLk6GJQsqaUBKTNV-1">
<mxGeometry x="465" y="190" width="110" height="50" as="geometry" />
</mxCell>
<mxCell id="voJJ7wPjwEzhaU345MMS-24" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;exitX=0;exitY=0.5;exitDx=0;exitDy=0;fontSize=14;entryX=0;entryY=0.5;entryDx=0;entryDy=0;" edge="1" parent="WIyWlLk6GJQsqaUBKTNV-1" source="voJJ7wPjwEzhaU345MMS-21" target="voJJ7wPjwEzhaU345MMS-15">
<mxGeometry relative="1" as="geometry">
<mxPoint x="380" y="480" as="targetPoint" />
<Array as="points">
<mxPoint x="450" y="480" />
<mxPoint x="380" y="480" />
<mxPoint x="380" y="135" />
</Array>
</mxGeometry>
</mxCell>
<mxCell id="voJJ7wPjwEzhaU345MMS-26" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;exitX=0.5;exitY=1;exitDx=0;exitDy=0;entryX=0.5;entryY=0;entryDx=0;entryDy=0;fontSize=14;" edge="1" parent="WIyWlLk6GJQsqaUBKTNV-1" source="voJJ7wPjwEzhaU345MMS-21" target="voJJ7wPjwEzhaU345MMS-22">
<mxGeometry relative="1" as="geometry" />
</mxCell>
<mxCell id="voJJ7wPjwEzhaU345MMS-21" value="x 對 i 取餘數<br>是否為 0 ?" style="rhombus;whiteSpace=wrap;html=1;strokeWidth=1;fontSize=14;" vertex="1" parent="WIyWlLk6GJQsqaUBKTNV-1">
<mxGeometry x="450" y="270" width="140" height="70" as="geometry" />
</mxCell>
<mxCell id="voJJ7wPjwEzhaU345MMS-27" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;exitX=0.5;exitY=1;exitDx=0;exitDy=0;entryX=0;entryY=0.5;entryDx=0;entryDy=0;fontSize=14;" edge="1" parent="WIyWlLk6GJQsqaUBKTNV-1" source="voJJ7wPjwEzhaU345MMS-22" target="voJJ7wPjwEzhaU345MMS-15">
<mxGeometry relative="1" as="geometry">
<Array as="points">
<mxPoint x="520" y="480" />
<mxPoint x="380" y="480" />
<mxPoint x="380" y="135" />
</Array>
</mxGeometry>
</mxCell>
<mxCell id="voJJ7wPjwEzhaU345MMS-22" value="ret++" style="rounded=0;whiteSpace=wrap;html=1;strokeWidth=1;fontSize=14;" vertex="1" parent="WIyWlLk6GJQsqaUBKTNV-1">
<mxGeometry x="465" y="380" width="110" height="50" as="geometry" />
</mxCell>
<mxCell id="voJJ7wPjwEzhaU345MMS-28" value="Yes" style="text;html=1;strokeColor=none;fillColor=none;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=0;fontSize=14;" vertex="1" parent="WIyWlLk6GJQsqaUBKTNV-1">
<mxGeometry x="520" y="340" width="40" height="20" as="geometry" />
</mxCell>
<mxCell id="voJJ7wPjwEzhaU345MMS-29" value="No" style="text;html=1;strokeColor=none;fillColor=none;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=0;fontSize=14;" vertex="1" parent="WIyWlLk6GJQsqaUBKTNV-1">
<mxGeometry x="414" y="325" width="40" height="20" as="geometry" />
</mxCell>
<mxCell id="voJJ7wPjwEzhaU345MMS-32" value="Yes" style="text;html=1;strokeColor=none;fillColor=none;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=0;fontSize=14;" vertex="1" parent="WIyWlLk6GJQsqaUBKTNV-1">
<mxGeometry x="520" y="165" width="40" height="20" as="geometry" />
</mxCell>
<mxCell id="voJJ7wPjwEzhaU345MMS-33" value="回傳 ret" style="rounded=1;whiteSpace=wrap;html=1;fontSize=13;glass=0;strokeWidth=3;shadow=0;" vertex="1" parent="WIyWlLk6GJQsqaUBKTNV-1">
<mxGeometry x="620" y="115" width="90" height="40" as="geometry" />
</mxCell>
</root>
</mxGraphModel>
</diagram>
</mxfile>