You are on page 1of 21

c

c
c

 c
 cc

 c c
  cc
 c cc c c

c
c
 cc
ccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc

c c
ccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc   !c
"#$#!!c
° 
cc
 
c  c
c
%c c &'c%c
(c c
c 
c  c

)c
 c )c*++c
)
)c,c (  c
c 
c  c ,c c
c
 c cc  c cc -c  .c
c
cc  c ,c
c
'c 'c c  ccc.c/- c

c
 c 
c
c

c  c cc
 c c c
'c c
c,c)(cc c 
 c c
c c,c  c
c
c '
'
) '
 cc
 c
c.c
 c c
c

c  c c
c ccc
c c c
c
 c
 ccc  c
'
) '
 cc
 c

cc c
c.cc
%c c (  c
c c c
c c c
cc
c

  c c c
c 
c  c c cc

)cc
  c,c
.c
c

c
 c* c
--c  
c  c
c
c
0 1  .2c
0 1   .2c
0 1)
 .2c
0 1   .2c
0 1 
.2c
0 1  .2c
0 1 .2c
0 1 .2c
0 1 ).2c
c
c 
c
3c
c' '4c

c5#6'c
5#64c
74c
 
c 4c
(  c 
 
c8 4c
(  c
( 
c8 4c
(  cc
3c
c ''' 4c
9:  *4c
)
; ';'c<==)<4c

 (c4c
 c 9>4 19?"4 ++c
3c
   4c
?'#' 8>4c

"4c
7c
 c 9>4 19?"4 ++c
3c
c
  4c
?'#' 8>4c

"4c
7c
 c 9>4 19?"4 ++c
3c
c
  >4c
?'#' 8>4c

"4c
7c
 c 9>4 19?"4 ++c
3c
c
  4c
?'#' 8>4c

"4c
7c
 c 9>4 19?"4 ++c
3c
c
  #4c
?'#' 8>4c

"4c
7c
 c 9>4 19?"4 ++c
3c
c
  4c
?'#' 8>4c

"4c
7c
 c 9>4 19?"4 ++c
3c
c
  ?4c
?'#' 8>4c

"4c
7c
)c4c
 )
4c
7c
c
--cccc ccc @AB*%CBcC@c°::c c --c
c
(  c
 
c8 c
3c
c
c) c9c4c
c) )c9c4c
c '4c
,) 1>c
3c
 11<>>>>>>>><4 c
) ++4c
7c
 4c
 <*D<4c
9:  *4c
)
; ';'<==)<4c

 (4c
 11 11 4c
 <*D<4c
 11<E CF *c : B<4c
) c9c4c
) )c9c4c
  4c
 11<cGGGc cH
cB ccccccccc0cEIccccccccGGGccc<4c
22 24c
 11<cGGGc c cB
cccc0cEIccccccccGGGccc<4c
22 24c
 11<cGGGc c*

) ccccccccc0cEIccccccccGGGccc<4c
22 2
4c
 11<cGGGc cE
cEccc0cEIccccccccGGGccc<4c
22 24c
 11<cGGGc c
cEccccccc0cEIccccccccGGGccc<4c
22 2 4c
   4c
c
7c
c
c
c
--c c @AB*%CBcC@c° c c --c
c
(  c
( 
c8 3c
c
c4c
c
 4c
@%D c84c
9 <
.J<'<
<4c
99BADD3c
 11<cGGGc@c c
 'cc
)
ccccGGGccc<4c
 11<cGGGcE c°cKc c* ccccccGGGccc<4c
)4c
7c
, ' I  c 
'>'4c
++4c
 4c
)  J#'>4c
--4c
 11<ccL cE c
cc
( cccc cccc<4c
)4c
7c
--c c @AB*%CBcC@c °:c°DDc c --c
c
(  c

 
c8 3c
@%D c84c
 4c
 4c
c ,9>''4c
9 <
.J<'<<4c
99BADD3c
 11<cGGGc@c c
 'cc
)
ccccccGGGccc<4c
 11<cGGGcE c°cKc c* cccccccccGGGccc<4c
)4c
7c
c
9) - I  c 
4c
)  J>'#4c
 11<cGGGc 
c  c
ccc99999ccccc<114c
,
 ' I  c 
'>'3c
 ,++4c
c
)  J>'>4c
 11<H
cB <4c
)  J>' ,4c
 11 24c
)  J>#'>4c
 11< cB
<4c
)  J>#' ,4c
 11 24c
)  J?'>4c
 11<*

) <4c
)  J?' ,4c
 11 2
4c
c
)  J'>4c
 11<E
E<4c
)  J"' ,4c
 11 24c
)  J"!'>4c
 11<
E<4c
)  JM' ,4c
 11 2 4c
c ,99#?c
3c
)  J>'#"4c
 11<E c°cKc cBJcE
)<4c
)4c
 ,9#4c
 4c
)  c4c
7c
7c
-- ++4c
 4c
)4c
c
c
7c
c
--c @AB*%CBcC@c ° */cc c --c
c
c
(  c 
 
c8 3c

c5#64c
c ,4c

c4c
c
3c
c
 4c
@%D c84c
9 <
.J<'<<4c
99BADDc
3c
 11<cGGGcL c@c c c@  ccccccccccGGG<4 c
 11<cGGGcE c°cK'cH
c cc* cGGG<4c
)4c
7c
 11< cB
c c 
ccNNNNc99999999cc<4c
224c
 4c
)  J>"'>#4c
 11<cGGGGcO
cOcL c   c c
)cGGGG<4c

#4c
 4c
, 4c
,
 ' I  c 
'>'3c
  2'993c
 ,++4c
)  J"'#4c
 11<H
B <4c
)  J"'?4c
 11 24c
)  J#'#4c
 11< B
<4c
)  J#'?4c
 11 24c
)  J?"'#4c
 11<*

) <4c
)  J?"'?4c
 11 2
4c
)  J"'#4c
 11<E
E<4c
)  J"'?4c
 11 24c
)  JM'#4c
 11<
E<4c
)  JM?'?4c
 11 2 4c
   4c
7c
c
7c
c
 4c
c
c
)  J>"'$4c
 11<: cL cO
c c
c°)
cL-Bcccc<4c
9)4c
7c
,99PP4c
7c
c
--c c @AB*%CBcC@c: D c°DDc c --c
c
c
c
(  c 
 
c8 c
3c

c5#64c
 4c
@%D c8'8 4c
9 <
.J<'<<4c
 9 < .J<'<,<4c
99BADDc
3c
)  J>"'>"4c
 11<@c c c
 cH
 <11 4c
 11<cc c c
c   cc c<4c
 11<E c°cK'cH
c cc* <4c
)4c
7c
 11< c
c c <4c
) 4c
  2'G9c
3c
 11<L c   c% c: <4c
7c
-8c c
3c
 11<  c c  <4c
)4c
78-c
   4c
, 4c
,
 ' I  c 
'>'99>c
3c
  2'G9c
, ' I  
'>' 4c
3c
 4c
  4c
 (<
.J<4c

< .J<'<
.J<4c
7c
7c
c
7c
c
--c c @AB*%CBcC@c: D cCB c *C :c c --c
c
(  c  
c8 c
3c

c5#64c

c4c
c
3c
@%D c8'8 4c
 4c
c
 4c
--
? >'''M"''4 c
)  J#"'4c
 11<cc cL c   c@ c: ccc<4c
9 <
.J<'<<4c
 9 < .J<'<,<4c
99BADDc
3c
 11<@c c  <4c
 11<E c°cK'cH
c cc* <4c
)4c
7c
)  J>?'!4c
 11<cGGG000c c
c c c999999<4c
) 4c
--  2'G9c
G 299c
3c
)  J?'>4c
 11<c   cB c@  <4c
c

4c
c
)  J>"'>#4c
 11<QQQQQQQQQQQQQQQQQQQE c°cKc c
* QQQQQQQQQQQQQQQQ<4c
c
7c
--c c  2'99c
c 299c
3c
)  J?'>4c
 11<ccL c   c% c:c<4c
c

4c
)  J>"'>#4c
 11<QQQQQQQQQQQQQQQQQQQE c°cKc c
* QQQQQQQQQQQQQQQQQ<4c
7c
, 4c
,
 ' I  c 
'>'99>c
3c
c  2'G9c
, ' I  c 
'>' 4c
7c
c
 4c
  4c
 (<
.J<4c

< .J<'<
.J<4c
c
c
)  J#'>"4c
 11<: cL cO
c c:c°)
cL-Bcc<4c
9)4c
7c
,99PP4c
)4c
7c
c
--@AB*%CBcC@cC:%@L--c
c
(  c  
c8 c
3c
cc
' 4c
@%D c8'8 4c
 4c
)  J#"'4c
 11< c   <c4c
)  J>?'!4c
 11<c0000 ccH
cBc c cc 0000c<4c
c
c
22
4c
9 <
.J<'<<4c
 9 < .J<'<,<4c
99BADD3c
 11<@cB cC<4c
 11<E c°cK'cH
c cc* <4c
)4c
7c
, 4c
 94c
,
 ' I  c 
'>'c
3c
 299
3c
 ++4c
)  J!'>#4c
 11< cB
cIcccccccc9c<4c
22 24c
)  J!'>4c
 11< cH
cBcIc9c<4c
22 24c
)  J!'>M4c
 11< c*

) ccccccccc9c<4c
22 2
4c
c
)  J!'>$4c
 11< cE
cEccc9c<4c
22 24c
   4c
)  J!'#4c
 11< c
cEccccccc9c<4c
--)  J!'?>4c
22 2 4c
7c
c
, ' I  c 
'>' 4c
7c
 99c
3c
)  J?'>4c
 11<c   c% cB c@  cc<4c
)  J?'>#4c

4c
 11<cE c°cKc c* c<4c
7c
 c
3c
 c4c
)  J?'>4c
 11<c   c c )c<4c
7c
 4c
  4c
 (<
.J<4c

< .J<'<
.J<4c

#4c
7c
(  c c
3c
c ''' 4c
9:  *4c
)
; ';'<==)<4c

 (4c
  !4c

)>'>'"'?4c
J !''"4c
  >4c
JJ#'>'<E CF *<4c
JJ#"'>!'<C@<4c
JJ>?'#?'< :%*°DcC <4c
J >''>4c
JJ?''<E c°cK'c c * <4c
)4c

 (4c
 )
4c
7c
(  c  3c
 4c
c ''' 4c
9:  *4c
)
; ';'<==)<4c
  >4c
  ?4c
JJ?''<E c°cK'c c
cE &<4c
)4c
 )
4c
7c
(  c
c
3c
c4c

c'
4c
c '4c
-- c4c
  4c

c
9:  *4c
)
; ';'<==)<4c

 (4c
  #"4c
  >4c
J ?''M4c
JJ>'#'< :%*°DcC <4c
J ?''4c
)  JM'#4c
JJ"!"'#'c<E<4c
JJ"!"'"'c< <4c
JJ"!"'$'c<C<4c
JJ"!"'>>'<F<4c
JJ"!"'>'< <4c
JJ"!"'>!'<*<4c
JJ"!"'#'<<4c
JJ"!"'#?'<c<4c
JJ"!"'#M'<c<4c
JJ"!"'#'<<4c
JJ"!"'?#'< <4c
JJ"!"'?"'<:4c
JJ"!"'?$'<%<4c
 11<========<4c
)  J>"'4c
 11< <4c
)  J>!'>4c
 11<cL cC cEI<4c
)  J>"'>>4c
 11< <4c
)  J#'>"4c
 11<E c
c c° cB,c   c<11 4c
)  J#'>M4c
 11<E cc c 
c°c   <11 4c
)  J#'>!4c
 11<E c c c:cCc   <11 4c
)  J#'>$4c
 11<E cc c:c°c   <11 4c
)  J#'>4c
 11<E cc c cc   <11 4c
)  J#'#4c
 11<E c c c
cc   <11 4c
)  J#'#>4c
 11<E cc c Jc@ ccO ,ccc<c11 4c
)  J?>'#?4c
 11<999999<4c
)  J?>'#"4c
 11<999999<4c
)  J?>'#4c
 11<R<4c
)  J?M'#4c
 11<R<4c
)  J??'#4c
22
4c
 )
4c
,c
c
3c

cP
Pc
cP°Pc

; 4c
 11<: cL cO
c c
(c%cL-BSSSSScc<4c
224c
c99PPRRc99PLP3 c
)  c
(c4c

(c

(; 4c
)  cc

4c
7c
 c
)  cJ4c

4c

cPPcccc
cP Pc


; 4c
)  cc

4c

4c

cPPcccccc
cPPc
 ; 4c
)  cc

4c

4c

cP Pccccc
cP:Pc
; 4c
)  cc

4c

4c

cPPcccccc
cPDPc

; 4c
)  cc

4c

4c

cP Pcccccc
cPPc

; 4c
)  cc

4c

cPPcccccc
cP Pc
c
J4c

c
 11<L cE cO )cK'cEIcE ccC c <11 4 c
 c4c
)  J>"'>4c
c
 11<L cE cO )cK'cEIcE ccC cK <4c

#4c
 c4c
)  c

4c
c
7c
J4c
)4c
c
7c
c
c
c
c
c
ý  ý
 

c
c  c,
c c c Ic c c c .c cc c(c 
c

c
c cc
c
cc c c c .c cc
ccc c  c
   c c c (c
c .cOc )ccc c  c
   'c c  c c )c
 c
c c
c)  . c
c
c
c
 

C
 c
 c 
 c c
c c
)
)c c
 c  .c°c  c
c,  cc
c )
c
c  c
c
) c
 c c    c
c

 'c,c
c  c  c c c

c c    c
c 
 . c
/
 
c
cE cA( c (  c ,
c  c
c c
 c

c ((cc
.c c
 c
 c


ý  


c
/'c
B>c 
c c c 
  c
B#c 
c c c 
 c

  ? 

???

/'c
?>c c cc c 
  c
?#c c cc 
 c
c

c
C
  c
 cT c  c
c
@   
  
 
  
 { 
 Struct 
 int 
 ,  
 char 
 [ 
 ] 
 } 
 void 
 ( 
 ) 
 * 
 DETECT 
 intigraph 
 & 
 ³ 
 : 
 Cleardevice 
 for 
  <= 
 ++ 
 setcolor 
 circle 
 Delay 
 getch 
 Closegraph 
 while 
 << 
 clrscr 
  System 
 cout 
 == 
 = 
 Setbkcolor 
 Endl 
 cin 
 -> 
 FILE 
 If 
  fopen 
 NULL 
 fclose 
 Fwrite 
 sizeof 
 Gotoxy  
 fread 
 goto 
 Do 
 rewind 
  Strcmp 
 stdin 
 Fflush 
 else 
 Outtextxy 
 settextstyle 
 Switch 
 case 
 Break 
 default 
  gets 
 Total 











! 

@  
  
 
  
  


 
  
  
   

 
  
  
  
  
  

! 

" 
 # 
 ## 
  
 $ 
  
  
   
  
 ! 
  
  
 % 
  
 % 
 & 
  
   
 '  





"
##

*  (c * c  c %%c *C*CCc %%c  c
c  c 
c
 , c c  c
 
c c  'c  'c
 c  c ,c 
)c
c ,c ,
c
( c
(.c*C*CCc%%c cc
 c
& cJ  c c c )
c
*C*CCc *C*CCc $>c  c   c c >$>.c %c     c c c c
  'c 
c c )c 
 c  c c c
 )c c  c c c
 &c 
)c
 c  )c   .c D  c c 
)c  'c  c c
  c
c 
 c c °
  c *   'c
c : )'c
 c E 

c  .c

*C*CCc%%c
cc  c cc  ,)c
& c   c 
  c

—c 
)c ( c c c 

c    c ( ()c
c ,
c
( c cc
—c )c &c ) c
 c   c
c
c
 c c
)c
 c  c c
—c : )c c c ) 
)c 
  c
 )c ,
c  'c  'c
 
'c 
c c
c
  c c
—c 
)c ,
c c
 c  c c

)c    c c
—c : )c ,c 
 c c
c ,
c  c  c ( 'c  'c 
'c c

cc
—c 
)c)
c ,
c( c    c,
c
 c c 'c
c
'c  'ccc
—c )c J c ( c 
) c  c  (c )
I
 P c ,
c


'c(
c 'c  'c  c
 'c  )'ccc
—c : )c ,c cc
c  c (c 
)'c c
c
c
 (  ccc %c*cc

c )
c*C*CCc c,
c c  cc :.cH
cH cc>$>'c

 c  c c ,


c ( c 
 c c c
.c %c  c  )c

c
 c
c 
'c ,
c ( c  c 
) c 


.c
 c 
) c   c
c  (c
,
c  c 

c ()c 
c
  )c c    
 c
 c
  4c
c)
c
 c
 c
c  )c J )c ,
c
 c  )c ,c   c  )c   c
,
c    4c
 c  )c
c c  c  c  )c
 c 

)c c
,
c ( c  c
c,
c c c
)cc ,
c . c

 c 
) c
 c  c )
c  c 
c
)c c ) 
c *C*CCc
 c 
.cc  c  cc c ,
c  c(cc  c c
c> .c °c (
c
 c
 cc  c  c c A* * 'c % c
c
A*c %('c
 c c *C*CCc %%c E &c °
c C)
I
  'c c  c  c
*C*CCc %%'c
c (  c  c  
 c  c )c c 
) c c
   
c ,
c ( c 
c 
c 
(c  c
 c c c
>! .c  c ,'c  ( c *C*CCc  c  ,c 
c  c
 c    
c
,
c c 
  c c
c
 c c . c

° ccB 
c

c )
c c  cc>$>c,ccc c
c c*C*CC.c
 c c
c
 c ( c cc c, c c c
c,  ccc )c

c h 
h 
.c c ,  c   c  c  c c 
c 
c
c c c
c 
 cc  
 cc J c cc ,
c
& c cc 'c
 cc c  c cc 
 c c ,cJ
c,c
c  c )( c c  
c c  .c B c  )'c c ,c  c
   c c
cc c  c,
c
c)(cc
c*C*CCc#..c
/ ,('c
c c   cc ,c c  )
c  c
 c cc
,
c
 c cc,c 'cc
c,
c
c
) c
 c*C*CCc%%.c cc
(  c   'cc )
c*C*CCc c ,
c

 c c   )
 c *C*CCc $>.c °c  c  c *C*CCc   c c
  c
 c 
c   c  c >"c c  c ,
c  c  ,c 
 c
*C*CCc$>.c c c c*C*CCc  c c>"c ,
 cc
 c,
c c ,c
 c*C*CCc%%.c

%c c J
)c
c c  c
c c  c
c  c ,c  c  c )c
   'c c
c
c ,c (  c  .c %c c c  Jc c   )c
*C*CCc  c  c
c   c H
'c % 
'c c :
 c  c  c

 4c C)
'c  
 'c c   c  c   
 'c c c
 c )c    c  c *C*CCc $>.c / ,('c c c  c 
 c
  c
c °
 c*   'c
c: )'c cE 
4c c
c c  c  c c 
 c E   c E *'c :( c
@Jc @D U'c °-  c   c  D'c 
c *   c
 °'c c E  c 
c E°'c c c  c )c    c  c
*C*CCc%%.c