666
2024-08-03 20:54:16
发布于:浙江
1阅读
0回复
0点赞
#include<bits/stdc++.h>
using namespace std;
int main()
{
int n;
cin>>n;
int to=(n+1)%7;
switch(to)
{
case 1:cout<<"monday";break;
case 2:cout<<"tuesday";break;
case 3:cout<<"wednesday";break;
case 4:cout<<"thursday";break;
case 5:cout<<"friday";break;
case 6:cout<<"saturday";break;
case 0:cout<<"sunday";break;
}
return 0;
}
这里空空如也
有帮助,赞一个