70分求助,3,4,8测试点过不去,请神犇指导
查看原帖
70分求助,3,4,8测试点过不去,请神犇指导
377902
kc0205楼主2022/3/15 20:39
#include<iostream>

using namespace std;

int main(){
	
	int ans = 0,x,n;
	cin >> x >> n;
	
	for(int i = x;i <= x + n;i++){
		if((i - x) % 6 != 0 && (i - x) % 7 != 0) {
			ans += 250;
		}
	}
	cout << ans << endl;
	
	return 0;
}  ```
2022/3/15 20:39
加载中...