求助,为什么全WA
查看原帖
求助,为什么全WA
828211
namecalled_123楼主2023/1/14 20:15
#include<iostream>
  
using namespace std;
int main()
{
  int x,n;
  cin >>x >> n;
  int m = n;
  for (int i = 0; i < m; i++)            
  {
     if (x == 6 || x == 7)n = n--;
     x = x++;
     if (x > 7)x = x -7;
     }
	cout << 250 * n;
	return 0;
}
2023/1/14 20:15
加载中...