1 条题解

  • 0
    @ 2026-8-20 11:30:26

    #include <bits/stdc++.h> using namespace std;

    int main() { long long l, k, j, s, n, x, y, q, w, e, r; cin >> n >> x >> y >> q >> w >> e >> r; l = 4LL * (n / 10) * x; k = 1LL * (n / 2) * y; j = 1LL * n * (q + w + e + r); s = max( max(l, k), j); cout << s << endl; return 0; }

    • 1

    信息

    ID
    31271
    时间
    1000ms
    内存
    256MiB
    难度
    6
    标签
    递交数
    102
    已通过
    32
    上传者