@@ -0,0 +1,791 @@
+import java.io.*;%0Aimport java.util.*;%0Aimport java.text.*;%0Aimport java.math.*;%0Aimport java.util.regex.*;%0A%0Apublic class Solution %7B%0A%0A    public static void main(String%5B%5D args) %7B%0A        Scanner in = new Scanner(System.in);%0A        int t = in.nextInt();%0A        for(int i = 0; i %3C t; i++)%7B%0A            System.out.println(Solve(in.nextInt(), in.nextInt(), in.nextInt()));%0A        %7D%0A    %7D%0A    %0A    private static long Solve(int n, int a, int b)%7B%0A        long s=n/a,q=0,r=0;%0A       if(s%3Cb)return s;%0A        else%7B%0A            q=s/b;%0A            r=s%25b;%0A            s+=q;%0A         while(r%3E0 && r+q%3E=b)%7B%0A            long x=(r+q)/b;%0A             s+=x;%0A             r=(r+q)%25b;%0A             q=x;%0A         %7D%0A            return s;%0A        %7D%0A         //Write code to solve each of the test over here%0A    %7D%0A%7D%0A

Create ChocolateFeast.java