不懂啊啊啊我感觉眉毛兵啊求解
#include <bits/stdc++.h> using namespace std; int main(){ int x,n,h,c; c=0; cin>>x>>n; for(h=0;h<=n;h++){//循环 if((x%7!=6)&&(x%7!=0)){//判断是否为周六周日,不是则加250 c+=250; }x++; } cout<<c<<endl; return 0; }