You are on page 1of 16

# .

1. : /.
2. :
.
3. :
.
4. :

:
1.
2.
3.
4.
( )

: .
.
:

: 27 DIV 5, 10, -3
: 15/5, -3,0, 2,5
: 1 , ,
:

: +, - , / , * , DIV, MOD
: <, > , <=,>=, <>, = ( )

: , ,

. .
.

.
- :
.

.
.
:
: 1, 2,.(
, )
: 1, 2,.
.

A36 DIV 8
3<5
C'1000'
D200/2
E (3<5) KAI
(7>10)
F1,5-0,5

1)
.

2
5*
CA+3
A(C+A)*2
BC+4*A
CB-2*C
'=' ,
'B=' ,B
'C=' ,C

2)

=(1,12*-5)*1,2+70 kgr cm

3)
.

1)
-4
_1

-2
+1
*+-1

_1
3)
-2 15
_2

z*

k/z
z2*k-x
zz-0,25
z
_2
4) ;
_
""
""

""

_
5)
.
6)
, , .
7)
.

.
.

1)
<>

<>
1
2
..

_

2)
<>
1

2
_

<>
1
2

1
2

3)

.

<1 >
1
_ <2>
2
_ <3>
3

1
1
2
2

-
1.
2.
.
3.
.(1=,2= ). 1 7
"

. .

.

,,C
=0
=0
C=0

C/B
=,
_

DB^2-4*A*C
D<0

1(-+_(D))/2*A
X2(--_(D))/2*A
1=,1,2=,2
_
_

1.
.
2.
(^2+3*+4)/[(-3)*(+1)]
3.
:
100 5 .
100 4 .
100 3,5 .
3 .

4. . ;

3
1
5
( mod 2 = 1) ( >= 2)
+2
( < )
^3

4*
_
_
mod
mod
mod
, ,

---------------------------------------------------------------------------------------5.
_

( <= 0)
_ (-1) *

_
_
_
_2
_3

( <= 2)
15
_ ( <= 10)
11
_ ( <= 20)
9

5
_

_
-----------------------------------------------------------------------------------------------------------------------

<= 10

10

<= 0
100
0
_
<= 5

5

.
) ) _ _ )
) / (loop=,)
,
, .
< >
1
2
..

: 1 ,2,
.

.
' .

, ( ).

.
,

.

.
, loop

.

.
i1
i<=10
i
ii+1
_

i0
i<10
ii+1
i
_

1 2 3 4 5 6 7 8 9 10

1 2 3 4 5 6 7 8 9 10

0 1
.

) _ / _
(loop=,)
, ,
. .
_
1
2
..

:
1 ,2,
.
.

.

.

, ( ).

.
, loop
.

.
i1
_
i
ii+1
_ i>10

i0
_
ii+1
i
_ i=10

/ _/ _
/ .
_ / _
.
/
_/ _ .
/ _ / _
_ / _
/ '
.

.
_
1
2

1
2
..

< >
1
2
..

/ _ / _

_
.
< >
1
2
..

<>
_
1
2

1. 900.000.
12%
11 .
2.

1.100.000.
5%
2.500.000. ;

3.
.
4. ,
1 .
5.

6. 2500 .
8 ,
2 ,
.

.

.
.
( )
. (
) .

.

: _[30]

.
, ,
/ , .

.

.

20 4 5

. ,
.

_

:PIN[20], I

!
1 20
PIN[]
_
!
1 20
PIN[]
_
_

:PIN[4,5], I, J

!
1 4
J 1 5
PIN[,J]
_
_
!
1 4
J 1 5
PIN[,J]
_
_
_

:PIN[20], I

!
1 20
PIN[]
_
!
1 20
PIN[]
_
!
S0
1 20
S S+PIN[I]
_

, S
_

:PIN[4,5], I, J

!
1 4
J 1 5
PIN[,J]
_
_
!
1 4
J 1 5
PIN[,J]
_
!
S0
1 20
J 1 5
SS+PIN[I,J]
_
_

, S
_

ELAX_MEG
!

:P[20], I, min,thesh
!
.
!
.
!
minpin[1]
thesh1
i 2 20
PIN[i]<min
MinPIN[i]
theshi
_
_

,min, ,thesh
ELAX_MEG

ELAX_MEG
!

## :P[4,5], I,j, min,thesh_g,thesh_s

!
.
!
.
!
minpin[1,1]
thesh_g1
thesh_s1
i 1 4
J 1 5
PIN[i,j]<min
MinPIN[I,j]
Thesh_gi
Thesh_sj
_
_

,min, ,thesh_g,
, thesh_s
ELAX_MEG

( bubble sort)

.
.

.
.

. ,

.
, .
N
.
..

: P[100], i, j, N, s

!
i 1

P[]
_
!
i 1 -1
j i+1 ME -1
P[j]<P[J-1] TOTE
!
S P[j]
S
P[j] P[j-1]
P[j-1] S
_
_
..

: key,P[100], i
:
.

i 1
(i<=100) (=)

P[i]=key

, i

_
ii+1
_
=
' '
i0
_
_

: key,P[100], I,
:
.

i 1 100
P[i]=key

, i

_
_
=
' '
i0
_
_

: key,P[100], I,
:
.

i 1 100
P[i]=key

_
_
=
' '

,
_
_

, .
.

.

.

(
) .

:

,
,

():

!

*
.
.

.

: , , ,

, ,
max(, , ) !

,
_
max(, , ):

:, , ,

>

. .
_
>

Max
_

() ,
,
.

()
( )

_

, .

50
.
.

: [50]

_()
= ,_
_
_()

: [50],,
1 50
[]
_
_
_()

: [50],, SUM
A
SUM0
1 50
SUM SUM + P[I]
_
_SUM/50
_