This is my code:

```
#include<iostream>
#include<cmath>
using namespace std;
int main()
{
long int t,a,b,n;
cin>>t;
for(int i=0;i<t;i++)
{
cin>>a>>b>>n;
if(n%2==0)
{
a=a*pow(2,n/2);
b=b*pow(2,n/2);
}
else{
a=a*pow(2,n/2+1);
b=b*pow(2,n/2);
}
if(a>b)cout<<a/b<<endl;
else cout<<b/a<<endl;
}
}
// I don't understand sub-task 2 ??? How to pass this task ?
```