20分,求助!
查看原帖
20分,求助!
1549214
liuheqinghans0106楼主2025/1/9 20:08
#include <bits/stdc++.h>
using namespace std;

int main() {
	int x, n;
	cin >> x >> n;
	long long s = 0;
	for (int i = 1; i <= n; i++) {
		if (x > 7) {
			x == 1;
		}
		if (x != 6 && x != 7) {
			s += 250;

		}
		x++;

	}
	cout << s;
	return 0;
}
2025/1/9 20:08
加载中...