「无穷大」是有值的,或者确切地说「有表示方式」。比如 double 最常见的 IEEE 754 64 位双精度浮点...
const int Inf = 1000000000; const int threshold = 50000; const int maxn = 1000;int n, a[maxn], b[maxn]; bool put_a[maxn]; int total_a, total_b; double ans; int f[threshold];int main() { scanf("%d", &n); total_a = total_b = 0;...