#include<stdio.h>
#include<stdlib.h>
#include<time.h>
void text()
{
printf("************************************\n");
printf("*****1.play**** ****0.return******\n");
printf("************************************\n");
}
void game()
{
int b = rand()%100+1;
int c = 0;
int z = 0;
for (c = 0; c < 100; c++)
{
scanf("%d", &z);
if (z > b)
printf("大了\n");
else if (z < b)
printf("小了\n");
else
{
printf("对了\n");
break;
}
}
}
int main()
{
srand((unsigned)time(NULL));
int a = 0;
do
{
text();
scanf("%d", &a);
switch (a)
{
case 1: {
printf("游戏开始\n");
game();
}
case 0:break;
default:break;
}
} while (a);
}