20分求调!!!
查看原帖
20分求调!!!
876268
tanzexiaodezhonghao楼主2024/3/23 21:03
#include<bits/stdc++.h>
using namespace std;
int main(){
    int t;
    cin>>t;
    while(t--){
        long long x,a,b;
        cin>>x>>a>>b;
        if(a*x>=b){
            cout<<x<<endl;
        }else{
            cout<<a*x-b<<endl;
        }
    }
    return 0;
}
2024/3/23 21:03
加载中...