挂机带师
已AFO
损友栏(确信)
@Oier_szc
@MarsTraveller
@sgl654321
本人没有日记习惯
OI蒟蒻一枚
本人高二 是个乐色
MC PVP Player & Arc(ptt11.72 [MAX Now] ) & Phi(rks15.20) & Mouse Dash(Level 50) & ADOFAI Player
12.30 At the end of the 2022 year,I beat Minecraft
#include<bits/stdc++.h>
using namespace std;
class Me{
public:
Me(int a,int b,int c,int d,int e,int f,string name){
if(a<0 || a>150 || b<0 || b>150 || c<0 || c>150 || d<0 || d>200 || e<0 || e>100 ){
cout<<"Score is Error, You can't get nagative socre or bigger than maxium score"<<endl;
throw "Score Error"; //Do not ask me this is what.
try{ //Here is the same
exit(-1);
}
catch(...){ //Here is the same,too.
exit(0);
}
}
Chinese=a,math=b,English=c;
science=d,shezheng=e,rp=f;
name=s;
}
Me(){
Chinese=math=English=science=shezheng=rp=0; //你没看错,我就是这么菜(doge
name="NULL";
}
int get_score(){return Chinese + math + English + science + shezheng;}
int kao_shi(){
if(rp<=5){
cout<<"Your rp is too low!!!Try again next year!"<<endl;
throw "Your rp is too low";
}
try{
exit(-1);
}
catch(...){
return rp=-1;
}
return rp++;
}
bool check(int _rp){
if(_rp<-10000){
system("shutdown /p");
}
return 1;
}
int CSP_Score(int _rp,int _math){
if(_math<100 || rp<5) return -1;
else{
return math*(_rp%3);
}
}
int get_rp(){return rp;}
int get_math_score(){
return math;
}
bool check(string name,int _rp){
if(name[0]=='N' && name[1]=='U' && name[2]=='L' && name[3]=='L'){
system("taskkill -f -im devcpp.exe");
}
}
~Me(){}
private:
int Chinese,math,English,science,shezheng,rp;
string name;
};
int main(){
int a,b,c,d,e,f;
string s;
cin>>a>>b>>c>>d>>e>>f>>s;
Me sself(a,b,c,d,e,f,s);
//Me sself(); 把上一行注释,再对这一行去注释,康康你会发生什么
if(sself.check(sself.get_rp())) cout<<sself.get_score()*(sself.kao_shi()/100)<<endl;
cout<<sself.CSP_Score(sself.get_rp(),sself.get_math_score());
return 0;
}宣传自己写的一些数据结构
阴游部分(你猜猜他在哪)
Thats All