我都没明白我咋写哒...0分求解 T^T
查看原帖
我都没明白我咋写哒...0分求解 T^T
1607215
lyc_t楼主2025/1/7 17:31
#include<bits/stdc++.h>
using namespace std;
int main(){
	long long a,b,c,d,M,x;
	cin>>a>>b>>c>>d>>M;
	x=5*c;
	if(x<=M){
		x=x-(b-d)*20;
	}
	else{
		x=x-(b-d)*20+d*20;
	}
	if(x>=0){
		cout<<x;
	}
	else{
		cout<<"0";
	}
    return 0;
}
2025/1/7 17:31
加载中...