00
 
 0000}p . 3 1 0 01 2 . 5   0000
0K00
 
 000zvo;ubwy00000Qt  j0i0
 
 
 
 p . 3 1 0   1 2 . 5   0000
 
 
 
 00000000000000k0J0Q00  C o n s o l e . R e a d L i n e ( ) 0000n00F0k00wRW0_000000L0Rvk0`1X0_0KbkL0B00
 
 0W0K0W00C o n s o l e . R e a d L i n e ( ) 0000o0XSj00eQR_a0g0B00000000tPK00n06R_o0g0M0j0D0
 
 0]0S0g00B00K0X000S00L0wM0_00B000Y00
0h0D0F0[0W0f0J0M00_Bfk0Rvk0|Ts0QU000Nch0W0f000000_jL0cOU00f0D000
 
 000eQR0000n0d\O0On0SO0Bfn0L}Nj0i0n00UOK0L0wM0_0
0S0h000000n0zvuh0D0F00
 
 00000k0[W0f0Qt0[LY000n0000000000h0D0F00
 
  0; J a v a  j0i0g0o00000000h0D0D00C # n0fM|k0J0D0f000000000h0U00f0D00S0h0L0B000
 
 0C # g0o0;Nk0000000000000g000000qbF0L000000000000000g00000000(uD00S0h0g000000Qtn0[ňL0S0
 
 0OH0p00E n t e r 00NYn000n0eQR0sSBfk0SQ0S0000000g0M000
 
 
 
 p . 3 1 2   0000n00000000
 
 
 
 00000000000000g00000000(uD0f00000Qt0[ňY004XTn0O000tP	
 
  0`$  ;b0$Pj0W00_pej0W0n0000000[ Y00
 
  0a$  0000n0zvu0bF00000[Y00
 
  0b$  a$n0-Nk0`$0(uD000000000000[Y00
 
  0 0f_  p u b l i c   e v e n t   00000
T  0000
T; 
 
  0c$  a$n0-Nk000000zvuU0[0000000[0O n 0000
T
0h0D0F00000
T0chY	
 
  0d$  c$n0-Ng000000
T( ) ; 
00[LY00S0h0g000000zvuU0[000
 
  0_0`0W00000000000n0nPL0g0M0f0D0j0D0h0M0k0R\OY00n00Q00_00k000000
TL0n u l l g0o0j0D0K000000Y00S0h0
 
 00000000000000g00000000(uD0f00000Qt0[ňY004XTn0OM a i n ( ) tP	
 
  0`$  0000n0zvuk000R\OU0[0_0D000000W0f0J0O00
 
  0a$  m a i n ( ) n0-Ng000000n0zvu0bF0000n00000000ub0
 
  0b$  m a i n ( ) n0-Ng00a$. 000000000
0k0[W0f00000000000000n0f_g0`$0{v2
 
  0c$  m a i n ( ) n0-Ng00a$. O n 0000
T( ) 
000000|Ts0QY0S0h0g0000000zvuU0[00
 
 0j0J00
No0f(uk00!qtwt00000wS0U0[00ibk0j0c0f0D00
 
 
 
 p . 3 1 3   e v e n t 0 1 . c s 
 
 
 
 / / p . 3 1 3   e v e n t 0 1 . c s 
 
 u s i n g   S y s t e m ; 
 
 d e l e g a t e   v o i d   M y D e l e g a t e ( ) ;   / / 0000g0(uD00000000[ 
 
 c l a s s   M y E v e n t C l a s s   {   / / 0000n0zvu0bF0000
 
         p u b l i c   e v e n t   M y D e l e g a t e   e v e n t n a m e ;   / / 0000000000[( 000000)R(u) 
 
         p u b l i c   v o i d   O n E v e n t n a m e ( )   {   / / 00000zvuU0[000000
 
                 i f   ( e v e n t n a m e   ! =   n u l l )   {   / / 000000000L0nPnj00p0
 
                         e v e n t n a m e ( ) ;   / / 00000zvuU0[00
 
                 } 
 
         } 
 
 } 
 
 c l a s s   M y C l a s s   {   / / 0000g0|Ts0QU0000000`$0cd0000
 
         p u b l i c   v o i d   s h o w ( )   {   / / 0000g0|Ts0QU0000000`$
 
                 C o n s o l e . W r i t e L i n e ( " s h o w " ) ; 
 
         } 
 
 } 
 
 c l a s s   M y C l a s s 2   {   / / 0000g0|Ts0QU0000000a$0cd0000
 
         p u b l i c   v o i d   s h o w 2 ( ) {   / / 0000g0|Ts0QU0000000a$
 
                 C o n s o l e . W r i t e L i n e ( " s h o w 2 ! ! " ) ; 
 
         } 
 
 } 
 
 c l a s s   e v e n t 0 1   { 
 
         p u b l i c   s t a t i c   v o i d   M a i n ( )   { 
 
                 M y C l a s s   m c   =   n e w   M y C l a s s ( ) ;   / / 0000g0|Ts0QU0000000`$0cd0000
 
                 M y C l a s s 2   m c 2   =   n e w   M y C l a s s 2 ( ) ;   / / 0000g0|Ts0QU0000000a$0cd0000
 
                 M y E v e n t C l a s s   m y e v e n t   =   n e w   M y E v e n t C l a s s ( ) ;   / / 0000n0zvu0bF0000
 
                 m y e v e n t . e v e n t n a m e   + =   n e w   M y D e l e g a t e ( m c . s h o w ) ;   / / 0000g0|Ts0QU0000000`$0{v2
 
                 m y e v e n t . e v e n t n a m e   + =   n e w   M y D e l e g a t e ( m c 2 . s h o w 2 ) ;   / / 0000g0|Ts0QU0000000a$0{v2
 
                 m y e v e n t . O n E v e n t n a m e ( ) ;   / / 00000zvuU0[00
 
         } 
 
 } 
 
 
 
 0000op . 3 1 3   e v e n t 0 1 . c s 
 
 
 
 0m c . s h o w 0000h00m c 2 . s h o w 2 00000?S
T0000k0W0f00000_g0W00F00
 
 0S00k0000M y C l a s s 0M y C l a s s 2 o0
Nk0j000
 
 
 
 \ObO
 
 
 
 / / 0000op . 3 1 3   e v e n t 0 1 . c s 
 
 u s i n g   S y s t e m ; 
 
 d e l e g a t e   v o i d   M y D e l e g a t e ( ) ;   / / 0000g0(uD00000000[ 
 
 c l a s s   M y E v e n t C l a s s   {   / / 0000n0zvu0bF0000
 
         p u b l i c   e v e n t   M y D e l e g a t e   e v e n t n a m e ;   / / 0000000000[( 000000)R(u) 
 
         p u b l i c   v o i d   O n E v e n t n a m e ( )   {   / / 00000zvuU0[000000
 
                 i f   ( e v e n t n a m e   ! =   n u l l )   {   / / 000000000L0nPnj00p0
 
                         e v e n t n a m e ( ) ;   / / 00000zvuU0[00
 
                 } 
 
         } 
 
 } 
 
 / / c l a s s   M y C l a s s   {   / / 0NNJRd00000g0|Ts0QU0000000`$0cd0000
 
 / /         p u b l i c   v o i d   s h o w ( )   {   / / 0000g0|Ts0QU0000000`$
 
 / /                 C o n s o l e . W r i t e L i n e ( " s h o w " ) ; 
 
 / /         } 
 
 / / } 
 
 / / c l a s s   M y C l a s s 2   {   / / 0NNJRd00000g0|Ts0QU0000000a$0cd0000
 
 / /         p u b l i c   v o i d   s h o w 2 ( ) {   / / 0000g0|Ts0QU0000000a$
 
 / /                 C o n s o l e . W r i t e L i n e ( " s h o w 2 ! ! " ) ; 
 
 / /         } 
 
 / / } 
 
 c l a s s   e v e n t 0 1   { 
 
         p u b l i c   s t a t i c   v o i d   M a i n ( )   { 
 
                 / / M y C l a s s   m c   =   n e w   M y C l a s s ( ) ;   / / 0JRd00000g0|Ts0QU0000000`$0cd0000
 
                 / / M y C l a s s 2   m c 2   =   n e w   M y C l a s s 2 ( ) ;   / / 0JRd00000g0|Ts0QU0000000a$0cd0000
 
                 M y E v e n t C l a s s   m y e v e n t   =   n e w   M y E v e n t C l a s s ( ) ;   / / 0000n0zvu0bF0000
 
                 m y e v e n t . e v e n t n a m e   + =   ( )   = >   C o n s o l e . W r i t e L i n e ( " s h o w " ) ;   / / 0	Yf00000g0|Ts0QU0000000`$0{v2
 
                 m y e v e n t . e v e n t n a m e   + =   ( )   = >   C o n s o l e . W r i t e L i n e ( " s h o w 2 ! ! " ) ;   / / 0	Yf00000g0|Ts0QU0000000`$0{v2
 
                 m y e v e n t . O n E v e n t n a m e ( ) ;   / / 00000zvuU0[00
 
         } 
 
 } 
 
 
 
 p . 3 1 5   !|XSAhR{hV  e v e n t 0 2 . c s 000Wn0i SOh0]0n0000	
 
 
 
 0C # n0$PWo0i SOg0[U00f0D00p . 4 5 	
 
 0ȑh0W0f0o008^n0W
T0. N E T Wn0W
T( p . 4 2 ) k0Q萄vk0	YcW00S0n0
Tn0i SOh0W0f0(uD0f0D00
 
 0OH0p00i n t Wo0S y s t e m . I n t 3 2 Wk0	YcU000S y s t e m . I n t 3 2 i SOh0W0f0qb0000
 
 00c0f00i n t . P a r s e ( ) 0000( p . 4 5 ) 0S y s t e m . I n t 3 2 i SOn00000g0B000$PWn0Ti SOk0P a r s e ( ) 0000L0X[(WW0f0D000
 
 0j0J00000W. M a x V a l u e 0000W. M i n V a l u e ( p . 4 5 ) o0i SOk0+T~000[pe0
 
 0]0W0f00e v e n t 0 2 . c s g0(uD00  C h a r . I s D i g i t ( c h a r ) 0000o00c h a r WL0	YcU000S y s t e m . C h a r i SOk0+T~0000000g0B000. N E T Wg0hsY00h0  C h a r . I s D i g i t ( C h a r ) 0000  h0j000
 
 0C h a r . G e t N u m e r i c V a l u e ( c h a r ) 00000Tig00C h a r . G e t N u m e r i c V a l u e ( C h a r ) 0
 
 0j0J00G e t N u m e r i c V a l u e ( c h a r ) 0000o00d o u b l e . P a r s e ( " "   +   C h a r ) g0N(ug0M00L00d o u b l e . P a r s e o0	Yc
NBfk0pu8^B}NY000G e t N u m e r i c V a l u e ( c h a r ) o0- 1 . 0 0ԏY00
 
 
 
 p . 3 1 5   !|XSAhR{hV  e v e n t 0 2 . c s C o n s o l e K e y I n f o i SOh0]0n0000	
 
 
 
 0S y s t e m . C o n s o l e K e y I n f o o00bU00_000n0`1X0ԏY0_00n0000i h00O)Rj0000000cd0i SO0
 
 0C o n s o l e . R e a d k e y ( ) 0000n0;b0$PWL0C o n s o l e K e y I n f o i SOg00R e a d k e y ( ) 0000n0b o o l W_peh0W0f0t r u e 0!nY0h000`1X000000k0^h:yk0g0M000
 
 0p . 2 9 3 n0C o n s o l e . K e y A v a i l a b l e 00000L000eQRL0B00p0t r u e 0ԏY0n0g00S0n0Bfk0C o n s o l e . R e a d k e y ( ) 00000[LY00h0oD0
 
 0]0W0f00bU00_000n0`1Xo00C o n s o l e K e y I n f o i SOn0K e y C h a r 00000g0_0000;b0$Po0c h a r Wj0n0g00eW[00g0B00p0c h a r W0000g0kS0
 
 
 
 p . 3 1 5   e v e n t 0 2 . c s 
 
 
 
 / / p . 3 1 5   e v e n t 0 2 . c s 
 
 u s i n g   S y s t e m ; 
 
 d e l e g a t e   v o i d   H a n d l e r ( c h a r   c h ) ;   / / 00000n0[ ( ;b0$P!qW00_peo0eW[) 
 
 c l a s s   E v e n t C l a s s   {   / / 0000n0zvu0bF0000
 
         p u b l i c   e v e n t   H a n d l e r   K e y H i t ;   / / 00000000000000
TK e y H i t g0[
 
         p u b l i c   v o i d   O n K e y H i t ( c h a r   c h )   {   / / K e y H i t 00000zvuU0[000000
 
                 i f   ( K e y H i t   ! =   n u l l )   {   / / 000000000L0n u l l g0j0Q00p0
 
                         K e y H i t ( c h ) ;   / / 00000zvuU0[00
 
                 } 
 
         } 
 
 } 
 
 c l a s s   S h o w   {   / / 0000n0zvuk000[LW0_0D000000cd0000
 
         i n t   s u m   =   0 ;   / / T$P
 
         p u b l i c   v o i d   k e y s h o w ( c h a r   c h )   {   / / 0000n0zvuk000[LW0_0D00000
 
                 i f   ( C h a r . I s D i g i t ( c h ) )   {   / / eW[L01 0 2peW[( 0 ^9 ) n000L0bU00f0D0_00
 
                         i n t   a   =   ( i n t ) c h a r . G e t N u m e r i c V a l u e ( c h ) ;   / / eW[0[peS0tepeSY00
 
                         s u m   + =   a ;   / / 	YcP}g0T$Pk0W0S00
 
                         C o n s o l e . W r i t e L i n e ( " +   { 0 } " ,   a ) ;   / / 	YcP}g0h:y
 
                         C o n s o l e . W r i t e L i n e ( " =   { 0 } " ,   s u m ) ;   / / T$P0h:y
 
                 }   e l s e   i f   ( c h   = =   ' c ' )   {   / / 0c 
000L0bU00f0D0_00
 
                         s u m   =   0 ;   / / T$P0000
 
                         C o n s o l e . W r i t e L i n e ( " TL0000U00~0W0_0" ) ; 
 
                 }   e l s e   {   / / peW[00g00c 00g00j0Q00p0
 
                         r e t u r n ;   / / UO0W0j0D0
 
                 } 
 
         } 
 
 } 
 
 c l a s s   e v e n t 0 2   {   
 
         p u b l i c   s t a t i c   v o i d   M a i n ( )   { 
 
                 C o n s o l e K e y I n f o   c k i ;   / / 00`1Xn0000i j0i00cd0i SO
 
                 E v e n t C l a s s   e c   =   n e w   E v e n t C l a s s ( ) ;   / / 0000n0zvu0bF0000
 
                 S h o w   s   =   n e w   S h o w ( ) ;   / / 0000n0zvuk000[LW0_0D000000cd0000
 
                 e c . K e y H i t   + =   n e w   H a n d l e r ( s . k e y s h o w ) ;   / / 0000k000000h000000{v2
 
                 w h i l e   ( t r u e )   {   / / !qP000
 
                         i f   ( C o n s o l e . K e y A v a i l a b l e )   {   / / UOK000L0bU00f0D0_00
 
                                 c k i   =   C o n s o l e . R e a d K e y ( t r u e ) ;   / / ]0n0000_0
 
                                 i f   ( c k i . K e y C h a r   = =   ' x ' )   {   / / x 00g0B00p0
 
                                         b r e a k ;   / / 0000bQ00B}N	
 
                                 }   e l s e   {   / / x 00NYg0B00p0
 
                                         e c . O n K e y H i t ( c k i . K e y C h a r ) ;   / / 00000zvuU0[00
 
                                 } 
 
                         } 
 
                 } 
 
         } 
 
 } 
 
 
 
 0000op . 3 1 5   e v e n t 0 2 . c s 
 
 
 
 0p . 3 1 9 k0B00h0J000000_g0fM0cH00F0
 
 
 
 \ObO
 
 
 
 / / 0000op . 3 1 5   e v e n t 0 2 . c s 
 
 u s i n g   S y s t e m ; 
 
 d e l e g a t e   v o i d   H a n d l e r ( c h a r   c h ) ;   / / 00000n0[ ( ;b0$P!qW00_peo0eW[) 
 
 c l a s s   E v e n t C l a s s   {   / / 0000n0zvu0bF0000
 
         p u b l i c   e v e n t   H a n d l e r   K e y H i t ;   / / 00000000000000
TK e y H i t g0[
 
         p u b l i c   v o i d   O n K e y H i t ( c h a r   c h )   {   / / K e y H i t 00000zvuU0[000000
 
                 i f   ( K e y H i t   ! =   n u l l )   {   / / 000000000L0n u l l g0j0Q00p0
 
                         K e y H i t ( c h ) ;   / / 00000zvuU0[00
 
                 } 
 
         } 
 
 } 
 
 c l a s s   S h o w   {   / / 0000n0zvuk000[LW0_0D000000cd0000
 
         i n t   s u m   =   0 ;   / / T$P
 
         p u b l i c   v o i d   k e y s h o w ( c h a r   c h )   {   / / 0000n0zvuk000[LW0_0D00000
 
                 i f   ( C h a r . I s D i g i t ( c h ) )   {   / / eW[L01 0 2peW[( 0 ^9 ) n000L0bU00f0D0_00
 
                         i n t   a   =   ( i n t ) c h a r . G e t N u m e r i c V a l u e ( c h ) ;   / / eW[0[peS0tepeSY00
 
                         s u m   + =   a ;   / / 	YcP}g0T$Pk0W0S00
 
                         C o n s o l e . W r i t e L i n e ( " +   { 0 } " ,   a ) ;   / / 	YcP}g0h:y
 
                         C o n s o l e . W r i t e L i n e ( " =   { 0 } " ,   s u m ) ;   / / T$P0h:y
 
                 }   e l s e   i f   ( c h   = =   ' c ' )   {   / / 0c 
000L0bU00f0D0_00
 
                         s u m   =   0 ;   / / T$P0000
 
                         C o n s o l e . W r i t e L i n e ( " TL0000U00~0W0_0" ) ; 
 
                 }   e l s e   {   / / peW[00g00c 00g00j0Q00p0
 
                         r e t u r n ;   / / UO0W0j0D0
 
                 } 
 
         } 
 
 } 
 
 c l a s s   e v e n t 0 2   {   
 
         p u b l i c   s t a t i c   v o i d   M a i n ( )   { 
 
                 C o n s o l e K e y I n f o   c k i ;   / / 00`1Xn0000i j0i00cd0i SO
 
                 E v e n t C l a s s   e c   =   n e w   E v e n t C l a s s ( ) ;   / / 0000n0zvu0bF0000
 
                 S h o w   s   =   n e w   S h o w ( ) ;   / / 0000n0zvuk000[LW0_0D000000cd0000
 
                 e c . K e y H i t   + =   ( c )   = >   s . k e y s h o w ( c ) ;   / / 0	Yf00000k000000h000000{v2
 
                 w h i l e   ( t r u e )   {   / / !qP000
 
                         i f   ( C o n s o l e . K e y A v a i l a b l e )   {   / / UOK000L0bU00f0D0_00
 
                                 c k i   =   C o n s o l e . R e a d K e y ( t r u e ) ;   / / ]0n0000_0
 
                                 i f   ( c k i . K e y C h a r   = =   ' x ' )   {   / / x 00g0B00p0
 
                                         b r e a k ;   / / 0000bQ00B}N	
 
                                 }   e l s e   {   / / x 00NYg0B00p0
 
                                         e c . O n K e y H i t ( c k i . K e y C h a r ) ;   / / 00000zvuU0[00
 
                                 } 
 
                         } 
 
                 } 
 
         } 
 
 } 
 
   
 
 p . 3 2 0   }OUL  1   e x 1 2 0 1 . c s 
 
 
 
 0p . 3 0 8   l a m b d a 0 2 . c s   h0TX0Q[
 
 00c0f000000oh0W0f00d o u b l e Wn02 _pe0000]000n0]0ԏY00F0k0fM0cH00F0
 
 0j0J00]o00'YM0D0e  -   \U0D0e
0g0_0S0h0
 
 
 
 \ObO
 
 
 
 / / 0000op . 3 2 0   }OUL  1   e x 1 2 0 1 . c s 
 
 u s i n g   S y s t e m ; 
 
 d e l e g a t e   d o u b l e   M y D e l e g a t e ( d o u b l e   x ,   d o u b l e   y ) ;   / / 00000n0[ ( ;b0$P	g00_pe) 
 
 c l a s s   l a m b d a 0 2   { 
 
         p u b l i c   s t a t i c   v o i d   M a i n ( )   { 
 
                 M y D e l e g a t e   m d   =   ( x ,   y )   = >   {   r e t u r n   ( x   >   y )   ?   x   -   y   :   y   -   x ;   } ;   / / _pex 0y n0Wo0c[
N
 
                 C o n s o l e . W r i t e L i n e ( " 2 h03 n0]o0{ 0 } " ,   m d ( 2 ,   3 ) ) ;   / / 00000L}1ug0|Ts0QY0
 
                 C o n s o l e . W r i t e L i n e ( " 3 . 1 4 h02 . 2 n0]o0{ 0 } " ,   m d ( 3 . 1 4 ,   2 . 2 ) ) ;   / / 00000L}1ug0|Ts0QY0
 
         } 
 
 } 
 
 
 
 p . 3 2 0   }OUL  2   e x 1 2 0 2 . c s   000
 
 
 
 0p . 3 1 5   e v e n t 0 2 . c s 0Wk0Nn000000LJ0F0
 
 `$  00000[LW0_0P}g0r e t u r n g0M000F0k0000000zvuU0[000000n0;b0$PW0i n t k00_peW0i n t , i n t k0Y00
 
 a$  0c0f0000000zvuU0[00h0qQk00P}g0ԏY00F0k00r e t u r n   K e y H i t ( i n t , i n t ) ; 
0h0Y00
 
 b$  000000000L0n u l l n0Bfk0UO0ԏU0j0D0h0el000k0j00n0g00- 1 
00ԏY0h0oD0
 
 c$  S00k04OD0000000n0[ 00;b0$PB00( i n t ) 0_peB00( i n t , i n t ) 
0k0W00F0
 
 d$  0000n0zvuk000[LW0_0D0S0h0o00r e t u r n   x   +   y ; 
0k0g0M00n0g00S h o w 000o0
Nk0j00
 
 e$  k e y s h o w ( ) 0000g0Lc0f0D0_00eW[L01 0 2peW[( 0 ^9 ) n000L0bU00f0D0_00
00eW[0[peS0tepeSY00
0o00M a i n ( ) 0000g0LF0h0oD0
 
 f$  M a i n ( ) 0000g0o0000eQRVvn0$P0OcW0f0J0M00Vvn000eQRg0pe0!nY0b_g000000zvuU0[00
 
 g$  ]0W0f00P}g0h:yW0_0000000bQ0f0B}NY00h0oD0
 
 
 
 \ObO
 
 
 
 / / p . 3 2 0   }OUL  2   e x 1 2 0 2 . c s 
 
 u s i n g   S y s t e m ; 
 
 d e l e g a t e   i n t   H a n d l e r ( i n t   x ,   i n t   y ) ;   / / 0	Yf000000n0[ ( ;b0$P	g00_peo0tepe) 
 
 c l a s s   E v e n t C l a s s   {   / / 0000n0zvu0bF0000
 
         p u b l i c   e v e n t   H a n d l e r   K e y H i t ;   / / 00000000000000
TK e y H i t g0[
 
         p u b l i c   i n t   O n K e y H i t ( i n t   x ,   i n t   y )   {   / / 0	Yf0K e y H i t 00000zvuU0[000000
 
                 i f   ( K e y H i t   ! =   n u l l )   {   / / 000000000L0n u l l g0j0Q00p0
 
                         r e t u r n   K e y H i t ( x ,   y ) ;   / / 0	Yf000000zvuU0[00
 
                 }   e l s e   {   / / 0NNR0n u l l g0B00p0
 
                         r e t u r n   - 1 ;   / / 000n0$Ph0W0f0- 1 0ԏY0
 
                 } 
 
         } 
 
 } 
 
 c l a s s   S h o w   {   / / 0000n0zvuk000[LW0_0D000000cd0000
 
         i n t   s u m   =   0 ;   / / T$P
 
         p u b l i c   v o i d   k e y s h o w ( c h a r   c h )   {   / / 0000n0zvuk000[LW0_0D00000
 
                 i f   ( C h a r . I s D i g i t ( c h ) )   {   / / eW[L01 0 2peW[( 0 ^9 ) n000L0bU00f0D0_00
 
                         i n t   a   =   ( i n t ) c h a r . G e t N u m e r i c V a l u e ( c h ) ;   / / eW[0[peS0tepeSY00
 
                         s u m   + =   a ;   / / 	YcP}g0T$Pk0W0S00
 
                         C o n s o l e . W r i t e L i n e ( " +   { 0 } " ,   a ) ;   / / 	YcP}g0h:y
 
                         C o n s o l e . W r i t e L i n e ( " =   { 0 } " ,   s u m ) ;   / / T$P0h:y
 
                 }   e l s e   i f   ( c h   = =   ' c ' )   {   / / 0c 
000L0bU00f0D0_00
 
                         s u m   =   0 ;   / / T$P0000
 
                         C o n s o l e . W r i t e L i n e ( " TL0000U00~0W0_0" ) ; 
 
                 }   e l s e   {   / / peW[00g00c 00g00j0Q00p0
 
                         r e t u r n ;   / / UO0W0j0D0
 
                 } 
 
         } 
 
 } 
 
 c l a s s   e v e n t 0 2   {   
 
         p u b l i c   s t a t i c   v o i d   M a i n ( )   { 
 
                 C o n s o l e K e y I n f o   c k i ;   / / 00`1Xn0000i j0i00cd0i SO
 
                 E v e n t C l a s s   e c   =   n e w   E v e n t C l a s s ( ) ;   / / 0000n0zvu0bF0000
 
                 / / S h o w   s   =   n e w   S h o w ( ) ;   / / 0000n0zvuk000[LW0_0D000000cd0000
 
                 e c . K e y H i t   + =   ( x ,   y )   = >   {   r e t u r n   x   +   y ;   } ;   / / 0	Yf00000k000000h0Qt0{v2
 
                 i n t   l e f t   =   - 1 ;   / / 0R000eQRVvn0$P0OcY00	Ype
 
                 w h i l e   ( t r u e )   {   / / !qP000
 
                         i f   ( C o n s o l e . K e y A v a i l a b l e )   {   / / UOK000L0bU00f0D0_00
 
                                 c k i   =   C o n s o l e . R e a d K e y ( t r u e ) ;   / / ]0n0000_0
 
                                 c h a r   c h   =   c k i . K e y C h a r ;   / / 0R0bU00_000
T0S0QY0
 
                                 i f   ( C h a r . I s D i g i t ( c h ) )   {   / / 0yR0eW[L01 0 2peW[( 0 ^9 ) n000L0bU00f0D0_00
 
                                         i n t   a   =   ( i n t ) ( c h a r . G e t N u m e r i c V a l u e ( c h ) ) ;   / / 0yR0eW[0[peS0tepeSY00
 
                                         i f   ( l e f t   = =   - 1 )   {   / / 0NNR000eQRVv
 
                                                 l e f t   =   a ;   / / eQR$P0Oc
 
                                         } 
 
                                         e l s e   {   / / 00eQR2 Vv
 
                                                 i n t   s u m   =   e c . O n K e y H i t ( l e f t ,   a ) ;   / / 2 eQR$P0!nW0f000000zvuU0[00
 
                                                 C o n s o l e . W r i t e L i n e ( " { 0 }   +   { 1 }   =   { 2 } " ,   l e f t ,   a ,   s u m ) ; 
 
                                                 b r e a k ;   / / !qP0000bQ00
 
                                         } 
 
                                 } 
 
                         } 
 
                 } 
 
         } 
 
 } 
 
 
 
 ,{1 3 z  OY
 
 
 
 p . 3 2 1   OYQtn0Wy
 
 
 
 000000k00c0f0pu8^rKaL0zvuY00h00[LBf000
0h0W0f00zvuBfpg0pu8^B}NY000
 
 0S0n0pu8^rKa00OYE x c e p t i o n 	
0h0W0f00S000hY0000n0000000g0qbF0S0h0L0g0M00
 
 0S0n00000000SQ0Sc0f0QtY00ND}0L0OYQtg00OYQt0D}00S0h0g00[LBf000
00000000g0M000
 
 0OH0p00p . 3 2 2   e x c e p t i o n 0 1 . c s   n00F0k00d o u b l e . P a r s e ( ) 0000k0[pek0	Ycg0M0j0D0eW[R0!nY0h00
 
  0E x c e p t i o n 000n0>mu000g0B00F o r m a t E x c e p t i o n 000n0000000L0ubU000OYQtL0j0D0n0g0pu8^B}NY000
 
 0NNL0pu8^B}NBfn000000h0]0n0㉬
 
  00000U00f0D0j0D0OY:   S y s t e m . F o r m a t E x c e p t i o n :   eQReW[Rn0b__L0ckW0O0B00~0[000
 
  0!00000U00f0D0j0D0
0h0o0OYQtL0j0D0K0OYQt[ak0j0c0f0D0j0D0S0h00:yY0
 
  0!0S y s t e m . F o r m a t E x c e p t i o n 
0o0b__OY0hY0000
 
  0!0eQReW[Rn0b__L0ckW0O0B00~0[000
0o0S0n0000n0M e s s a g e 00000k0B00eW[R
 
       4X@b  S y s t e m . N u m b e r . P a r s e D o u b l e ( S t r i n g   v a l u e ,   N u m b e r S t y l e s   o p t i o n s ,   N u m b e r F o r m a t I n f o   n u m f m t ) 
 
       4X@b  S y s t e m . D o u b l e . P a r s e ( S t r i n g   s ) 
 
       4X@b  M y C l a s s . M a i n ( )   4X@b  F : \ h a 2 4 1 _ A k i b a C # \ P r o j e c t 1 \ P r o j e c t 1 \ e x c e p t i o n 0 1 . c s : L  9 
 
  0!NK00
Nk0TK0c0f0OYzvun0L}}0:yY00C # g0[k0i0F0qb00_0K0L00K00
 
  0! NjuNn0Lg00zvun0wVh0j0c0_0000
T. 0000
T  4X@b0000000
T: LjuS
0L0f:yU00f0D00
 
 
 
 0000op . 3 2 2   e x c e p t i o n 0 1 . c s 
 
 
 
 0	Ypea 0b 0i n t Wk0	YfW00F0
 
 0Y00h00S y s t e m . F o r m a t E x c e p t i o n ( b__OY) NYn0OY0fY0S0h0L0g0M00
 
  0`$0rR000pe
000rR0pe
0k0i n t Wn0 g'Y$P0H00$P00 g\$P0NV0$P0eQRW0_04XT
 
  0a$0rR0pe
0k0  0   0eQRW0_04XTd o u b l e Wn04XTo00"
0h0h:yU00pu8^B}NW0j0D0	
 
 
 
 \ObO
 
 
 
 / / 0000op . 3 2 2   e x c e p t i o n 0 1 . c s 
 
 u s i n g   S y s t e m ; 
 
 c l a s s   M y C l a s s 
 
 { 
 
         p u b l i c   s t a t i c   v o i d   M a i n ( ) 
 
         { 
 
                 C o n s o l e . W r i t e ( " rR000pe- - " ) ; 
 
                 s t r i n g   s t r A   =   C o n s o l e . R e a d L i n e ( ) ; 
 
                 i n t   a   =   i n t . P a r s e ( s t r A ) ;   / / 0	Yf0F o r m a t E x c e p t i o n 0O v e r f l o w E x c e p t i o n zvuS'`
 
                 C o n s o l e . W r i t e ( " rR0pe- - - " ) ; 
 
                 s t r i n g   s t r B   =   C o n s o l e . R e a d L i n e ( ) ; 
 
                 i n t   b   =   i n t . P a r s e ( s t r B ) ;   / / 0	Yf0F o r m a t E x c e p t i o n 0O v e r f l o w E x c e p t i o n zvuS'`
 
                 C o n s o l e . W r i t e L i n e ( " { 0 }      { 1 }   =   { 2 } " ,   a ,   b ,   a   /   b ) ;   / / D e v i d e B y Z e r o E x c e p t i o n zvuS'`
 
         } 
 
 } 
 
 
 
 0000}!kVNJTp . 3 2 3 0OYQtn0Wy( t r y 00000c a t c h 0000) 
0K00
 
 
 
 000zvo;ubwy00000Qt  j0i0
 
 
 
 0002 0   ;ubwy0Qc	0
 
 
 
 00000;ubh0000;ubh00000000;ubn00F0k00;ubL0y0	Y00S0h00;ubwyh0D0F0
 
 0;ubT0h0k0UF0000000(uaW0f0|Ts0QY0S0h00B00L0000000Qg00No0i0n0;ubj0n0K0
00	Ypeg0OcY00p00000k0g0M00
 
 0S0n0	Ype00000000000I{h0|Ts0000000Qg0qQ	gY00S0h0g00;ubwy00Y0O0g0M00
 
 00000000000k0(uD00$Po0RcW( p . 6 6 ) k0Y00h0asTL00K000Y0O0j00
 
 0i O
 
 c l a s s   000
T  :   F o r m   {   / / F o r m 0000}b
 
     e n u m   {   T I T L E ,   P L A Y ,   O V E R   } ;   / / 0000;ub0000;ub00000000;ub
 
     i n t   000000  =   T I T L E ; 
 
     ]0n0Nn0RgSQt0
 
     p r o t e c t e d   o v e r r i d e   v o i d   O n P a i n t ( P a i n t E v e n t A r g s   e )   {   / / c;uQtn0000000
 
         hQ;ubk0qQn0c;uQt
 
         000000L0T I T L E j00p00000;ub0c;u
 
         000000L0P L A Y j00p0000;ub0c;u
 
         000000L0O V E R j00p00000000;ub0c;u
 
     } 
 
     p u b l i c   s t a t i c   v o i d   M a i n ( )   {   / / [L(u0000
 
         
 
     } 
 
     000
T( )   {   / / 0000000
 
         
 
     } 
 
     00bW0NR0Bfk0[LU0000000  { 
 
         qQQt( E s c 00L0bW0NR000_00B}N) 
 
         000000L0T I T L E n0Bfk0E n t e r 0S p a c e 00L0bW0NR000_000000000P L A Y k0
 
         000000L0O V E R n0Bfk0E n t e r 00L0bW0NR000_000000000T I T L E 0P L A Y k0
 
     } 
 
 } 
 
 
 
 0002 1   ;ubQc;u0Qc	0
 
 
 
 000000tPg0;ub0fM0cH0f000]0n0~0~0g0o0[;ubk0o0S fW0j0D0
 
 0]0n0_000;ubQc;u00000k0O<Y00_L0B00O n P a i n t n0vc[Lo0
NS	
 
 0;ubQc;u00000k0O<Y00k0o0C o n t o l 000n0Yv0000I n v a l i d a t e 0_pej0W0g0|Ty0p00D00C o n t o l . 
0o0weuS	
 
 0f_I n v a l i d a t e ( ) ;   / / ;ubQc;u0O<
 
 
 
 o2 1   0000;ubn0h:yh0000;ubx0n0wy
 
 
 
 00002 0 0;ubwy
0n00i O
00[ňW0f00000;ubn0h:yh0000;ubx0n0wy0xW00F0
 
 00000;ubo0-N.Yk00G A M E 
00-N.YNk00H i t   E n t e r   K e y 
0h0iS_j00000g0h:y
 
 0000;ubo0-N.Yk00S T A R T 
0h0iS_j00000g0h:y
 
  0; 000v0_jSOj0i0n0c;uo0D0c0_00JRd
 
 0000000( 00000r e t u r n ) L0bU00_000000;ubk0wyY00
 
 0S0n0Bf0;ubL000d0O0L00[Qo0!kn0000g0qbF0
 
 
 
 \ObO
 
 
 
 / / o2 1   0000;ubn0h:yh0000;ubx0n0wy
 
 u s i n g   S y s t e m ;   / / C # jn000(u
 
 u s i n g   S y s t e m . W i n d o w s . F o r m s ;   / / A p p l i c a t i o n 0F o r m 000(u
 
 u s i n g   S y s t e m . D r a w i n g ;   / / S i z e 0G r a p h i c s 0I m a g e 0P e n 0000C o l o r i SO(u
 
 c l a s s   P r o g r a m   :   F o r m   {   / / F o r m 000n0>mu000
 
         e n u m   m o d e   {   T I T L E ,   P L A Y ,   O V E R   } ;   / / 0000;ub0000;ub00000000;ub
 
         m o d e   s c e n e   =   m o d e . T I T L E ;   / / 00000000;ubh0Y00
 
         I m a g e   b a c k i ;   / / ;uP0000(u	Ype
 
         p r o t e c t e d   o v e r r i d e   v o i d   O n P a i n t ( P a i n t E v e n t A r g s   e )   {   / / c;uQtn0000000
 
                 / / hQ;ubk0qQn0c;uQt
 
                 b a s e . O n P a i n t ( e ) ;   / / CQn00000n0Q[0|Ts0QY0
 
                 e . G r a p h i c s . D r a w I m a g e ( b a c k i ,   0 ,   0 ) ;   / / ;uP00000]
Nk0Mn
 
                 F o n t   f m 2 4   =   n e w   F o n t ( " 0000" ,   2 4 ,   F o n t S t y l e . B o l d ) ;   / / 00000ub
 
                 B r u s h   b c y a n   =   n e w   S o l i d B r u s h ( C o l o r . C y a n ) ;   / / 000rn000000000ub
 
                 s w i t c h   ( s c e n e )   {   / / 000k000R\
 
                 c a s e   m o d e . T I T L E :     / / 0000;ub
 
                         e . G r a p h i c s . D r a w S t r i n g ( " G A M E " ,   f m 2 4 ,   b c y a n ,   2 5 0 ,   2 0 0 ) ;   / / eW[R0c;u
 
                         e . G r a p h i c s . D r a w S t r i n g ( " H i t   E n t e r   K e y " ,   f m 2 4 ,   b c y a n ,   2 0 0 ,   4 0 0 ) ;   / / eW[R0c;u
 
                         b r e a k ; 
 
                 c a s e   m o d e . P L A Y :     / / 000;ub
 
                         e . G r a p h i c s . D r a w S t r i n g ( " S T A R T " ,   f m 2 4 ,   b c y a n ,   2 5 0 ,   2 0 0 ) ;   / / eW[R0c;u
 
                         b r e a k ; 
 
                 } 
 
         } 
 
         p u b l i c   P r o g r a m ( )   {   / / 0000000
 
                 t r y   {   / / OYQt[a
 
                         b a c k i   =   I m a g e . F r o m F i l e ( " b a c k b 2 . b m p " ) ;   / / ̀of;uP0000000
 
                 }   c a t c h   ( E x c e p t i o n   e )   {   / / OYQtQ[
 
                         M e s s a g e B o x . S h o w ( e . T o S t r i n g ( ) ) ;   / / Q[0000000000k0h:y
 
                 } 
 
                 K e y D o w n   + =   n e w   K e y E v e n t H a n d l e r ( O n K e y D o w n ) ;   / / 00bW0NR0Bfn000000{v2
 
         } 
 
         v o i d   O n K e y D o w n ( o b j e c t   o ,   K e y E v e n t A r g s   e ) {   / / 00bW0NR0Bfk0|Tp0000000
 
                 i f   ( e . K e y C o d e . T o S t r i n g ( )   = =   " E s c a p e " )   {   / / bU00_000n00000eW[RSW0_00E s c a p e 
 
                         C l o s e ( ) ;   / / 0000000000000B}N
 
                 } 
 
                 i f   ( e . K e y C o d e . T o S t r i n g ( )   = =   " R e t u r n " )   {   / / bU00_000n00000eW[RSW0_00R e t u r n 
 
                         s c e n e   =   m o d e . P L A Y ;   / / 0000000;ubh0Y00
 
                 } 
 
                 I n v a l i d a t e ( ) ;   / / ;ubQc;u0O<
 
         } 
 
         s t a t i c   v o i d   M a i n ( )   {   / / [L(u0000( p u b l i c o0j0O0f0O K ) 
 
                 P r o g r a m   f   =   n e w   P r o g r a m ( ) ;   / / ꁯ000n00000000ub
 
                 f . T e x t   =   " G a m e " ;   / / F o r m 
T0-[
 
                 f . S t a r t P o s i t i o n   =   F o r m S t a r t P o s i t i o n . M a n u a l ;   / / 0KbR-[
00-[
 
                 P o i n t   p   =   n e w   P o i n t ( 3 0 0 , 0 ) ;   / / X ^jh0Y ^jn0P o i n t 0000000ub
 
                 f . L o c a t i o n   =   p ;   / / 00000000000g0RgMOn0-[
 
                 f . F o r m B o r d e r S t y l e   =   F o r m B o r d e r S t y l e . F i x e d S i n g l e ;   / / 0000000n0V[S
 
                 f . C o n t r o l B o x   =   f a l s e ;   / / 000000000n0^h:y
 
                 f . C l i e n t S i z e   =   n e w   S i z e ( 6 4 0 ,   4 8 0 ) ;   / / 000000000n0E^h0ؚU00c[
 
                 A p p l i c a t i o n . R u n ( f ) ;   / / ubnn00000000[L
 
         } 
 
 } 
 
 
 
 0002 2   0000Qt
 
 
 
 0;ub0Rvk0	YfW0_000 N[BfJ0M0k0UOK00LD0_0D04XT000000(uD00S0h0L0Qeg0
 
 00000o00S y s t e m . W i n d o w s . F o r m s . T i m e r 000n0000000000000g0ubg0M00
 
 0S0n0T i c k 0000k000000k0|Ts0QW0f02kW0D000000{v2Y00
 
 0{v2k0o00E v e n t H a n d l e r 000000(uD00
 
  0O
 
  0T i m e r   t   =   n e w   T i m e r ( ) ; 
 
  0t . T i c k   + =   n e w   E v e n t H a n d l e r ( 0000k0|Ts0QW0f02kW0D00000
T) ; 
 
 0]0W0f0000000000000I n t e r v a l k00R\O000yg0c[Y00
 
  0Ot . I n t e r v a l   =   2 0 ; 
 
 0]00K0000000000000S t a r t ( ) 0|Tv0S0h0g00000L0R\OY00
 
 0j0J000000k0|Ts0QW0f02kW0D00000o00;b0$PWo0v o i d 0_peWo0( o b j e c t ,   E v e n t A r g s ) h0Y00S0h0
 
  0;   8^00000Qg0S0n0_pe0(uD00S0h0o0j0D0L0c[o0_
 
 
 
 o2 2   ;ubk0ype0h:y
 
 
 
 0wRh0TBfk0000001 0 0 0 00yg0wRW00;ub]
Nk0L}Nype0h:yW00F0
 
 0j0J000000K00|Ts0QU0000000k0J0D0f000I n v a l i d a t e ( ) ;   / / ;ubQc;u0O<
0L0_k0j00
 
 ;   r^n0a00d0M0L0wS00S'`L0B00L00!kn0000g0[QY00
 
 
 
 \ObO
 
 
 
 / / o2 2   ;ubk0ype0h:y
 
 u s i n g   S y s t e m ;   / / C # jn000(u
 
 u s i n g   S y s t e m . W i n d o w s . F o r m s ;   / / A p p l i c a t i o n 0F o r m 000(u
 
 u s i n g   S y s t e m . D r a w i n g ;   / / S i z e 0G r a p h i c s 0I m a g e 0P e n 0000C o l o r i SO(u
 
 c l a s s   P r o g r a m   :   F o r m   {   / / F o r m 000n0>mu000
 
         e n u m   m o d e   {   T I T L E ,   P L A Y ,   O V E R   } ;   / / 0000;ub0000;ub00000000;ub
 
         m o d e   s c e n e   =   m o d e . T I T L E ;   / / 00000000;ubh0Y00
 
         I m a g e   b a c k i ;   / / ;uP0000(u	Ype
 
         T i m e r   t   =   n e w   T i m e r ( ) ;   / / 0R000000ub
 
         i n t   s e c   =   0 ;   / / 0R0L}Nype
 
         p r o t e c t e d   o v e r r i d e   v o i d   O n P a i n t ( P a i n t E v e n t A r g s   e )   {   / / c;uQtn0000000
 
                 / / hQ;ubk0qQn0c;uQt
 
                 b a s e . O n P a i n t ( e ) ;   / / CQn00000n0Q[0|Ts0QY0
 
                 e . G r a p h i c s . D r a w I m a g e ( b a c k i ,   0 ,   0 ) ;   / / ;uP00000]
Nk0Mn
 
                 F o n t   f m 2 4   =   n e w   F o n t ( " 0000" ,   2 4 ,   F o n t S t y l e . B o l d ) ;   / / 00000ub
 
                 B r u s h   b c y a n   =   n e w   S o l i d B r u s h ( C o l o r . C y a n ) ;   / / 000rn000000000ub
 
                 s w i t c h   ( s c e n e )   {   / / 000k000R\
 
                 c a s e   m o d e . T I T L E :     / / 0000;ub
 
                         e . G r a p h i c s . D r a w S t r i n g ( " G A M E " ,   f m 2 4 ,   b c y a n ,   2 5 0 ,   2 0 0 ) ;   / / eW[R0c;u
 
                         e . G r a p h i c s . D r a w S t r i n g ( " H i t   E n t e r   K e y " ,   f m 2 4 ,   b c y a n ,   2 0 0 ,   4 0 0 ) ;   / / eW[R0c;u
 
                         b r e a k ; 
 
                 c a s e   m o d e . P L A Y :     / / 0000;ub
 
                         e . G r a p h i c s . D r a w S t r i n g ( " S T A R T " ,   f m 2 4 ,   b c y a n ,   2 5 0 ,   2 0 0 ) ;   / / eW[R0c;u
 
                         b r e a k ; 
 
                 } 
 
                 e . G r a p h i c s . D r a w S t r i n g ( " "   +   s e c   ,   f m 2 4 ,   b c y a n ,   0 ,   0 ) ;   / / 0R0L}Nype0c;u
 
         } 
 
         p u b l i c   P r o g r a m ( )   {   / / 0000000
 
                 t r y   {   / / OYQt[a
 
                         b a c k i   =   I m a g e . F r o m F i l e ( " b a c k b 2 . b m p " ) ;   / / ̀of;uP0000000
 
                 }   c a t c h   ( E x c e p t i o n   e )   {   / / OYQtQ[
 
                         M e s s a g e B o x . S h o w ( e . T o S t r i n g ( ) ) ;   / / Q[0000000000k0h:y
 
                 } 
 
                 K e y D o w n   + =   n e w   K e y E v e n t H a n d l e r ( O n K e y D o w n ) ;   / / 00bW0NR0Bfn000000{v2
 
                 t . T i c k   + =   n e w   E v e n t H a n d l e r ( O n T i m e r ) ;   / / 0R000000000Bfn000000{v2
 
                 t . I n t e r v a l   =   1 0 0 0 ;   / / 0R00000R\O01 0 0 0 00yc[
 
                 t . S t a r t ( ) ;   / / 0R00000Y
 
         } 
 
         v o i d   O n K e y D o w n ( o b j e c t   o ,   K e y E v e n t A r g s   e ) {   / / 00bW0NR0Bfk0|Tp0000000
 
                 i f   ( e . K e y C o d e . T o S t r i n g ( )   = =   " E s c a p e " )   {   / / bU00_000n00000eW[RSW0_00E s c a p e 
 
                         C l o s e ( ) ;   / / 0000000000000B}N
 
                 } 
 
                 i f   ( e . K e y C o d e . T o S t r i n g ( )   = =   " R e t u r n " )   {   / / bU00_000n00000eW[RSW0_00R e t u r n 
 
                         s c e n e   =   m o d e . P L A Y ;   / / 0000000;ubh0Y00
 
                 } 
 
                 I n v a l i d a t e ( ) ;   / / ;ubQc;u0O<
 
         } 
 
         v o i d   O n T i m e r ( o b j e c t   o ,   E v e n t A r g s   e ) {   / / 0R000000000Bfk0|Tp0000000
 
                 s e c + + ;   / / 0R0L}Nype0000000
 
                 I n v a l i d a t e ( ) ;   / / 0R0;ubQc;u0O<
 
         } 
 
         s t a t i c   v o i d   M a i n ( )   {   / / [L(u0000( p u b l i c o0j0O0f0O K ) 
 
                 P r o g r a m   f   =   n e w   P r o g r a m ( ) ;   / / ꁯ000n00000000ub
 
                 f . T e x t   =   " G a m e " ;   / / F o r m 
T0-[
 
                 f . S t a r t P o s i t i o n   =   F o r m S t a r t P o s i t i o n . M a n u a l ;   / / 0KbR-[
00-[
 
                 P o i n t   p   =   n e w   P o i n t ( 3 0 0 , 0 ) ;   / / X ^jh0Y ^jn0P o i n t 0000000ub
 
                 f . L o c a t i o n   =   p ;   / / 00000000000g0RgMOn0-[
 
                 f . F o r m B o r d e r S t y l e   =   F o r m B o r d e r S t y l e . F i x e d S i n g l e ;   / / 0000000n0V[S
 
                 f . C o n t r o l B o x   =   f a l s e ;   / / 000000000n0^h:y
 
                 f . C l i e n t S i z e   =   n e w   S i z e ( 6 4 0 ,   4 8 0 ) ;   / / 000000000n0E^h0ؚU00c[
 
                 A p p l i c a t i o n . R u n ( f ) ;   / / ubnn00000000[L
 
         } 
 
 } 
 
 
 
 0002 3   0000000000
 
 
 
 0;ubk0RM0L0B0000000000g0o00;ubn0fM0cH0n000000n0Z00k00000d0M0L0wM00
 
 0S0002P0k0o00;uP0000͑SW00c;u0B}H0_0;uP0000h:y(un0;uP000k0 Nlk0ؚY00
 
 0S0n0ND}000000000000h0D0F0
 
 0C # n0. N E T 00000004 . 6 NMn0G D I + g0o0sLn0V i s u a l S t u d i o g0o0	0
 
  0S y s t e m . W i n d o w s . F o r m s . F o r m 000n0D o u b l e B u f f e r e d 000000t r u e k0Y00p0oD0
 
 
 
 o2 3   000;ubk0ype0h:y
 
 
 
 0wRh0TBfg0o0j0O00000;ubx0n0wyBfk000000wRW00;ub]
Nk0L}Nype0h:yW00F0
 
 00000000000g0;ubn0a00d0M0k0[QW00F0
 
 
 
 \ObO
 
 
 
 / / o2 3   000;ubk0ype0h:y
 
 u s i n g   S y s t e m ;   / / C # jn000(u
 
 u s i n g   S y s t e m . W i n d o w s . F o r m s ;   / / A p p l i c a t i o n 0F o r m 000(u
 
 u s i n g   S y s t e m . D r a w i n g ;   / / S i z e 0G r a p h i c s 0I m a g e 0P e n 0000C o l o r i SO(u
 
 c l a s s   P r o g r a m   :   F o r m   {   / / F o r m 000n0>mu000
 
         e n u m   m o d e   {   T I T L E ,   P L A Y ,   O V E R   } ;   / / 0000;ub0000;ub00000000;ub
 
         m o d e   s c e n e   =   m o d e . T I T L E ;   / / 00000000;ubh0Y00
 
         I m a g e   b a c k i ;   / / ;uP0000(u	Ype
 
         T i m e r   t   =   n e w   T i m e r ( ) ;   / / 00000ub
 
         i n t   s e c   =   0 ;   / / L}Nype
 
         p r o t e c t e d   o v e r r i d e   v o i d   O n P a i n t ( P a i n t E v e n t A r g s   e )   {   / / c;uQtn0000000
 
                 / / hQ;ubk0qQn0c;uQt
 
                 b a s e . O n P a i n t ( e ) ;   / / CQn00000n0Q[0|Ts0QY0
 
                 e . G r a p h i c s . D r a w I m a g e ( b a c k i ,   0 ,   0 ) ;   / / ;uP00000]
Nk0Mn
 
                 F o n t   f m 2 4   =   n e w   F o n t ( " 0000" ,   2 4 ,   F o n t S t y l e . B o l d ) ;   / / 00000ub
 
                 B r u s h   b c y a n   =   n e w   S o l i d B r u s h ( C o l o r . C y a n ) ;   / / 000rn000000000ub
 
                 s w i t c h   ( s c e n e )   {   / / 000k000R\
 
                 c a s e   m o d e . T I T L E :   / / 0000;ub
 
                         e . G r a p h i c s . D r a w S t r i n g ( " G A M E " ,   f m 2 4 ,   b c y a n ,   2 5 0 ,   2 0 0 ) ;   / / eW[R0c;u
 
                         e . G r a p h i c s . D r a w S t r i n g ( " H i t   E n t e r   K e y " ,   f m 2 4 ,   b c y a n ,   2 0 0 ,   4 0 0 ) ;   / / eW[R0c;u
 
                         b r e a k ; 
 
                 c a s e   m o d e . P L A Y :   / / 000;ub
 
                         e . G r a p h i c s . D r a w S t r i n g ( " S T A R T " ,   f m 2 4 ,   b c y a n ,   2 5 0 ,   2 0 0 ) ;   / / eW[R0c;u
 
                         e . G r a p h i c s . D r a w S t r i n g ( " "   +   s e c   ,   f m 2 4 ,   b c y a n ,   0 ,   0 ) ;   / / 0yR0L}Nype0c;u
 
                         b r e a k ; 
 
                 } 
 
         } 
 
         p u b l i c   P r o g r a m ( )   {   / / 0000000
 
                 D o u b l e B u f f e r e d   =   t r u e ;   / / 0R000000000000LF0
 
                 t r y   {   / / OYQt[a
 
                         b a c k i   =   I m a g e . F r o m F i l e ( " b a c k b 2 . b m p " ) ;   / / ̀of;uP0000000
 
                 }   c a t c h   ( E x c e p t i o n   e )   {   / / OYQtQ[
 
                         M e s s a g e B o x . S h o w ( e . T o S t r i n g ( ) ) ;   / / Q[0000000000k0h:y
 
                 } 
 
                 K e y D o w n   + =   n e w   K e y E v e n t H a n d l e r ( O n K e y D o w n ) ;   / / 00bW0NR0Bfn000000{v2
 
                 t . T i c k   + =   n e w   E v e n t H a n d l e r ( O n T i m e r ) ;   / / 00000000Bfn000000{v2
 
                 t . I n t e r v a l   =   1 0 0 0 ;   / / 0000R\O01 0 0 0 00yc[
 
         } 
 
         v o i d   O n K e y D o w n ( o b j e c t   o ,   K e y E v e n t A r g s   e ) {   / / 00bW0NR0Bfk0|Tp0000000
 
                 i f   ( e . K e y C o d e . T o S t r i n g ( )   = =   " E s c a p e " )   {   / / bU00_000n00000eW[RSW0_00E s c a p e 
 
                         C l o s e ( ) ;   / / 0000000000000B}N
 
                 } 
 
                 i f   ( e . K e y C o d e . T o S t r i n g ( )   = =   " R e t u r n " )   {   / / bU00_000n00000eW[RSW0_00R e t u r n 
 
                         s c e n e   =   m o d e . P L A Y ;   / / 0000000;ubh0Y00
 
                         s e c   =   0 ;   / / 0R0L}Nype0000
 
                         t . S t a r t ( ) ;   / / 0yR00000Y
 
                 } 
 
                 I n v a l i d a t e ( ) ;   / / ;ubQc;u0O<
 
         } 
 
         v o i d   O n T i m e r ( o b j e c t   o ,   E v e n t A r g s   e ) {   / / 00000000Bfk0|Tp0000000
 
                 s e c + + ;   / / L}Nype0000000
 
                 I n v a l i d a t e ( ) ;   / / ;ubQc;u0O<
 
         } 
 
         s t a t i c   v o i d   M a i n ( )   {   / / [L(u0000( p u b l i c o0j0O0f0O K ) 
 
                 P r o g r a m   f   =   n e w   P r o g r a m ( ) ;   / / ꁯ000n00000000ub
 
                 f . T e x t   =   " G a m e " ;   / / F o r m 
T0-[
 
                 f . S t a r t P o s i t i o n   =   F o r m S t a r t P o s i t i o n . M a n u a l ;   / / 0KbR-[
00-[
 
                 P o i n t   p   =   n e w   P o i n t ( 3 0 0 , 0 ) ;   / / X ^jh0Y ^jn0P o i n t 0000000ub
 
                 f . L o c a t i o n   =   p ;   / / 00000000000g0RgMOn0-[
 
                 f . F o r m B o r d e r S t y l e   =   F o r m B o r d e r S t y l e . F i x e d S i n g l e ;   / / 0000000n0V[S
 
                 f . C o n t r o l B o x   =   f a l s e ;   / / 000000000n0^h:y
 
                 f . C l i e n t S i z e   =   n e w   S i z e ( 6 4 0 ,   4 8 0 ) ;   / / 000000000n0E^h0ؚU00c[
 
                 A p p l i c a t i o n . R u n ( f ) ;   / / ubnn00000000[L
 
         } 
 
 } 
 
 
 
 0002 4   ̀of;uPn000000
 
 
 
 0̀of;uP0g(uaW0f00gvn0c;uYMOn0\W0Z0d0Z00W00zzD0_0Rk00F0g0d0j0L000F0k0c;uY00p00̀of;uPn000000L0S
 
 0j0J00C # n0G D I + g0o0c;uMOn0:yY0^j0n0pe0c;u{VYk0g0M000S00k0000;uPn0 N萒0h:yY00S0h0L0S
 
 0;uPhQSOL0c;u{Vn0Yk0j0c0_000c;u[aK00YY0K00c;uMOn0	YH00h0oD0
 
 0̀of;uPn0&~00000n04XT0c;uYMOnL0Nz0H0_000 k0;bY0h0oD0
 
 0̀of;uPo0gk0j00L00;uP000000o0d0g0oO00d0n0Sgq	Ypeg0qbH0p0oD0
 
 
 
 o2 4   ̀of;uPn0&~00000
 
 
 
 0̀of;uPn0d0j0N0vn0Y ^j0:yY0	Ypeb a c k y 00 g0RgSW0f0J0M000000k00c0f00000000Y00
 
  0̀of;uP. H e i g h t 0H0_000 k0;bY0	
 
 0̀of;uPn0c;u0Vk0X0W00( 0 ,   b a c k y ) K00h00( 0 ,   b a c k y   -   ̀of;uP. H e i g h t ) K00c;uY00
 
 00000n0000000o01 0 00yk0	YfY00h0oD0
 
 0000;ubn0̀of000000k000000W0_0D0n0g000000n00000000o0000k0P0Z0LF00F0k0	Yf
 
 
 
 cQo2 4   ̀of;uPn0&~00000
 
 
 
 000zvo!kVNJT00000n0rKa0_00;uPn0]SyR0!|f0000000  j0i0
 
 