# include <stdlib.h>
# include <stdio.h>
# include <time.h> //<2F> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> Ŀ⺯<C4BF> <E2BAAF>
# include <windows.h> //<2F> <> <EFBFBD> ڽ<EFBFBD> <DABD> 汳<EFBFBD> <E6B1B3> <EFBFBD> <EFBFBD> ɫ<EFBFBD> <C9AB> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> ɫ<EFBFBD> Ŀ⺯<C4BF> <E2BAAF>
int main ( void )
{
system ( " color B4 " ) ; //<2F> <> <EFBFBD> 汳<EFBFBD> <E6B1B3> <EFBFBD> <EFBFBD> ɫ<EFBFBD> <C9AB> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> ɫ<EFBFBD> <C9AB> <EFBFBD> <EFBFBD>
printf ( " *<2A> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> С ѧ<D0A1> <D1A7> ѧ<EFBFBD> <D1A7> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> * \n " ) ;
printf ( " С ѧ<D0A1> <D1A7> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> ʽ <EFBFBD> <CABD> ʼ \n " ) ;
int i , j , M = 2 , A , B , WE = 0 , C , SCORE = 0 , D , te , y ;
char X [ 2 ] = { ' + ' , ' - ' } ;
srand ( ( int ) time ( 0 ) ) ; //<2F> õ<EFBFBD> <C3B5> <EFBFBD> ͬ<EFBFBD> <CDAC> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> ;time(0)<29> <> ʾ <EFBFBD> <CABE> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> д洢
for ( i = 1 ; i < = 10 ; i + + ) //<2F> <> <EFBFBD> <EFBFBD> ʮ<EFBFBD> <CAAE> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> ;<3B> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD>
{
D = rand ( ) % 2 ; //ȡ<> <C8A1> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD>
A = rand ( ) % 50 ; //<2F> <> <EFBFBD> <EFBFBD> һ <EFBFBD> <D2BB> 0-50<35> <30> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> int<6E> <74>
B = rand ( ) * 50 / 32767 ; //<2F> <> <EFBFBD> <EFBFBD> һ <EFBFBD> е <EFBFBD> <D0B5> <EFBFBD> <EFBFBD> ֲ<EFBFBD> ͬ<EFBFBD> <CDAC> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> ʽ
if ( D = = 0 )
{ WE = A + B ; }
else
{ WE = A - B ; }
if ( WE > = 0 & & WE < = 50 ) //<2F> <> ֤<EFBFBD> <D6A4> <EFBFBD> <EFBFBD> <EFBFBD> Ѷȣ <D1B6> <C8A3> <EFBFBD> С ѧ<D0A1> <D1A7> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> Χ ֮<CEA7> <D6AE>
{
j = 2 ; M = 1 ;
printf ( " \n <EFBFBD> <EFBFBD> (%d)<29> <> <EFBFBD> <EFBFBD> Ŀ\n " , i ) ; //<2F> Ӿ<EFBFBD> <D3BE> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> ;<3B> <> ʾ <EFBFBD> <CABE> <EFBFBD> <EFBFBD>
printf ( " %8d \n " , A ) ;
printf ( " %c \n " , X [ D ] ) ;
printf ( " %8d \n " , B ) ;
printf ( " =========== \n " ) ;
printf ( " <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> ȷ<EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> " ) ; //<2F> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> ܶԻ<DCB6> <D4BB> <EFBFBD>
scanf ( " %d " , & C ) ;
if ( WE = = C )
{
y = 1 ;
printf ( " \n <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> :<3A> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> Ĵ<EFBFBD> <C4B4> <EFBFBD> <EFBFBD> <EFBFBD> ȷ! \n \n " ) ; //<2F> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD>
if ( y = 1 )
{
printf ( " ********************************************************************************************************** \n " ) ;
printf ( " @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ \n \n " ) ;
} //<2F> <> һ <EFBFBD> λ<EFBFBD> <CEBB> <EFBFBD>
SCORE + = 10 ; //<2F> ܹ<EFBFBD> ʮ<EFBFBD> <CAAE> <EFBFBD> <EFBFBD> ÿ<EFBFBD> <C3BF> ʮ<EFBFBD> <CAAE> ;<3B> <> һ <EFBFBD> <D2BB> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> ȷ<EFBFBD> 𰸵<EFBFBD> 10<31> <30>
//<2F> <> <EFBFBD> õ<EFBFBD> <C3B5> ķ<EFBFBD> <C4B7> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> ۼ<EFBFBD>
}
else
{
while ( j < = 3 )
{
printf ( " \n <EFBFBD> 𰸴<EFBFBD> <EFBFBD> <EFBFBD> ,<2C> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> :\n " ) ;
printf ( " <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> come on<6F> <6E> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> е <EFBFBD> \n " ) ;
//<2F> <> <EFBFBD> <EFBFBD> <EFBFBD> Ļ<EFBFBD> <C4BB> <EFBFBD> <EFA3AC> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> ù<EFBFBD>
scanf ( " %d " , & C ) ;
if ( WE = = C )
{
printf ( " \n <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> :<3A> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> Ĵ<EFBFBD> <C4B4> <EFBFBD> <EFBFBD> <EFBFBD> ȷ!\n \n \n " ) ;
M + + ;
if ( M = = 2 ) //<2F> ڶ<EFBFBD> <DAB6> λ<EFBFBD> <CEBB> <EFBFBD>
{ SCORE + = 7 ; } //<2F> ڶ<EFBFBD> <DAB6> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> ȷ<EFBFBD> 𰸵<EFBFBD> 7<EFBFBD> <37>
else if ( M = = 3 ) //<2F> <> <EFBFBD> <EFBFBD> <EFBFBD> λ<EFBFBD> <CEBB> <EFBFBD>
{ SCORE + = 5 ; } //<2F> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> ȷ<EFBFBD> 𰸵<EFBFBD> 5<EFBFBD> <35>
break ; //<2F> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> ѭ<EFBFBD> <D1AD>
}
else //<2F> <> ¼ѭ<C2BC> <D1AD> <EFBFBD> <EFBFBD> <EFBFBD> д<EFBFBD> <D0B4> <EFBFBD>
{ M + + ; }
j + + ;
}
if ( j > 3 )
{
printf ( " \n <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> ȷ<EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> Ϊ:%d\n " , WE ) ; //<2F> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> ȷ<EFBFBD> <C8B7> <EFBFBD> <EFBFBD>
printf ( " ********************************************************************************************************** \n " ) ;
printf ( " @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ \n \n " ) ;
}
}
}
else
i - - ;
}
if ( SCORE > = 90 ) //<2F> <> С ѧ<D0A1> <D1A7> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> ۺ<DBBA> <CDB9> <EFBFBD> ;
printf ( " SMAR YOU ARE SO CLEAR \n " ) ; //<2F> ֱ<EFBFBD> <D6B1> Բ<EFBFBD> ͬ<EFBFBD> <CDAC> <EFBFBD> <EFBFBD> <EFBFBD> ν <EFBFBD> <CEBD> в<EFBFBD> ͬ<EFBFBD> <CDAC> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD>
if ( 80 < = SCORE | | SCORE < 90 )
printf ( " EXCELLENT COME ON \n " ) ;
if ( 60 < = SCORE | | SCORE < 80 )
printf ( " YOU SHOULD MAKE GREAT EFFORTS \n " ) ;
if ( SCORE < = 60 )
printf ( " FAIL AN EXAM \n " ) ; //<2F> ܳɼ<DCB3> 90<39> <30> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> ʾ "SMART"
printf ( " \n <EFBFBD> ܹ<EFBFBD> %d<> <64> <EFBFBD> <EFBFBD> Ŀ,<2C> <> <EFBFBD> <EFBFBD> <EFBFBD> ܷ<EFBFBD> Ϊ%d\n \n " , i - 1 , SCORE ) ; // <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> ܷ<EFBFBD> <DCB7> <EFBFBD>
}