1 solutions

  • -3
    @ 2024-11-9 17:33:19
    #include <bits/stdc++.h>
    using namespace std;
    long long a,b,c,d,e,f,k;
    long long ans; 
    int main()
    {
    	scanf("%lld%lld%lld%lld%lld%lld%lld",&a,&b,&c,&d,&e,&f,&k);
    	ans=max(floor(1.0*k/b)*a*c,floor(1.0*k/e)*d*f);
    	printf("%lld",ans);
    	return 0;
    }
    

    Information

    ID
    683
    Time
    1000ms
    Memory
    256MiB
    Difficulty
    6
    Tags
    (None)
    # Submissions
    74
    Accepted
    24
    Uploaded By