#pragma warning(disable:4996);
#include <stdio.h>
int main(){
int number = rand() % 100 + 1;*/
int num,inp, t;
int count=0,finished=0;
scanf("%d %d", &num, &t);
do {
scanf("%d", &inp);
count++;
if (inp<0) {
printf("Game Over\n");
finished = 1;
}
else if (inp < num) {
printf("Too small!");
}
else if (inp >num) {
printf("Too Big!");
}
else {
if (count== 1) {
printf("Bingo!\n");
}
else if (count <= 3)
{
printf("Lucky You\n");
}
else {
printf("Good Guess!\n");
}
finished = 1;
}
if (count ==t) {
if (!finished) {
printf("Game Over\n");
finished = 1;
}
}
} while (!finished);//!finished=1;
return 0;
}
09-11
1022
![](https://csdnimg.cn/release/blogv2/dist/pc/img/readCountWhite.png)
10-16
2万+
![](https://csdnimg.cn/release/blogv2/dist/pc/img/readCountWhite.png)
07-29
874
![](https://csdnimg.cn/release/blogv2/dist/pc/img/readCountWhite.png)
08-17
1087
![](https://csdnimg.cn/release/blogv2/dist/pc/img/readCountWhite.png)