洛谷题目 P1424
// https://www.luogu.com.cn/problem/P1424#include <iostream>
using namespace std;
int main()
{
int x, n, i, r = 0;
cin >> x >> n;
for (i = 0; i < n; i++)
{
if (x == 6 || x == 7)
{
x++;
continue;
}
r += 250;
if (x >= 8)
x -= 7;
x++;
}
cout << r;
return 0;
}
页:
[1]