3 solutions

  • 0
    @ 2026-1-25 20:19:07
    #include<bits/stdc++.h>
    using namespace std;
    int main()
    {
        int a,b,c;
        cin>>a>>b>>c;
        if(b*c<=a)cout<<b*c;
        if(b*c>a)cout<<a;
    }
    
    • 0
      @ 2025-12-6 13:59:46

      哇!太简单了! 没什么可讲的 奉上代码: #include<bits/stdc++.h> using namespace std; int main() { int n,k,t; cin>>n>>k>>t; if(kt>=n) { cout<<n; } else { cout<<kt; } return 0; } 本人第一篇题解,不喜勿喷。

      • -2
        @ 2025-11-27 11:54:18

        C++ :

        #include<bits/stdc++.h>
        using namespace std;
        int main()
        {
        	int n,k,t;
        	cin>>n>>k>>t;
        	if(k*t>n){
        		cout<<n;
        	}
        	else cout<<k*t;
        	return 0;
        }
        
        • 1

        Information

        ID
        4
        Time
        1000ms
        Memory
        128MiB
        Difficulty
        5
        Tags
        # Submissions
        22
        Accepted
        14
        Uploaded By