题解 100% AC
2025-07-25 08:53:46
发布于:江苏
1阅读
0回复
0点赞
#include <bits/stdc++.h>
using namespace std;
int main(){
int n;cin>>n;
n%=7;
if(n==0)cout<<"monday";
else if(n==1)cout<<"tuesday";
else if(n==2)cout<<"wednesday";
else if(n==3)cout<<"thursday";
else if(n==4)cout<<"friday";
else if(n==5)cout<<"saturday";
else if(n==6) cout<<"sunday";
return 0;
}
这里空空如也
有帮助,赞一个