题解
2024-03-24 18:03:03
发布于:上海
7阅读
0回复
0点赞
#include<bits/stdc++.h>
using namespace std;
int sum;
int main(){
int a;
cin>>a;
if(a%7==0){
cout<<"monday";
}
if(a%7==1){
cout<<"tuesday";
}
if(a%7==2){
cout<<"wednesday";
}
if(a%7==3){
cout<<"thursday";
}
if(a%7==4){
cout<<"friday";
}
if(a%7==5){
cout<<"saturday";
}
if(a%7==6){
cout<<"sunday";
}
return 0;
}
这里空空如也
有帮助,赞一个