版本比较
题解:P16185 [LBA-OI R1 B] 战术突破
正文
增加 3 行删除 3 行
50 行未改动5152535455555657585959606162626364656640 行未改动50 行未改动 { double A=a*1.0/b,B=c.a*1.0/c.b; return A<B; }
};double dp[maxn];int lst[maxn],kd[maxn];frac get_ans(int x) frac get_ans(int x){ frac res={0,1}; while(x>1) while(x>1) { frac tim; if(kd[x]==1)tim={x-lst[x],a[lst[x]]}; else tim={1,1};40 行未改动