标签:.com space include its mes pac ++ return com
[http://codeforces.com/contest/1065/problem/A]
一个公式完事
#include<bits/stdc++.h>
using namespace std;
#define ll long long
int main(){
ios::sync_with_stdio(false);
cin.tie(0);
cout.tie(0);
//freopen("in.txt","r",stdin);
ll t,s,a,b,c;
cin>>t;
while(t--){
cin>>s>>a>>b>>c;
ll sum=0;
sum=s/c+s/c/a*b;
cout<<sum<<endl;
}
return 0;
}
标签:.com space include its mes pac ++ return com
原文地址:https://www.cnblogs.com/mch5201314/p/9792475.html