You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
15 lines
367 B
15 lines
367 B
2 years ago
|
#include <bits/stdc++.h>
|
||
|
|
||
|
using namespace std;
|
||
|
int x, n, sum;
|
||
|
|
||
|
int main() {
|
||
|
cin >> x >> n;
|
||
|
//提示孩子们需要注意边界,可以按最小范围进行模拟,来推测抽象时情况
|
||
|
for (int i = x; i <= x + n - 1; i++) {
|
||
|
if (i % 7 == 6 || i % 7 == 0) continue;
|
||
|
sum += 250;
|
||
|
}
|
||
|
printf("%d", sum);
|
||
|
return 0;
|
||
|
}
|