0
已解决
李沐阳
初级守护
初级守护
#include<iostream>
#include<algorithm>
#include<cstdio>
#include<iomanip>
#include <windows.h>
#include <conio.h>
#include <fstream>
#include <ctime>
#include <time.h>
#include <stdio.h>
using namespace std;
int n,m,h,sum,kl=4;//kl==奖项
string name,s;
int main(){
cout<<"请输入您的名字(中文)"<<"\n";
cin>>name;
cout<<"请输入您的号码(数字6位)"<<"\n";
cin>>s;
if(s.size()!=6){
cout<<"请输入6位"<<"\n";
cin>>s;
}
if(s.size()!=6){
cout<<"请输入6位!!!"<<"\n";
cin>>s;
}
if(s.size()!=6){
cout<<"......"<<"\n";
return 0;
}
for(int i=0;i<=6-1;i++){
h=h*10+(s[i]-'0');
sum+=s[i]-'0';
}
if(sum==23){
kl-=1;
}
if(h%5==0){
kl-=1;
}
if(sum%3!=0){
kl-=1;
}
if(h%2==0){
kl-=1;
}
system("cls");
_getch();
system("pause");
if(kl==0){
cout<<"哇!!!"<<"\n";
Sleep(1000);
cout<<"你获得了特等奖!!!!!"<<"\n";
Sleep(2000);
cout<<"100万宇宙币!!!!!"<<"\n";
Sleep(2000);
}
if(kl==1){
cout<<"不错!"<<"\n";
Sleep(1000);
cout<<"你获得了一等奖!!"<<"\n";
Sleep(2000);
cout<<"10万宇宙币!!!"<<"\n";
Sleep(2000);
}
if(kl==2){
cout<<"还可以"<<"\n";
Sleep(1000);
cout<<"你获得了二等奖"<<"\n";
Sleep(2000);
cout<<"5万宇宙币"<<"\n";
Sleep(2000);
}
if(kl==3){
cout<<"至少有......"<<"\n";
Sleep(1000);
cout<<"你获得了三等奖"<<"\n";
Sleep(2000);
cout<<"1万宇宙币"<<"\n";
Sleep(2000);
}
if(kl==4){
cout<<"对不起"<<"\n";
Sleep(1000);
cout<<"你只有参与奖"<<"\n";
Sleep(2000);
cout<<"5000宇宙币"<<"\n";
Sleep(2000);
}
cout<<"谢谢大家!!!"<<"\n";
Sleep(1000);
cout<<"谢谢你们给我支持"<<"\n";
Sleep(1000);
cout<<"谢谢!!!!!!!!!!"<<"\n";
Sleep(1000);
cout<<"p.s.1宇宙币=25元人民币"<<"\n";
Sleep(1000);
cout<<"p.s.s熊出没僵尸惊魂正在更"<<"\n";
return 0;
}
and
#include<iostream>
#include<algorithm>
#include<cstdio>
#include<iomanip>
#include <windows.h>
#include <conio.h>
#include <fstream>
#include <ctime>
#include <time.h>
#include <stdio.h>
using namespace std;
int n,m,h,sum,kl=4;//kl==奖项
string name,s;
int main(){
cout<<"宇宙超市 持续进货"<<"\n";
Sleep(2000);
cout<<" !宇宙超市!"<<"\n";
cout<<" 用品区"<<"\n";
cout<<"牙膏 牙刷 地图 脸盆"<<"\n";
cout<<"0.23 0.51 0.63 0.56"<<"\n";
cout<<"肥皂 瓶子 小刀 电枪"<<"\n";
cout<<"0.12 0.11 0.43 6.87"<<"\n";
cout<<"卡牌 刀叉 自行飞船"<<"\n";
cout<<"0.34 0.12 32.12"<<"\n";
Sleep(5000);
cout<<" 代码区"<<"\n";
cout<<"550C 地下城 飞船 飞船(飞机版)"<<"\n";
cout<<"12W 102W 30W 115W"<<"\n";
cout<<" / / /禁 区 禁/ / /"<<"\n";
cout<<"压缩中子星 压缩黑洞 元宇宙 崩坏刀"<<"\n";
cout<<"压缩中子星:100古戈尔"<<"\n";
cout<<"压缩黑洞:120古戈尔"<<"\n";
cout<<"元宇宙:13+@!#古戈尔"<<"\n";
cout<<"崩坏刀:@!#?&*/@"<<"\n";
return 0;
}