听着
2024-05-12 09:19:05
发布于:北京
4阅读
0回复
0点赞
#include<iostream>
#include <algorithm>
#include <bits/stdc++.h>
#include <math.h>
#include <cmath>
#include<string>
#include<cstring>
#include<list>
#include<map>
#include<queue>
#include<iterator>
#include<stack>
using namespace std;
int main(){
int a;
int n;
cin >> n;
n = (n + 1) % 7;
if(n == 1){
cout << "monday";
}
else if(n == 2){
cout << "tuesday";
}
else if(n == 3){
cout << "wednesday";
}
else if(n == 4){
cout << "thursday";
}
else if(n == 5){
cout << "friday";
}
else if(n == 6){
cout << "saturday";
}
else if(n == 0){
cout << "sunday";
}
return 0;
}
这里空空如也
有帮助,赞一个