Chat GPT 3.5生成题解
2024-01-30 20:30:49
发布于:浙江
118阅读
0回复
0点赞
题解:
#include <iostream>
using namespace std;
int main() {
int month, day;
cin >> month >> day;
switch (month) {
case 1: case 3: case 5: case 7: case 8: case 10: case 12:
switch (day % 2) {
case 0:
cout << "Oh!No!" << endl;
break;
case 1:
cout << "Play!" << endl;
break;
}
break;
case 4: case 6: case 9: case 11:
switch (day % 2) {
case 0:
cout << "Play!" << endl;
break;
case 1:
cout << "Oh!No!" << endl;
break;
}
break;
case 2:
switch (day % 2) {
case 0:
cout << "Play!" << endl;
break;
case 1:
cout << "Oh!No!" << endl;
break;
}
break;
}
return 0;
}
如图:
全部评论 2
有必要吗.jpg
2024-01-31 来自 湖南
06,gpt网站发个呗
2024-01-31 来自 浙江
0https://chat18.aichatos.xyz/
2024-02-16 来自 浙江
0
有帮助,赞一个