#include<iostream>
#include<ctime>
#include<cstdlib>
using namespace std;
int b;
long long n;
int a;
void kscsbpd(int _) {
int b;
for(int i=9; i>=0; i--) {
cin>>b;
if(b>_) {
cout<<b<<"太大了"<<endl;
} else if(b<_) {
cout<<b<<"太小了"<<endl;
} else {
cout<<"你太棒了,数字就是"<<_;
return 0;
}
cout<<"还剩"<<i<<"次机会"<<endl;
}
cout<<"加油鸭!,数字是:"<<_;
}
int main(void) {
cout<<"欢迎来到猜数字游戏,考验你的数学思维"<<endl;
srand(time(NULL));
for(int i=1; i<=10; i++) {
n=rand()%1001;
}
cout<<"数在1-1000之间,抽十次"<<endl;
kscsbpd(n);
return 0;
}