好题解
2026-09-05 21:20:41
发布于:浙江
0阅读
0回复
0点赞
题目十分简单,3个if else就可以
#include <iostream>
using namespace std;
int main() {
int A, B;
cin >> A >> B;
if (A <= 5) {
cout << 0 << endl;
} else if (A <= 12) {
cout << B / 2 << endl;
} else {
cout << B << endl;
}
return 0;
}
这里空空如也





有帮助,赞一个