96分,求调
查看原帖
96分,求调
884913
joker7612801楼主2025/1/18 20:43
#include <bits/stdc++.h>
using namespace std;
double n;
double minn=1e8+100,z,x;
int main(){
	cin>>n;
	for(int i=0;i<3;i++){
		cin>>z>>x;
		minn=min(x*ceil(n/z*1.0),minn);
	}
	cout<<minn;
	return 0;
}
2025/1/18 20:43
加载中...