题解
2023-11-02 13:28:26
发布于:广东
1阅读
0回复
0点赞
数组解了
#include <iostream>
#include <cstdio>
using namespace std;
string a[7] = {"monday", "tuesday", "wednesday", "thursday", "friday", "saturday", "sunday"};
int main(){
int n;
cin >> n;
cout << a[n % 7];
return 0;
}
这里空空如也
有帮助,赞一个