- #include<bits/stdc++.h>
- using namespace std;
- int main()
- {
- long long a,b,c,ans;
- int t;
- scanf("%d",&t);
- while(t--){
- cin>>a>>b>>c;
- ans=(2*a-b);
- ans=ans*c;
- ans=(ans)/(a+b);
- cout<<ans<<endl;
- }
- return 0;
- }
Subscribe to:
Post Comments (Atom)
variable declaration of c program
#include <stdbool.h> #include<bits/stdc++.h> #include <stdio.h> #include <string.h> #include <std...
-
#include<bits/stdc++.h> #include<cmath> #include<algorithm> #define mx 20000005 using namespace std ; ...
-
#include<stdio.h> #include<string.h> int main ( void ) { char y [ 100001 ] ; int m4,m100,m400,m15...
-
#include<bits/stdc++.h> using namespace std ; int main ( ) { int arr [ 10005 ] ; int n,m,mi,d ; ...
No comments:
Post a Comment