@@ -0,0 +1,813 @@
+import java.io.*;%0Aimport java.util.*;%0A%0Apublic class Solution %7B%0A%0A    public static void main(String%5B%5D args) %7B%0A        /* Enter your code here. Read input from STDIN. Print output to STDOUT. Your class should be named Solution. */%0A        Scanner in = new Scanner(System.in);%0A        %0A        int tests = in.nextInt();%0A        int n, c, m;%0A        int wrap;%0A        int count;%0A        for (int t = 0; t %3C tests; t++) %7B%0A            n = in.nextInt();%0A            c = in.nextInt();%0A            m = in.nextInt();%0A            %0A            wrap = n / c;%0A            count = wrap;%0A%0A            while (wrap %3E= m) %7B%0A                int extraWrap = wrap / m;%0A                count += extraWrap;%0A%0A                wrap = wrap %25 m + extraWrap;%0A            %7D%0A            %0A            System.out.println(count);%0A        %7D%0A    %7D%0A%7D%0A

Create ChocolateFeast.java