OI-Codes/Luogu/小鱼的航程.cpp
2024-10-03 19:17:29 +08:00

10 lines
174 B
C++

#include <bits/stdc++.h>
using namespace std;
int main(){
long long x, n;
cin >> x >> n;
long long week;
week = (x + n) / 7 * 2;
cout << (n - week) * 250;
return 0;
}