```
#include<bits/stdc++.h>
using namespace std;
int main()
{
long long x, n, sum = 0;
cin >> x >> n;
while (n > 0)
{
if(x >= 1 && x <= 5)
{
sum += 250;
}
x++;
if(x == 8)
{
x = 1;
}
n--;
}
cout << sum << endl;
}
```
by dctc1494 @ 2024-03-02 08:22:37
```
#include<bits/stdc++.h>
using namespace std;
int main() {
long long x , n , sum = 0;
cin >> x >> n;
while (n > 0) {
if((x!=6)&&(x!=7)) {
sum+=250;
}
if(x==7)
{
x=1;
}
else
{
x++;
}
n--;
}
cout << sum << endl;
}
```
by xiaoyu2010 @ 2024-03-02 08:26:49