有缩进
2024-04-17 18:25:53
发布于:广东
0阅读
0回复
0点赞
#include<bits/stdc++.h>
using namespace std;
int main(){
ios::sync_with_stdio(0),cin.tie(0),cout.tie(0);
int n;
cin>>n;
switch((n+1)%7){
case 1:cout<<"monday";break;
case 2:cout<<"tuesday";break;
case 3:cout<<"wednesday";break;
case 4:cout<<"thrusday";break;
case 5:cout<<"friday";break;
case 6:cout<<"saturday";break;
case 0:cout<<"sunday";break;
}
return 0;
}
这里空空如也
有帮助,赞一个