Help me in solving SMOKE problem

My issue

failing on test case 4

My code

#include <bits/stdc++.h>
using namespace std;

int main() {
int t,d;
cin>>t;
for(d=0;d<t;d++){
    int n,x,y;
    cin>>n>>x>>y;
    float a,o=x,p=y;
    a=o/p;
   if(a<=1){if(n%100==0){cout<<x*n/100<<endl;}
       else{cout<<x*(1+(n/100))<<endl;}
   }
    else if(a>=25){if(n%4!=0){cout<<y*(1+n/4);}
                   else{cout<<y*n/4<<endl;}
    }
    else{
      int b,c,n1,n2;
      b=n/100;
      c=n%100;
      if(c%4==0){n1=c/4;}
      else{n1=1+(c/4);}
      n1=n1*y;
      
       cout<<b*x+min(x,n1)<<endl;
        
    }
    
          }

}

Problem Link: Control the Pollution Practice Coding Problem