@@ -0,0 +1,349 @@
+// https://community.topcoder.com/stat?c=problem_statement&pm=13650%0A%0Apublic class KitayutaMart2 %7B%0A%09public static int numBought(int K, int T) %7B%0A%09%09int appleCount = 0;%0A%09%09%0A%09%09/*%0A%09%09 * K - price of one apple%0A%09%09 * T - total amount of money paid for apples%0A%09%09 */%0A%09%09%0A%09%09while (T != 0) %7B%0A%09%09%09T -= K;%0A%09%09%09appleCount++;%0A%09%09%09K = 2*K;%0A%09%09%7D%0A%09%09%0A%09%09return appleCount;%0A%09%7D%0A%7D%0A

Create KitayutaMart2.java