摘要:
#include<cstdio>#include<algorithm>#include<cmath>using namespace std;struct edge{ double l,r;};edge e[1010];int n,d;bool cmp(edge a,edge b){ if(a.r!= 阅读全文
posted @ 2022-10-10 20:54
noname5588
阅读(153)
评论(0)
推荐(0)
摘要:
a不等于1的食物中最多选择一个做加法。(不会证明,看的题解Q Q)若都选择乘法,初始值为A时,易知这时体重为A*B,B为所有食物的a值乘积选择一个做加法后,答案为(B+bi)/ai * A,可知选择最大的(B+bi)/ai即可为答案。#include<cstdio>#define ll long l 阅读全文
posted @ 2022-10-10 20:53
noname5588
阅读(241)
评论(0)
推荐(0)

浙公网安备 33010602011771号