计算日期
2025-06-28 09:00:39
发布于:浙江
6阅读
0回复
0点赞
#include<iostream>
using namespace std;
int n;
int main(){
cin>>n;
if(n%71)cout<<"tuesday";
else if(n%72)cout<<"wednesday";
else if(n%73)cout<<"thursday";
else if(n%74)cout<<"friday";
else if(n%75)cout<<"saturday";
else if(n%76)cout<<"sunday";
else cout<<"monday";
return 0;
}
这里空空如也
有帮助,赞一个