2 条题解

  • 0
    @ 2026-7-9 17:26:17
    #include <bits/stdc++.h>
    using namespace std;
    
    int main() {
    	long long int n, m, k;
    	cin >> n >> m >> k;
    	if (k < n) {
    		cout << n *m - k;
    	} else {
    		cout << n*(m - 1);
    	}
    	return 0;
    }
    
    
    
    • 0
      @ 2026-7-9 17:16:40

      #include <bits/stdc++.h> using namespace std; long long n,m,k; int main() { cin>>n>>m>>k; if(k>=n){ cout<<n*(m-1); }else{ cout<<n*m-k; }

      return 0;
      

      }

      • 1

      信息

      ID
      28704
      时间
      1000ms
      内存
      512MiB
      难度
      1
      标签
      递交数
      128
      已通过
      24
      上传者