1 条题解

  • 0
    @ 2025-7-5 23:09:59

    C++ :

    #include<bits/stdc++.h>
    using namespace std;
    int main()
    {
    //freopen("in.txt","r",stdin);
    //freopen("out.txt","w",stdout);
    long long a,b,n;
    cin>>a>>b>>n;  //容积 初始量 数量
    long long k=a/b;
    if(k<=n)	cout<<b*k;
    else		cout<<b*n;
    
    return 0;
    }
    
    • 1

    信息

    ID
    1966
    时间
    1000ms
    内存
    128MiB
    难度
    7
    标签
    (无)
    递交数
    41
    已通过
    11
    上传者