#include <iostream> #include <cstdlib> #include <ctime> using namespace std; int main() { srand(time(0)); int a=rand()%5+1; int b; cin>>b; if(a==b){ cout<<"中奖了"; }else{ cout<<"没中奖,号码是:"<<a; } return 0; }