题解
2024-03-17 15:53:13
发布于:河北
2阅读
0回复
0点赞
#include <iostream>
#include <string>
using namespace std;
int a[13]={9,10,11,12,13,14,15,16};
string b[13]={"除夕","初一","初二","初三","初四","初五","初六","初七"};
int main(){
int n;
cin>>n;
for(int i=0;i<8;i++)
if(a[i]==n)
cout<<b[i];
return 0;
}
这里空空如也
有帮助,赞一个