AC
2024-03-23 21:20:38
发布于:广东
11阅读
0回复
0点赞
#include<iostream>
using namespace std;
int main(){
int M,D;
cin>>M>>D;
if(M==1){
if(D%2==1){
cout<<"Play!";
}else{
cout<<"Oh!No!";
}
}else if(M==3){
if(D%2==1){
cout<<"Play!";
}else{
cout<<"Oh!No!";
}
}else if(M==5){
if(D%2==1){
cout<<"Play!";
}else{
cout<<"Oh!No!";
}
}else if(M==7){
if(D%2==1){
cout<<"Play!";
}else{
cout<<"Oh!No!";
}
}else if(M==8){
if(D%2==1){
cout<<"Play!";
}else{
cout<<"Oh!No!";
}
}else if(M==10){
if(D%2==1){
cout<<"Play!";
}else{
cout<<"Oh!No!";
}
}else if(M==12){
if(D%2==1){
cout<<"Play!";
}else{
cout<<"Oh!No!";
}
}
if(M==2){
if(D%2==0){
cout<<"Play!";
}else{
cout<<"Oh!No!";
}
}else if(M==4){
if(D%2==0){
cout<<"Play!";
}else{
cout<<"Oh!No!";
}
}else if(M==6){
if(D%2==0){
cout<<"Play!";
}else{
cout<<"Oh!No!";
}
}else if(M==9){
if(D%2==0){
cout<<"Play!";
}else{
cout<<"Oh!No!";
}
}else if(M==11){
if(D%2==0){
cout<<"Play!";
}else{
cout<<"Oh!No!";
}
}
return 0;
}
这里空空如也
有帮助,赞一个