package leetcode;

public class Problem1357 {
}

@@ -16,33 +16,1231 @@
 e;%0A%0A
-public class Problem1357 %7B
+/**%0A * https://leetcode.com/problems/apply-discount-every-n-orders/%0A */%0Apublic class Problem1357 %7B%0A    private static class Cashier %7B%0A        public Cashier(int n, int discount, int%5B%5D products, int%5B%5D prices) %7B%0A            // TODO%0A        %7D%0A%0A        public double getBill(int%5B%5D product, int%5B%5D amount) %7B%0A            // TODO%0A            return 0;%0A        %7D%0A    %7D%0A%0A    public static void main(String%5B%5D args) %7B%0A        Cashier cashier = new Cashier(%0A            3, 50, new int%5B%5D%7B1, 2, 3, 4, 5, 6, 7%7D, new int%5B%5D%7B100, 200, 300, 400, 300, 200, 100%7D);%0A        System.out.println(cashier.getBill(new int%5B%5D%7B1, 2%7D, new int%5B%5D%7B1, 2%7D)); // 500%0A        System.out.println(cashier.getBill(new int%5B%5D%7B3, 7%7D, new int%5B%5D%7B10, 10%7D)); // 4000%0A        System.out.println(cashier.getBill(new int%5B%5D%7B1, 2, 3, 4, 5, 6, 7%7D, new int%5B%5D%7B1, 1, 1, 1, 1, 1, 1%7D)); // 800%0A        System.out.println(cashier.getBill(new int%5B%5D%7B4%7D, new int%5B%5D%7B10%7D)); // 4000%0A        System.out.println(cashier.getBill(new int%5B%5D%7B7, 3%7D, new int%5B%5D%7B10, 10%7D)); // 4000%0A        System.out.println(cashier.getBill(new int%5B%5D%7B7, 5, 3, 1, 6, 4, 2%7D, new int%5B%5D%7B10, 10, 10, 9, 9, 9, 7%7D)); // 7350%0A        System.out.println(cashier.getBill(new int%5B%5D%7B2, 3, 5%7D, new int%5B%5D%7B5, 3, 2%7D)); // 2500%0A%0A    %7D
 %0A%7D%0A

Update problem 1357