题解
2025-02-03 20:12:34
发布于:江苏
2阅读
0回复
0点赞
#include<iostream>
using namespace std;
int main(){
int m,d;
cin>>m>>d;
if(m==1||m==3||m==5||m==7||m==8||m==10||m==12){
if(d%2==0){
cout<<"Oh!No!";
}else{
cout<<"Play!";
}
}else{
if(d%2==0){
cout<<"Play!";
}else{
cout<<"Oh!No!";
}
}
return 0;
}
#include<iostream>
using namespace std;
int main(){
int m,d;
cin>>m>>d;
if(m==2||m==4||m==6||m==9||m==11){
if(d%2!=0){
cout<<"Oh!No!";
}else{
cout<<"Play!";
}
}else{
if(d%2==0){
cout<<"Oh!No!";
}else{
cout<<"Play!";
}
}
return 0;
}
这里空空如也
有帮助,赞一个