代码如下```c
#include
using namespace std;
int main(){
int x,n;
cin >> x >> n;
if (x == 6){
cout << 250 * n - 250 * (((n - 2)/7)*2+2)<<endl;
}else if(x == 7 ){
cout << 250 * n - 250 * (((n - 1)/7)*2+1)<<endl;
}else{
cout << 250 * n - 250 * (n/7)*2<<endl;
}
return 0;
}