2 solutions

  • 1
    @ 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; } 本人第一篇题解,不喜勿喷。

    • 0
      @ 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
      10
      Tags
      # Submissions
      6
      Accepted
      2
      Uploaded By