c,80分,#2#8过不去,求助大佬
查看原帖
c,80分,#2#8过不去,求助大佬
981737
GUO0430楼主2023/6/5 12:41

代码如下```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; }

2023/6/5 12:41
加载中...