小鱼周末都双休。。。
查看原帖
小鱼周末都双休。。。
983382
Feifly楼主2024/3/5 21:03
#include <bits/stdc++.h>
using namespace std;
int main() {
   long x, n;
   cin >> x >> n;
   long res = 0;
   for (int i = 0; i < n; ++i) {
       if (x % 6 == 0 || x % 7 == 0) res = res;
       else res += 250;
       
       if (x % 7 == 0) x = 0;
       x++;
   }
   cout << res;
}
2024/3/5 21:03
加载中...