-
Notifications
You must be signed in to change notification settings - Fork 0
/
test3.pns
77 lines (66 loc) · 2.92 KB
/
test3.pns
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
####### ULTIMATE TEST PINS 2k69 ######
# Inicializacija
# type_definition
typ x: integer;
typ y: string;
typ z: logical;
typ i: blablabla;
typ j: arr[10] arr[15] arr[20] blablabla;
# variable_definition
var k: string; var l: integer; var q: logical; var m: blabla; var n: arr[69] arr [420] string;
# Funkcije
# function_definition
fun firstfunction(x: integer, y: string, z: logical, n: arr[69] arr[420] string): integer =
( {for i = 1, i <= 100, {i = i + 1}:
{
while j > (-10): {
if j * (-10) + 20 + 30 + 10 - 40 / 50 % 100 -(-(-(-(-(+10))))) != 123 then
break
else
firstfunction(123, -234, +456)
}
# komentar komentar komentar ----------------------------------------------
} },
true & false | 10 | 'danes je lep dan''' & blablabla | firstfunction(blablabla, x + 10)
>=
+10 - -20 * !true - !false / (bla, ha, ne, da) - {x=10} + {y+x-z = 5 * true - false}
| a > b+3 | a < c-2 | a >= d*3 | a <= e/7 | a != f & a & b & a / a == 1 + 10 + 20 + 30 / 40 / 50 / 60
* 10 * 20 * 30 * 40 - 50 - 60 - 80 - 90 % 4 % 6 % 7 % 8 +++++++10,
{
if abc > abc - 10 + 10 * 10 / 10 - 10 + 10 + -10
then
print('danes je lep dan')
},
{
for i =
{
while j: (j < 10)
},
{
if a * 10 >= 100 then {a = a - 10} else break
},
{ for j = 1, j < 10, {j=j*2}: print('blablabla') }:
{blablablab[i+10-20*30][j-10-203] = null}
}
)
{ where fun secondfunction(x: integer):integer = 10+20|30-40&123==20 { where
fun thirdfunction(y: string):arr[10] string = ({10*20=xyz}) }
};
fun partition(stevila: arr[10] integer, begin: integer, end: integer): integer = (
{pivot = stevila[end]},
{i = (begin - 1)},
{ for j = begin, j < end, {j = j + 1}:
{ if stevila[j] <= pivot then
({i = i + 1},
{swapTemp = stevila[j]},
{stevila[i] = stevila[j]},
{stevila[j] = swampTemp})
}
},
({swapTemp = stevila[i+1]},
{stevila[i+1] = stevila[end]},
{stevila[end] = swapTemp}),
return(i + 1)
);
fun izpis(besedilo: string): void =
print('Tvoj program je prestal celoten preizkus!')