*山代码(AC)
2025-06-22 19:50:00
发布于:广东
5阅读
0回复
0点赞
#include <iostream> using namespace std; int main(){ int n; cin >> n; if(n % 7 == 0){ cout << "monday";
}else if(n % 7 == 1){ cout << "tuesday"; }else if(n % 7 == 2){ cout << "wednesday"; }else if(n % 7 == 3){
cout << "thursday"; }else if(n % 7 == 4){ cout << "friday"; }else if(n % 7 == 5){ cout<<"saturday"; }else if(n % 7 == 6){ cout<<"sunday"; } return 0; }
这里空空如也
有帮助,赞一个