6
2024-10-06 12:47:45
发布于:云南
2阅读
0回复
0点赞
黄标题?
#include<bits/stdc++.h>
using namespace std;
int main(){
int n; cin >> n;
n %= 7;
n++;
switch(n){
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 7: cout << "Sunday"; break;
}
return 0;
}
这里空空如也
有帮助,赞一个