跳到正文

个人记录

彩票(难度系数:1)

ZQS_AK_ZQS约 1 分钟
原文
文章信息与版本

文章信息

收录
2026年6月17日
更新
2026年6月19日
篇幅
约 1 分钟

版本

  1. v1当前
C++
#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;
} 
原文
抓取于
  1. lizi

    你以为你谁啊???