彩票(难度系数:1)

· · 个人记录

#include<bits/stdc++.h>
#include<ctime> 
using namespace std;
int a,b,c,d,e,f,g,h,aa,bb,cc,dd,ee,t,ff,gg,hh;
int main(){
    srand((int)time(0));
    a=rand()%10+1;  
    cin>>aa;
    if(aa==a) cout<<"你中奖了!!";
    else cout<<"你没有中奖!";
    cout<<endl;
    if(a<10) cout<<0<<a<<" ";
    else cout<<a<<" ";

    return 0;
}