题解
2024-01-27 16:17:21
发布于:北京
10阅读
0回复
0点赞
#include<bits/stdc++.h>
using namespace std;
int main(){
int n;
cin>>n;
switch(n%7){
case 0:cout<<"monday";break;
case 1:cout<<"tuesday";break;
case 2:cout<<"wendnesday";break;
case 3:cout<<"thursday";break;
case 4:cout<<"friday";break;
case 5:cout<<"saturday";break;
case 6:cout<<"sunday";break;
}
return 0;
}
这里空空如也
有帮助,赞一个