A299.计算日期题解:
2026-02-09 09:11:07
发布于:四川
1阅读
0回复
0点赞
A299.计算日期
#include <bits/stdc++.h>
using namespace std;
int n,x;
int main(){
cin>>n;
x=(n+1)%7;
if(x==1)cout<<"monday";
if(x==2)cout<<"tuesday";
if(x==3)cout<<"wednesday";
if(x==4)cout<<"thursday";
if(x==5)cout<<"friday";
if(x==6)cout<<"saturday";
if(x==0)cout<<"sunday";
return 0;
}
这里空空如也






有帮助,赞一个