aboutsummaryrefslogtreecommitdiff
path: root/spec/outputs/unicode/goto.lua
blob: 8e2e5a6bc889a47a8fb79fb51766fd5c4148cdb2 (plain)
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
do
	local _u53d8_u91cfa = 0
	::_u5f00_u59cb::
	_u53d8_u91cfa = _u53d8_u91cfa + 1
	if _u53d8_u91cfa == 5 then
		goto _u7ed3_u675f
	end
	goto _u5f00_u59cb
	::_u7ed3_u675f::
end
do
	for _u8ba1_u6570z = 1, 10 do
		for _u8ba1_u6570y = 1, 10 do
			for _u8ba1_u6570x = 1, 10 do
				if _u8ba1_u6570x ^ 2 + _u8ba1_u6570y ^ 2 == _u8ba1_u6570z ^ 2 then
					_u6253_u5370('找到了毕达哥拉斯三元组:', _u8ba1_u6570x, _u8ba1_u6570y, _u8ba1_u6570z)
					goto _u5b8c_u6210
				end
			end
		end
	end
	::_u5b8c_u6210::
end
do
	for _u8ba1_u6570z = 1, 10 do
		for _u8ba1_u6570y = 1, 10 do
			for _u8ba1_u6570x = 1, 10 do
				if _u8ba1_u6570x ^ 2 + _u8ba1_u6570y ^ 2 == _u8ba1_u6570z ^ 2 then
					_u6253_u5370('找到了毕达哥拉斯三元组:', _u8ba1_u6570x, _u8ba1_u6570y, _u8ba1_u6570z)
					_u6253_u5370('now trying next z...')
					goto _u7ee7_u7eedz
				end
			end
		end
		::_u7ee7_u7eedz::
	end
end
do
	::_u91cd_u505a::
	for _u8ba1_u6570x = 1, 10 do
		for _u8ba1_u6570y = 1, 10 do
			if not _u51fd_u6570f(_u8ba1_u6570x, _u8ba1_u6570y) then
				goto _u7ee7_u7eed
			end
			if not _u51fd_u6570g(_u8ba1_u6570x, _u8ba1_u6570y) then
				goto _u8df3_u8fc7
			end
			if not _u51fd_u6570h(_u8ba1_u6570x, _u8ba1_u6570y) then
				goto _u91cd_u505a
			end
			::_u7ee7_u7eed::
		end
	end
	::_u8df3_u8fc7::
end
do
	local _list_0 = _u5217_u8868
	for _index_0 = 1, #_list_0 do
		local _u53d8_u91cf = _list_0[_index_0]
		if _u53d8_u91cf % 2 == 0 then
			_u6253_u5370('列表有偶数')
			goto _u6709
		end
	end
	_u6253_u5370('列表没偶数')
	::_u6709::
end